Lines Matching refs:j
106 unsigned long j; in redisBitpos() local
145 for (j = 0; j < sizeof(*l); j++) { in redisBitpos()
203 uint64_t byte, bit, byteval, bitval, j; in setUnsignedBitfield() local
205 for (j = 0; j < bits; j++) { in setUnsignedBitfield()
206 bitval = (value & ((uint64_t)1<<(bits-1-j))) != 0; in setUnsignedBitfield()
223 uint64_t byte, bit, byteval, bitval, j, value = 0; in getUnsignedBitfield() local
225 for (j = 0; j < bits; j++) { in getUnsignedBitfield()
373 unsigned long j, i, byte; in printBits() local
375 for (j = 0; j < count; j++) { in printBits()
376 byte = p[j]; in printBits()
587 unsigned long op, j, numkeys; in bitopCommand() local
620 for (j = 0; j < numkeys; j++) { in bitopCommand()
621 o = lookupKeyRead(c->db,c->argv[j+3]); in bitopCommand()
624 objects[j] = NULL; in bitopCommand()
625 src[j] = NULL; in bitopCommand()
626 len[j] = 0; in bitopCommand()
633 for (i = 0; i < j; i++) { in bitopCommand()
642 objects[j] = getDecodedObject(o); in bitopCommand()
643 src[j] = objects[j]->ptr; in bitopCommand()
644 len[j] = sdslen(objects[j]->ptr); in bitopCommand()
645 if (len[j] > maxlen) maxlen = len[j]; in bitopCommand()
646 if (j == 0 || len[j] < minlen) minlen = len[j]; in bitopCommand()
658 j = 0; in bitopCommand()
678 j += sizeof(unsigned long)*4; in bitopCommand()
691 j += sizeof(unsigned long)*4; in bitopCommand()
704 j += sizeof(unsigned long)*4; in bitopCommand()
714 j += sizeof(unsigned long)*4; in bitopCommand()
721 for (; j < maxlen; j++) { in bitopCommand()
722 output = (len[0] <= j) ? 0 : src[0][j]; in bitopCommand()
725 byte = (len[i] <= j) ? 0 : src[i][j]; in bitopCommand()
732 res[j] = output; in bitopCommand()
735 for (j = 0; j < numkeys; j++) { in bitopCommand()
736 if (objects[j]) in bitopCommand()
737 decrRefCount(objects[j]); in bitopCommand()
906 int j, numops = 0, changes = 0; in bitfieldCommand() local
912 for (j = 2; j < c->argc; j++) { in bitfieldCommand()
913 int remargs = c->argc-j-1; /* Remaining args other than current. */ in bitfieldCommand()
914 char *subcmd = c->argv[j]->ptr; /* Current command name. */ in bitfieldCommand()
927 char *owtypename = c->argv[j+1]->ptr; in bitfieldCommand()
928 j++; in bitfieldCommand()
948 if (getBitfieldTypeFromArgument(c,c->argv[j+1],&sign,&bits) != C_OK) { in bitfieldCommand()
953 if (getBitOffsetFromArgument(c,c->argv[j+2],&bitoffset,1,bits) != C_OK){ in bitfieldCommand()
962 if (getLongLongFromObjectOrReply(c,c->argv[j+3],&i64,NULL) != C_OK){ in bitfieldCommand()
978 j += 3 - (opcode == BITFIELDOP_GET); in bitfieldCommand()
996 for (j = 0; j < numops; j++) { in bitfieldCommand()
997 struct bitfieldOp *thisop = ops+j; in bitfieldCommand()