Home
last modified time | relevance | path

Searched refs:sign_mask (Results 1 - 23 of 23) sorted by relevance

/third_party/skia/third_party/externals/spirv-tools/source/util/
H A Dparse_number.h125 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()
H A Dhex_float.h338 static const uint_type sign_mask = uint_type(1) << top_bit_left_shift; member in spvtools::utils::round_direction::HexFloat
362 return static_cast<uint_type>(value_.data() & ~sign_mask); in getUnsignedBits()
386 if ((getBits() & ~sign_mask) == 0) { // special case if everything is 0 in getUnbiasedNormalizedExponent()
413 bool isNegative() const { return (getBits() & sign_mask) != 0; } in isNegative()
453 new_value = static_cast<uint_type>(new_value | sign_mask); in setFromSignUnbiasedExponentAndNormalizedSignificand()
677 (negate ? other_T::sign_mask : 0) | other_T::exponent_mask))); in castTo()
692 (negate ? other_T::sign_mask : 0) | other_T::exponent_mask | in castTo()
751 const char* const sign = (bits & HF::sign_mask) ? "-" : ""; in operator <<()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/util/
H A Dparse_number.h125 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()
H A Dhex_float.h338 static const uint_type sign_mask = uint_type(1) << top_bit_left_shift; member in spvtools::utils::round_direction::HexFloat
362 return static_cast<uint_type>(value_.data() & ~sign_mask); in getUnsignedBits()
386 if ((getBits() & ~sign_mask) == 0) { // special case if everything is 0 in getUnbiasedNormalizedExponent()
413 bool isNegative() const { return (getBits() & sign_mask) != 0; } in isNegative()
453 new_value = static_cast<uint_type>(new_value | sign_mask); in setFromSignUnbiasedExponentAndNormalizedSignificand()
677 (negate ? other_T::sign_mask : 0) | other_T::exponent_mask))); in castTo()
692 (negate ? other_T::sign_mask : 0) | other_T::exponent_mask | in castTo()
751 const char* const sign = (bits & HF::sign_mask) ? "-" : ""; in operator <<()
/third_party/spirv-tools/source/util/
H A Dparse_number.h125 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()
H A Dhex_float.h339 static const uint_type sign_mask = uint_type(1) << top_bit_left_shift; member in spvtools::utils::round_direction::HexFloat
363 return static_cast<uint_type>(value_.data() & ~sign_mask); in getUnsignedBits()
387 if ((getBits() & ~sign_mask) == 0) { // special case if everything is 0 in getUnbiasedNormalizedExponent()
414 bool isNegative() const { return (getBits() & sign_mask) != 0; } in isNegative()
454 new_value = static_cast<uint_type>(new_value | sign_mask); in setFromSignUnbiasedExponentAndNormalizedSignificand()
678 (negate ? other_T::sign_mask : 0) | other_T::exponent_mask))); in castTo()
693 (negate ? other_T::sign_mask : 0) | other_T::exponent_mask | in castTo()
752 const char* const sign = (bits & HF::sign_mask) ? "-" : ""; in operator <<()
/third_party/lame/libmp3lame/vector/
H A Dxmm_quantize_sub.c195 static const vecfloat_union sign_mask = {{0x80000000,0,0,0}}; in fht_SSE2() local
196 v_c1 = _mm_xor_ps(sign_mask._m128, v_c1); /* v_c1 := {-c1, +c1, +c1, +c1} */ in fht_SSE2()
199 static const vecfloat_union sign_mask = {{0,0x80000000,0,0}}; in fht_SSE2() local
200 v_s1 = _mm_xor_ps(sign_mask._m128, v_s1); /* v_s1 := {+s1, -s1, +s1, +s1} */ in fht_SSE2()
203 static const vecfloat_union sign_mask = {{0,0,0x80000000,0x80000000}}; in fht_SSE2() local
204 v_c2 = _mm_xor_ps(sign_mask._m128, v_c2); /* v_c2 := {+c2, +c2, -c2, -c2} */ in fht_SSE2()
/third_party/ltp/tools/sparse/sparse-src/
H A Dbits.h18 static inline unsigned long long sign_mask(unsigned size) in sign_mask() function
39 val |= ~sign_mask(size); in sign_extend()
H A Dsimplify.c1185 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/skia/src/core/
H A DSkHalf.cpp34 static const uint32_t sign_mask = 0x80000000u; in SkFloatToHalf() local
41 uint32_t sign = floatUnion.fUInt & sign_mask; in SkFloatToHalf()
/third_party/glslang/SPIRV/
H A Dhex_float.h292 static const uint_type sign_mask = uint_type(1) << top_bit_left_shift; member in spvutils::HexFloat
317 ~sign_mask); in getUnsignedBits()
341 if ((getBits() & ~sign_mask) == 0) { // special case if everything is 0 in getUnbiasedNormalizedExponent()
368 bool isNegative() const { return (getBits() & sign_mask) != 0; } in isNegative()
408 new_value = static_cast<uint_type>(new_value | sign_mask); in setFromSignUnbiasedExponentAndNormalizedSignificand()
594 (negate ? other_T::sign_mask : 0) | other_T::exponent_mask))); in castTo()
609 (negate ? other_T::sign_mask : 0) | other_T::exponent_mask | in castTo()
668 const char* const sign = (bits & HF::sign_mask) ? "-" : ""; in operator <<()
/third_party/astc-encoder/Source/
H A Dastcenc_vecmathlib.h217 vint sign_mask(static_cast<int>(0x80000000)); in change_sign()
218 vint r = ia ^ (ib & sign_mask); in change_sign()
/third_party/mesa3d/src/compiler/nir/
H A Dnir_builtin_builder.c70 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/ffmpeg/libavcodec/
H A Dcfhdenc.c250 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/vixl/src/
H A Dutils-vixl.h1189 uint64_t sign_mask = UINT64_C(1) << (N - 1); in MultiplyHigh() local
1201 u1 = u >> half_bits | (((u & sign_mask) != 0) ? sign_ext : 0); in MultiplyHigh()
1203 v1 = v >> half_bits | (((v & sign_mask) != 0) ? sign_ext : 0); in MultiplyHigh()
1209 w2 = t >> half_bits | (((t & sign_mask) != 0) ? sign_ext : 0); in MultiplyHigh()
1211 w1 = w1 >> half_bits | (((w1 & sign_mask) != 0) ? sign_ext : 0); in MultiplyHigh()
/third_party/mesa3d/src/amd/common/
H A Dac_vcn_dec.h1065 unsigned char sign_mask[2]; member
/third_party/mesa3d/src/compiler/glsl/
H A Dlower_instructions.cpp172 * sign_mantissa &= sign_mask; in ldexp_to_arith()
191 * sign_mantissa = csel(zero_mantissa, sign_mantissa & sign_mask, sign_mantissa); in ldexp_to_arith()
343 ir_constant *sign_mask = new(ir) ir_constant(0x80000000u); in dldexp_to_arith() local
398 i.insert_before(assign(unpacked, bit_and(swizzle_y(unpacked), sign_mask->clone(ir, NULL)), in dldexp_to_arith()
/third_party/vixl/src/aarch64/
H A Dsimulator-aarch64.cc938 uint64_t sign_mask = (reg_size == kWRegSize) ? kWSignMask : kXSignMask; in Simulator() local
955 uint64_t left_sign = left & sign_mask; in Simulator()
956 uint64_t right_sign = right & sign_mask; in Simulator()
957 uint64_t result_sign = result & sign_mask; in Simulator()
11004 uint64_t sign_mask = UINT64_C(1) << (n - 1); in Simulator() local
11010 bool result_negative = ((result & sign_mask) != 0); in Simulator()
11014 bool acc_negative = ((acc & sign_mask) != 0); in Simulator()
11024 result = mask & ~sign_mask; // E.g. 0x000000007fffffff in Simulator()
11028 result = ~mask | sign_mask; // E.g. 0xffffffff80000000 in Simulator()
/third_party/mesa3d/src/gallium/auxiliary/gallivm/
H A Dlp_bld_arit.c2873 LLVMValueRef sign_mask = lp_build_const_int_vec(gallivm, bld->type, 0x80000000); in lp_build_sin_or_cos() local
2888 sign_mask, "sign_bit"); in lp_build_sin_or_cos()
/third_party/node/deps/v8/src/execution/arm64/
H A Dsimulator-arm64.cc1065 T sign_mask = T(1) << (sizeof(T) * 8 - 1); in AddWithCarry() local
1066 T left_sign = left & sign_mask; in AddWithCarry()
1067 T right_sign = right & sign_mask; in AddWithCarry()
1068 T result_sign = result & sign_mask; in AddWithCarry()
/third_party/mesa3d/src/broadcom/compiler/
H A Dnir_to_vir.c1405 uint32_t sign_mask = 1 << (src_bit_size - 1); in sign_extend() local
1408 tmp, vir_uniform_ui(c, sign_mask)); in sign_extend()
/third_party/node/deps/v8/src/compiler/
H A Deffect-control-linearizer.cc2920 Node* sign_mask = __ Word64Sar(value, __ Int64Constant(63)); in LowerChangeInt64ToBigInt() local
2921 Node* absolute_value = __ Int64Sub(__ Word64Xor(value, sign_mask), sign_mask); in LowerChangeInt64ToBigInt()
/third_party/vixl/test/aarch64/
H A Dtest-assembler-neon-aarch64.cc10654 uint16_t sign_mask = 0x8000; in MinMaxHelper() local
10655 if (IsZero(n) && IsZero(m) && ((raw_n & sign_mask) != (raw_m & sign_mask))) { in MinMaxHelper()

Completed in 78 milliseconds