/third_party/skia/third_party/externals/spirv-tools/source/util/ |
D | parse_number.h | 125 uint64_t sign_mask = 0; in CheckRangeAndIfHexThenSignExtend() local 131 sign_mask = magnitude_mask + 1; in CheckRangeAndIfHexThenSignExtend() 138 ((value & sign_mask) != sign_mask); in CheckRangeAndIfHexThenSignExtend() 157 if (is_hex && (value & sign_mask)) in CheckRangeAndIfHexThenSignExtend()
|
D | hex_float.h | 338 static const uint_type sign_mask = uint_type(1) << top_bit_left_shift; 362 return static_cast<uint_type>(value_.data() & ~sign_mask); 386 if ((getBits() & ~sign_mask) == 0) { // special case if everything is 0 413 bool isNegative() const { return (getBits() & sign_mask) != 0; } 453 new_value = static_cast<uint_type>(new_value | sign_mask); 677 (negate ? other_T::sign_mask : 0) | other_T::exponent_mask))); 692 (negate ? other_T::sign_mask : 0) | other_T::exponent_mask | 751 const char* const sign = (bits & HF::sign_mask) ? "-" : "";
|
/third_party/flutter/skia/third_party/externals/spirv-tools/source/util/ |
D | parse_number.h | 124 uint64_t sign_mask = 0; in CheckRangeAndIfHexThenSignExtend() local 130 sign_mask = magnitude_mask + 1; in CheckRangeAndIfHexThenSignExtend() 137 ((value & sign_mask) != sign_mask); in CheckRangeAndIfHexThenSignExtend() 156 if (is_hex && (value & sign_mask)) in CheckRangeAndIfHexThenSignExtend()
|
D | hex_float.h | 293 static const uint_type sign_mask = uint_type(1) << top_bit_left_shift; 318 ~sign_mask); 342 if ((getBits() & ~sign_mask) == 0) { // special case if everything is 0 369 bool isNegative() const { return (getBits() & sign_mask) != 0; } 409 new_value = static_cast<uint_type>(new_value | sign_mask); 605 (negate ? other_T::sign_mask : 0) | other_T::exponent_mask))); 620 (negate ? other_T::sign_mask : 0) | other_T::exponent_mask | 679 const char* const sign = (bits & HF::sign_mask) ? "-" : "";
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/util/ |
D | parse_number.h | 125 uint64_t sign_mask = 0; in CheckRangeAndIfHexThenSignExtend() local 131 sign_mask = magnitude_mask + 1; in CheckRangeAndIfHexThenSignExtend() 138 ((value & sign_mask) != sign_mask); in CheckRangeAndIfHexThenSignExtend() 157 if (is_hex && (value & sign_mask)) in CheckRangeAndIfHexThenSignExtend()
|
D | hex_float.h | 338 static const uint_type sign_mask = uint_type(1) << top_bit_left_shift; 362 return static_cast<uint_type>(value_.data() & ~sign_mask); 386 if ((getBits() & ~sign_mask) == 0) { // special case if everything is 0 413 bool isNegative() const { return (getBits() & sign_mask) != 0; } 453 new_value = static_cast<uint_type>(new_value | sign_mask); 677 (negate ? other_T::sign_mask : 0) | other_T::exponent_mask))); 692 (negate ? other_T::sign_mask : 0) | other_T::exponent_mask | 751 const char* const sign = (bits & HF::sign_mask) ? "-" : "";
|
/third_party/spirv-tools/source/util/ |
D | parse_number.h | 125 uint64_t sign_mask = 0; in CheckRangeAndIfHexThenSignExtend() local 131 sign_mask = magnitude_mask + 1; in CheckRangeAndIfHexThenSignExtend() 138 ((value & sign_mask) != sign_mask); in CheckRangeAndIfHexThenSignExtend() 157 if (is_hex && (value & sign_mask)) in CheckRangeAndIfHexThenSignExtend()
|
D | hex_float.h | 338 static const uint_type sign_mask = uint_type(1) << top_bit_left_shift; 362 return static_cast<uint_type>(value_.data() & ~sign_mask); 386 if ((getBits() & ~sign_mask) == 0) { // special case if everything is 0 413 bool isNegative() const { return (getBits() & sign_mask) != 0; } 453 new_value = static_cast<uint_type>(new_value | sign_mask); 677 (negate ? other_T::sign_mask : 0) | other_T::exponent_mask))); 692 (negate ? other_T::sign_mask : 0) | other_T::exponent_mask | 751 const char* const sign = (bits & HF::sign_mask) ? "-" : "";
|
/third_party/boost/boost/atomic/detail/ |
D | extra_fp_ops_generic.hpp | 105 …static BOOST_CONSTEXPR_OR_CONST storage_type sign_mask = static_cast< storage_type >(1u) << (atomi… member 109 …rn atomics::detail::bitwise_fp_cast< value_type >(base_type::fetch_xor(storage, sign_mask, order)); in fetch_negate() 114 … atomics::detail::bitwise_fp_cast< value_type >(base_type::bitwise_xor(storage, sign_mask, order)); in negate() 119 base_type::opaque_xor(storage, sign_mask, order); in opaque_negate()
|
/third_party/ltp/tools/sparse/sparse-src/ |
D | bits.h | 18 static inline unsigned long long sign_mask(unsigned size) in sign_mask() function 39 val |= ~sign_mask(size); in sign_extend()
|
D | simplify.c | 1185 if (value == sign_mask(size)) // (x < SMAX) --> (x != SMAX) in simplify_compare_constant() 1195 if (value == sign_mask(size)) // (x <= SMAX) --> 1 in simplify_compare_constant() 1199 if (value == sign_mask(size) - 1) // (x <= SMAX - 1) --> (x != SMAX) in simplify_compare_constant() 1200 return replace_binop_value(insn, OP_SET_NE, sign_mask(size)); in simplify_compare_constant() 1209 if (value == sign_mask(size)) // (x >= SMAX) --> (x == SMAX) in simplify_compare_constant() 1219 if (value == sign_mask(size)) // (x > SMAX) --> 0 in simplify_compare_constant() 1223 if (value == sign_mask(size) - 1) // (x > SMAX - 1) --> (x == SMAX) in simplify_compare_constant() 1224 return replace_binop_value(insn, OP_SET_EQ, sign_mask(size)); in simplify_compare_constant()
|
/third_party/mindspore/mindspore/core/base/ |
D | float16.h | 106 constexpr uint32_t sign_mask = 0x8000; in ToFloat32() local 126 f32.u |= ((f16.value_ & sign_mask) << sign_bit_shift); in ToFloat32() 138 constexpr unsigned int sign_mask = 0x80000000u; in FromFloat32() local 143 unsigned int sign = f.u & sign_mask; in FromFloat32() 201 constexpr uint16_t sign_mask = 0x8000; variable 202 return Float16::FromRaw(a.int_value() ^ sign_mask);
|
/third_party/skia/src/core/ |
D | SkHalf.cpp | 34 static const uint32_t sign_mask = 0x80000000u; in SkFloatToHalf() local 41 uint32_t sign = floatUnion.fUInt & sign_mask; in SkFloatToHalf()
|
/third_party/flutter/skia/src/core/ |
D | SkHalf.cpp | 34 static const uint32_t sign_mask = 0x80000000u; in SkFloatToHalf() local 41 uint32_t sign = floatUnion.fUInt & sign_mask; in SkFloatToHalf()
|
/third_party/glslang/SPIRV/ |
D | hex_float.h | 305 static const uint_type sign_mask = uint_type(1) << top_bit_left_shift; 330 ~sign_mask); 354 if ((getBits() & ~sign_mask) == 0) { // special case if everything is 0 381 bool isNegative() const { return (getBits() & sign_mask) != 0; } 421 new_value = static_cast<uint_type>(new_value | sign_mask); 607 (negate ? other_T::sign_mask : 0) | other_T::exponent_mask))); 622 (negate ? other_T::sign_mask : 0) | other_T::exponent_mask | 681 const char* const sign = (bits & HF::sign_mask) ? "-" : "";
|
/third_party/ffmpeg/libavcodec/ |
D | cfhdenc.c | 250 const int sign_mask = 256; in cfhd_encode_init() local 251 const int twos_complement = -sign_mask; in cfhd_encode_init() 252 const int mag_mask = sign_mask - 1; in cfhd_encode_init() 321 int value = (i & sign_mask) ? twos_complement + (i & mag_mask): i; in cfhd_encode_init()
|
/third_party/mesa3d/src/compiler/nir/ |
D | nir_builtin_builder.c | 70 uint64_t sign_mask = 1ull << (x->bit_size - 1); in nir_nextafter() local 94 nir_imm_intN_t(b, sign_mask | min_abs, x->bit_size), in nir_nextafter()
|
/third_party/mesa3d/src/gallium/drivers/radeon/ |
D | radeon_vcn_dec.h | 986 unsigned char sign_mask[2]; member
|
/third_party/mesa3d/src/compiler/glsl/ |
D | lower_instructions.cpp | 558 ir_constant *sign_mask = new(ir) ir_constant(0x80000000u); in dldexp_to_arith() local 613 i.insert_before(assign(unpacked, bit_and(swizzle_y(unpacked), sign_mask->clone(ir, NULL)), in dldexp_to_arith()
|
/third_party/boost/libs/multiprecision/test/ |
D | test_arithmetic.hpp | 236 int sign_mask = ~0; in test_complement() local 239 BOOST_CHECK_EQUAL(~a, (~i & sign_mask)); in test_complement() 241 BOOST_CHECK_EQUAL(c, (i & (~j & sign_mask))); in test_complement() 243 BOOST_CHECK_EQUAL(c, (~(i | j) & sign_mask)); in test_complement()
|
/third_party/mesa3d/src/gallium/auxiliary/gallivm/ |
D | lp_bld_arit.c | 2886 LLVMValueRef sign_mask = lp_build_const_int_vec(gallivm, bld->type, 0x80000000); in lp_build_sin_or_cos() local 2901 sign_mask, "sign_bit"); in lp_build_sin_or_cos()
|