Home
last modified time | relevance | path

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

12

/external/swiftshader/third_party/SPIRV-Tools/source/util/
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()
Dhex_float.h338 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) ? "-" : "";
/external/angle/third_party/spirv-tools/src/source/util/
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()
Dhex_float.h338 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) ? "-" : "";
/external/deqp-deps/SPIRV-Tools/source/util/
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()
Dhex_float.h338 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) ? "-" : "";
/external/libaom/libaom/aom_dsp/arm/
Dloopfilter_neon.c176 const int8x8_t sign_mask = vdup_n_s8(0x80); in lpf_14_neon() local
180 pq_s0 = veor_s8(vreinterpret_s8_u8(*p0q0), sign_mask); in lpf_14_neon()
181 pq_s1 = veor_s8(vreinterpret_s8_u8(*p1q1), sign_mask); in lpf_14_neon()
211 oq0 = veor_s8(vqsub_s8(qs0_s8, filter1_s8), sign_mask); in lpf_14_neon()
212 op0 = veor_s8(vqadd_s8(ps0_s8, filter2_s8), sign_mask); in lpf_14_neon()
218 oq1 = veor_s8(vqsub_s8(qs1_s8, filter_s8), sign_mask); in lpf_14_neon()
219 op1 = veor_s8(vqadd_s8(ps1_s8, filter_s8), sign_mask); in lpf_14_neon()
357 const int8x8_t sign_mask = vdup_n_s8(0x80); in lpf_8_neon() local
361 pq_s0 = veor_s8(vreinterpret_s8_u8(*p0q0), sign_mask); in lpf_8_neon()
362 pq_s1 = veor_s8(vreinterpret_s8_u8(*p1q1), sign_mask); in lpf_8_neon()
[all …]
/external/FP16/include/fp16/
Dpsimd.h41 const psimd_u32 sign_mask = psimd_splat_u32(UINT32_C(0x80000000)); in fp16_ieee_to_fp32x2_psimd() local
42 const psimd_u32 sign_lo = word_lo & sign_mask; in fp16_ieee_to_fp32x2_psimd()
43 const psimd_u32 sign_hi = word_hi & sign_mask; in fp16_ieee_to_fp32x2_psimd()
101 const psimd_u32 sign_mask = psimd_splat_u32(UINT32_C(0x80000000)); in fp16_alt_to_fp32x2_psimd() local
102 const psimd_u32 sign_lo = word_lo & sign_mask; in fp16_alt_to_fp32x2_psimd()
103 const psimd_u32 sign_hi = word_hi & sign_mask; in fp16_alt_to_fp32x2_psimd()
Davx.py18 sign_mask = Constant.float32x4(-0.0)
21 VANDPS(xmm_sign, xmm_word, sign_mask)
Davx2.py21 sign_mask = Constant.float32x8(-0.0)
24 VANDPS(ymm_sign, ymm_word, sign_mask)
/external/virglrenderer/src/gallium/auxiliary/util/
Du_half.h49 uint32_t sign_mask = 0x80000000; in util_float_to_half() local
63 sign = f32.ui & sign_mask; in util_float_to_half()
/external/skqp/src/core/
DSkHalf.cpp34 static const uint32_t sign_mask = 0x80000000u; in SkFloatToHalf() local
41 uint32_t sign = floatUnion.fUInt & sign_mask; in SkFloatToHalf()
/external/skia/src/core/
DSkHalf.cpp34 static const uint32_t sign_mask = 0x80000000u; in SkFloatToHalf() local
41 uint32_t sign = floatUnion.fUInt & sign_mask; in SkFloatToHalf()
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Druntime_fp16.cc71 unsigned int sign_mask = 0x80000000u; in __gnu_f2h_ieee() local
74 unsigned int sign = f.as_uint() & sign_mask; in __gnu_f2h_ieee()
/external/deqp-deps/glslang/SPIRV/
Dhex_float.h305 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) ? "-" : "";
/external/angle/third_party/glslang/src/SPIRV/
Dhex_float.h305 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) ? "-" : "";
/external/tensorflow/tensorflow/lite/micro/
Ddebug_log_numbers.cc112 const uint32_t sign_mask = 0x80000000; in FastFloatToBufferLeft() local
122 if (u & sign_mask) { in FastFloatToBufferLeft()
/external/eigen/unsupported/Eigen/src/MoreVectorization/
DMathFunctions.h29 _EIGEN_DECLARE_CONST_Packet4f_FROM_INT(sign_mask, 0x80000000); in pasin()
/external/tensorflow/tensorflow/compiler/xla/client/lib/
Dmath.cc1112 const int64 sign_mask = int64{1} << (bitwidth - 1); in NextAfter()
1114 auto from_abs = And(from_as_int, ScalarLike(from_as_int, ~sign_mask)); in NextAfter()
1115 auto to_abs = And(to_as_int, ScalarLike(to_as_int, ~sign_mask)); in NextAfter()
1128 auto from_sign = And(from_as_int, ScalarLike(from_as_int, sign_mask)); in NextAfter()
1129 auto to_sign = And(to_as_int, ScalarLike(to_as_int, sign_mask)); in NextAfter()
/external/eigen/Eigen/src/Core/arch/CUDA/
DHalf.h298 unsigned int sign_mask = 0x80000000u; in float_to_half_rtne()
302 unsigned int sign = f.u & sign_mask; in float_to_half_rtne()
/external/mesa3d/src/gallium/drivers/radeon/
Dradeon_vcn_dec.h746 unsigned char sign_mask[2]; member
/external/eigen/Eigen/src/Core/arch/SSE/
DMathFunctions.h269 _EIGEN_DECLARE_CONST_Packet4f_FROM_INT(sign_mask, 0x80000000);
/external/vixl/src/aarch64/
Dsimulator-aarch64.cc352 uint64_t sign_mask = (reg_size == kWRegSize) ? kWSignMask : kXSignMask; in AddWithCarry() local
369 uint64_t left_sign = left & sign_mask; in AddWithCarry()
370 uint64_t right_sign = right & sign_mask; in AddWithCarry()
371 uint64_t result_sign = result & sign_mask; in AddWithCarry()
2803 uint64_t sign_mask = UINT64_C(0x8000000000000000); in MultiplyHigh() local
2813 u1 = u >> 32 | (((u & sign_mask) != 0) ? sign_ext : 0); in MultiplyHigh()
2815 v1 = v >> 32 | (((v & sign_mask) != 0) ? sign_ext : 0); in MultiplyHigh()
2821 w2 = t >> 32 | (((t & sign_mask) != 0) ? sign_ext : 0); in MultiplyHigh()
2823 w1 = w1 >> 32 | (((w1 & sign_mask) != 0) ? sign_ext : 0); in MultiplyHigh()
/external/mesa3d/src/compiler/glsl/
Dlower_instructions.cpp558 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()
/external/v8/src/execution/arm64/
Dsimulator-arm64.cc867 T sign_mask = T(1) << (sizeof(T) * 8 - 1); in AddWithCarry() local
868 T left_sign = left & sign_mask; in AddWithCarry()
869 T right_sign = right & sign_mask; in AddWithCarry()
870 T result_sign = result & sign_mask; in AddWithCarry()

12