Lines Matching refs:start
760 long start, end, strlen; in bitcountCommand() local
771 if (getLongFromObjectOrReply(c,c->argv[2],&start,NULL) != C_OK) in bitcountCommand()
776 if (start < 0 && end < 0 && start > end) { in bitcountCommand()
780 if (start < 0) start = strlen+start; in bitcountCommand()
782 if (start < 0) start = 0; in bitcountCommand()
787 start = 0; in bitcountCommand()
797 if (start > end) { in bitcountCommand()
800 long bytes = end-start+1; in bitcountCommand()
802 addReplyLongLong(c,redisPopcount(p+start,bytes)); in bitcountCommand()
809 long bit, start, end, strlen; in bitposCommand() local
835 if (getLongFromObjectOrReply(c,c->argv[3],&start,NULL) != C_OK) in bitposCommand()
845 if (start < 0) start = strlen+start; in bitposCommand()
847 if (start < 0) start = 0; in bitposCommand()
852 start = 0; in bitposCommand()
862 if (start > end) { in bitposCommand()
865 long bytes = end-start+1; in bitposCommand()
866 long pos = redisBitpos(p+start,bytes,bit); in bitposCommand()
879 if (pos != -1) pos += start*8; /* Adjust for the bytes we skipped. */ in bitposCommand()