Home
last modified time | relevance | path

Searched refs:sign_bit (Results 1 – 25 of 27) sorted by relevance

12

/third_party/ltp/tools/sparse/sparse-src/
Dbits.h13 static inline unsigned long long sign_bit(unsigned size) in sign_bit() function
20 unsigned long long sbit = sign_bit(size); in sign_mask()
26 unsigned long long sbit = sign_bit(size); in bits_mask()
38 if (val & sign_bit(size)) in sign_extend()
Dsimplify.c1183 if (value == sign_bit(size)) // (x < SMIN) --> 0 in simplify_compare_constant()
1187 if (value == sign_bit(size) + 1)// (x < SMIN + 1) --> (x == SMIN) in simplify_compare_constant()
1188 return replace_binop_value(insn, OP_SET_EQ, sign_bit(size)); in simplify_compare_constant()
1189 if (!(value & sign_bit(size))) in simplify_compare_constant()
1197 if (value == sign_bit(size)) // (x <= SMIN) --> (x == SMIN) in simplify_compare_constant()
1201 if (value & sign_bit(size)) in simplify_compare_constant()
1207 if (value == sign_bit(size)) // (x >= SMIN) --> 1 in simplify_compare_constant()
1211 if (value == sign_bit(size) + 1)// (x >= SMIN + 1) --> (x != SMIN) in simplify_compare_constant()
1212 return replace_binop_value(insn, OP_SET_NE, sign_bit(size)); in simplify_compare_constant()
1213 if (!(value & sign_bit(size))) in simplify_compare_constant()
[all …]
Dlinearize.h63 return pseudo->type == PSEUDO_VAL && !(pseudo->value & sign_bit(size)); in is_positive()
/third_party/node/test/js-native-api/test_bigint/
Dtest_bigint.c95 int sign_bit; in TestWords() local
100 env, args[0], &sign_bit, &word_count, words)); in TestWords()
107 env, sign_bit, word_count, words, &output)); in TestWords()
114 int sign_bit = 0; in CreateTooBigBigInt() local
121 env, sign_bit, word_count, words, &output)); in CreateTooBigBigInt()
/third_party/json/test/src/
Dunit-to_chars.cpp41 static float make_float(uint32_t sign_bit, uint32_t biased_exponent, uint32_t significand) in make_float() argument
43 assert(sign_bit == 0 || sign_bit == 1); in make_float()
49 bits |= sign_bit << 31; in make_float()
93 static double make_double(uint64_t sign_bit, uint64_t biased_exponent, uint64_t significand) in make_double() argument
95 assert(sign_bit == 0 || sign_bit == 1); in make_double()
101 bits |= sign_bit << 63; in make_double()
/third_party/spirv-tools/source/val/
Dvalidate_literals.cpp52 const uint32_t sign_bit = word & (1u << (width - 1)); in VerifyUpperBits() local
53 if (sign_bit) { in VerifyUpperBits()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/val/
Dvalidate_literals.cpp52 const uint32_t sign_bit = word & (1u << (width - 1)); in VerifyUpperBits() local
53 if (sign_bit) { in VerifyUpperBits()
/third_party/skia/third_party/externals/spirv-tools/source/val/
Dvalidate_literals.cpp52 const uint32_t sign_bit = word & (1u << (width - 1)); in VerifyUpperBits() local
53 if (sign_bit) { in VerifyUpperBits()
/third_party/skia/third_party/externals/tint/src/writer/wgsl/
Dgenerator_impl_literal_test.cc30 const uint32_t sign_bit = sign ? 0x80000000u : 0u; in MakeFloat() local
36 uint32_t bits = sign_bit | exponent_bits | mantissa_bits; in MakeFloat()
/third_party/skia/third_party/externals/tint/src/writer/
Dfloat_to_string_test.cc32 const uint32_t sign_bit = sign ? 0x80000000u : 0u; in MakeFloat() local
38 uint32_t bits = sign_bit | exponent_bits | mantissa_bits; in MakeFloat()
/third_party/mesa3d/src/gallium/drivers/r300/
Dr300_texture.c176 const uint32_t sign_bit[4] = { in r300_translate_texformat() local
276 result |= sign_bit[0]; in r300_translate_texformat()
284 result |= sign_bit[1] | sign_bit[0]; in r300_translate_texformat()
316 result |= sign_bit[i]; in r300_translate_texformat()
/third_party/skia/third_party/externals/libwebp/src/dsp/
Ddec_sse2.c263 (a) = _mm_xor_si128(a, sign_bit); \
264 (b) = _mm_xor_si128(b, sign_bit); \
329 const __m128i sign_bit = _mm_set1_epi8((char)0x80); in Update2Pixels_SSE2() local
363 const __m128i sign_bit = _mm_set1_epi8((char)0x80); in DoFilter2_SSE2() local
365 const __m128i p1s = _mm_xor_si128(*p1, sign_bit); in DoFilter2_SSE2()
366 const __m128i q1s = _mm_xor_si128(*q1, sign_bit); in DoFilter2_SSE2()
383 const __m128i sign_bit = _mm_set1_epi8((char)0x80); in DoFilter4_SSE2() local
413 t2 = _mm_add_epi8(t3, sign_bit); in DoFilter4_SSE2()
430 const __m128i sign_bit = _mm_set1_epi8((char)0x80); in DoFilter6_SSE2() local
Ddec_neon.c441 const uint8x16_t sign_bit = vdupq_n_u8(0x80); in FlipSign_NEON() local
442 return vreinterpretq_s8_u8(veorq_u8(v, sign_bit)); in FlipSign_NEON()
446 const int8x16_t sign_bit = vdupq_n_s8(0x80); in FlipSignBack_NEON() local
447 return vreinterpretq_u8_s8(veorq_s8(v, sign_bit)); in FlipSignBack_NEON()
/third_party/flutter/skia/third_party/externals/libwebp/src/dsp/
Ddec_sse2.c263 (a) = _mm_xor_si128(a, sign_bit); \
264 (b) = _mm_xor_si128(b, sign_bit); \
329 const __m128i sign_bit = _mm_set1_epi8((char)0x80); in Update2Pixels_SSE2() local
363 const __m128i sign_bit = _mm_set1_epi8((char)0x80); in DoFilter2_SSE2() local
365 const __m128i p1s = _mm_xor_si128(*p1, sign_bit); in DoFilter2_SSE2()
366 const __m128i q1s = _mm_xor_si128(*q1, sign_bit); in DoFilter2_SSE2()
383 const __m128i sign_bit = _mm_set1_epi8((char)0x80); in DoFilter4_SSE2() local
413 t2 = _mm_add_epi8(t3, sign_bit); in DoFilter4_SSE2()
430 const __m128i sign_bit = _mm_set1_epi8((char)0x80); in DoFilter6_SSE2() local
Ddec_neon.c441 const uint8x16_t sign_bit = vdupq_n_u8(0x80); in FlipSign_NEON() local
442 return vreinterpretq_s8_u8(veorq_u8(v, sign_bit)); in FlipSign_NEON()
446 const int8x16_t sign_bit = vdupq_n_s8(0x80); in FlipSignBack_NEON() local
447 return vreinterpretq_u8_s8(veorq_s8(v, sign_bit)); in FlipSignBack_NEON()
/third_party/skia/third_party/externals/tint/src/reader/wgsl/
Dparser_impl_const_literal_test.cc30 const uint32_t sign_bit = sign ? 0x80000000u : 0u; in MakeFloat() local
36 uint32_t bits = sign_bit | exponent_bits | mantissa_bits; in MakeFloat()
Dlexer.cc339 int32_t sign_bit = 0; in try_hex_float() local
341 sign_bit = 1; in try_hex_float()
602 uint32_t result_u32 = sign_bit << kSignBit; in try_hex_float()
/third_party/node/src/
Djs_native_api.h495 int sign_bit,
509 int* sign_bit,
Djs_native_api_v8.cc1599 int sign_bit, in napi_create_bigint_words() argument
1613 context, sign_bit, word_count, words); in napi_create_bigint_words()
2111 int* sign_bit, in napi_get_value_bigint_words() argument
2126 if (sign_bit == nullptr && words == nullptr) { in napi_get_value_bigint_words()
2129 CHECK_ARG(env, sign_bit); in napi_get_value_bigint_words()
2131 big->ToWordsArray(sign_bit, &word_count_int, words); in napi_get_value_bigint_words()
/third_party/ejdb/src/bindings/ejdb2_node/
Djs_native_api.h495 int sign_bit,
509 int* sign_bit,
/third_party/mesa3d/src/gallium/drivers/r600/
Dr600_state_common.c2714 const uint32_t sign_bit[4] = { in r600_translate_texformat() local
2838 word4 |= sign_bit[0]; in r600_translate_texformat()
2846 word4 |= sign_bit[0] | sign_bit[1]; in r600_translate_texformat()
2892 word4 |= sign_bit[0] | sign_bit[1] | sign_bit[2]; in r600_translate_texformat()
2928 word4 |= sign_bit[i]; in r600_translate_texformat()
/third_party/mesa3d/src/gtest/include/gtest/internal/
Dgtest-internal.h319 Bits sign_bit() const { return kSignBitMask & u_.bits_; } in sign_bit() function
/third_party/googletest/googletest/include/gtest/internal/
Dgtest-internal.h331 Bits sign_bit() const { return kSignBitMask & u_.bits_; } in sign_bit() function
/third_party/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_arit.c2895 LLVMValueRef sign_bit = cos ? LLVMBuildShl(b, LLVMBuildAnd(b, const_4, in lp_build_sin_or_cos() local
3017 LLVMValueRef y_sign = LLVMBuildXor(b, y_combine, sign_bit, "y_sign"); in lp_build_sin_or_cos()
/third_party/node/doc/api/
Dn-api.md2568 int sign_bit,
2575 * `[in] sign_bit`: Determines if the resulting `BigInt` will be positive or
2586 The resulting `BigInt` is calculated as: (–1)<sup>`sign_bit`</sup> (`words[0]`
2975 int* sign_bit,
2982 * `[out] sign_bit`: Integer representing if the JavaScript `BigInt` is positive
2992 array, and the number of elements in the array. `sign_bit` and `words` may be

12