Lines Matching defs:bit
2362 /* Detects if the character and its othercase has only 1 bit difference. */
2363 unsigned int c, oc, bit;
2395 bit = c ^ oc;
2397 if (c <= 127 && bit == 0x20)
2400 /* Since c != oc, they must have at least 1 bit difference. */
2401 if (!is_powerof2(bit))
2410 while ((bit & 0x3f) == 0)
2413 bit >>= 6;
2415 return (n << 8) | bit;
2418 return (0 << 8) | bit;
2425 if (bit >= (1 << 10))
2426 bit >>= 10;
2428 return (bit < 256) ? ((2 << 8) | bit) : ((3 << 8) | (bit >> 8));
2431 return (bit < 256) ? ((0 << 8) | bit) : ((1 << 8) | (bit >> 8));
2953 /* This code runs only in 8 bit mode. No need to shift the value. */
3777 pcre_uchar oc, bit;
3803 bit = first_char ^ oc;
3804 if (is_powerof2(bit))
3806 OP2(SLJIT_OR, TMP2, 0, TMP1, 0, SLJIT_IMM, bit);
3807 found = CMP(SLJIT_C_EQUAL, TMP2, 0, SLJIT_IMM, first_char | bit);
4004 pcre_uint32 oc, bit;
4034 bit = req_char ^ oc;
4035 if (is_powerof2(bit))
4037 OP2(SLJIT_OR, TMP2, 0, TMP2, 0, SLJIT_IMM, bit);
4038 found = CMP(SLJIT_C_EQUAL, TMP2, 0, SLJIT_IMM, req_char | bit);
4206 pcre_uint8 bit, cbit, all;
4209 bit = bits[0] & 0x1;
4210 /* All bits will be zero or one (since bit is zero or one). */
4211 all = -bit;
4221 if (cbit != bit)
4227 bit = cbit;
4234 if (((bit == 0) && nclass) || ((bit == 1) && !nclass))
4245 bit = bits[0] & 0x1;
4246 if (invert) bit ^= 0x1;
4249 if (length == 0 && bit == 0)
4255 /* When bit != 0, all characters are accepted. */
4259 add_jump(compiler, backtracks, CMP(bit == 0 ? SLJIT_C_LESS : SLJIT_C_GREATER_EQUAL, TMP1, 0, SLJIT_IMM, ranges[0]));
4266 add_jump(compiler, backtracks, CMP(bit != 0 ? SLJIT_C_LESS : SLJIT_C_GREATER_EQUAL, TMP1, 0, SLJIT_IMM, ranges[1] - ranges[0]));
4269 add_jump(compiler, backtracks, CMP(bit != 0 ? SLJIT_C_EQUAL : SLJIT_C_NOT_EQUAL, TMP1, 0, SLJIT_IMM, ranges[0]));
4273 if (bit != 0)
4305 add_jump(compiler, backtracks, CMP(bit != 0 ? SLJIT_C_LESS : SLJIT_C_GREATER_EQUAL, TMP1, 0, SLJIT_IMM, ranges[3] - ranges[2]));
4308 add_jump(compiler, backtracks, CMP(bit != 0 ? SLJIT_C_EQUAL : SLJIT_C_NOT_EQUAL, TMP1, 0, SLJIT_IMM, ranges[2]));
4312 if (bit != 0)
4571 /* Extracting bit difference info. */
4578 bit from itself (there currently are none), this code will need to be
4684 /* Unaligned read is unsupported or in 32 bit mode. */
4848 /* We are not necessary in utf mode even in 8 bit mode. */
5237 unsigned int c, oc, bit;
5278 /* Flip the starting bit in the negative case. */
5650 bit = c ^ oc;
5651 if (is_powerof2(bit))
5653 OP2(SLJIT_OR, TMP1, 0, TMP1, 0, SLJIT_IMM, bit);
5654 add_jump(compiler, backtracks, CMP(SLJIT_C_NOT_EQUAL, TMP1, 0, SLJIT_IMM, c | bit));
5709 bit = c ^ oc;
5710 if (is_powerof2(bit))
5712 OP2(SLJIT_OR, TMP1, 0, TMP1, 0, SLJIT_IMM, bit);
5713 add_jump(compiler, backtracks, CMP(SLJIT_C_EQUAL, TMP1, 0, SLJIT_IMM, c | bit));
5728 bit = (common->utf && is_char7_bitset((const pcre_uint8 *)cc, type == OP_NCLASS)) ? 127 : 255;
5729 read_char_range(common, 0, bit, type == OP_NCLASS);
5741 jump[0] = CMP(SLJIT_C_GREATER, TMP1, 0, SLJIT_IMM, bit);
10335 * cleared the PCRE_EXTRA_EXECUTABLE_JIT bit from the "flags" field
10337 * bit remains set, as the bit indicates that the pointer to the data