Home
last modified time | relevance | path

Searched refs:exponent_bits (Results 1 – 25 of 46) sorted by relevance

12

/external/deqp-deps/amber/src/
Dfloat16_helper.cc46 uint32_t exponent_bits = ((hex_float >> 23U) & ((1U << 8U) - 1U)); in FloatExponent() local
48 if (exponent_bits == 0U) in FloatExponent()
50 uint32_t exponent = exponent_bits - 112U; in FloatExponent()
66 uint32_t exponent_bits = (static_cast<uint32_t>(value[1]) & 0x7c) >> 2U; in HexFloat16ToFloat() local
70 if (exponent_bits != 0U) { in HexFloat16ToFloat()
71 exponent = (exponent_bits + 112U) << 23U; in HexFloat16ToFloat()
/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_format_float.c76 unsigned exponent_bits, in lp_build_float_to_smallfloat() argument
96 ((1 << exponent_bits) - 1) << 23); in lp_build_float_to_smallfloat()
131 ((1 << (exponent_bits - 1)) - 1) << 23); in lp_build_float_to_smallfloat()
137 (((1 << exponent_bits) - 2) << 23) | in lp_build_float_to_smallfloat()
198 unsigned maskbits = (1 << (mantissa_bits + exponent_bits)) - 1; in lp_build_float_to_smallfloat()
212 shift = lp_build_const_int_vec(gallivm, i32_type, 8 - exponent_bits); in lp_build_float_to_smallfloat()
285 unsigned exponent_bits, in lp_build_smallfloat_to_float() argument
309 ((1 << (mantissa_bits + exponent_bits)) - 1) in lp_build_smallfloat_to_float()
315 ((1 << exponent_bits) - 1) << 23); in lp_build_smallfloat_to_float()
335 (255 - (1 << (exponent_bits - 1))) << 23); in lp_build_smallfloat_to_float()
[all …]
Dlp_bld_format.h215 unsigned exponent_bits,
224 unsigned exponent_bits,
/external/tensorflow/tensorflow/compiler/xla/tests/
Dreduce_precision_test.cc460 void DoIt(int exponent_bits, int mantissa_bits,
495 int exponent_bits, int mantissa_bits, in DoIt() argument
499 exponent_bits, mantissa_bits)); in DoIt()
526 ReducePrecision(a, exponent_bits, mantissa_bits); in DoIt()
/external/skia/src/utils/
DSkFloatUtils.h93 Bits exponent_bits() const { return kExponentBitMask & fU.bits; }
103 return (exponent_bits() == kExponentBitMask) && (fraction_bits() != 0);
/external/skqp/src/utils/
DSkFloatUtils.h93 Bits exponent_bits() const { return kExponentBitMask & fU.bits; }
103 return (exponent_bits() == kExponentBitMask) && (fraction_bits() != 0);
/external/tensorflow/tensorflow/core/framework/
Dtensor_testutil_test.cc56 int exponent_bits = 2 + (log2(sizeof(U)) * 3); in dumpFloatingPointStorage() local
60 if (bits == 0 || bits == exponent_bits) std::cout << " "; in dumpFloatingPointStorage()
/external/rust/crates/rand/src/distributions/
Dfloat.rs100 let exponent_bits: $u_scalar = localVariable
102 $ty::from_bits(self | exponent_bits)
/external/llvm/utils/unittest/googletest/include/gtest/internal/
Dgtest-internal.h418 Bits exponent_bits() const { return kExponentBitMask & u_.bits_; } in exponent_bits() function
430 return (exponent_bits() == kExponentBitMask) && (fraction_bits() != 0); in is_nan()
/external/tensorflow/tensorflow/compiler/mlir/xla/ir/
Dmlir_hlo_builder.h176 const int exponent_bits,
Dmlir_hlo_builder.cc277 const Shape& shape, XlaOp operand, const int exponent_bits, in ReducePrecisionInternal() argument
282 loc_, ty, GetValue(operand), builder_.getI32IntegerAttr(exponent_bits), in ReducePrecisionInternal()
/external/tensorflow/tensorflow/compiler/xla/service/
Dshape_inference.h288 const int exponent_bits,
Dhlo_instructions.cc2006 const Shape& shape, HloInstruction* operand, const int exponent_bits, in HloReducePrecisionInstruction() argument
2009 exponent_bits_(exponent_bits), in HloReducePrecisionInstruction()
2034 return exponent_bits() == casted_other.exponent_bits() && in IdenticalSlowPath()
2044 shape, new_operands[0], exponent_bits(), mantissa_bits()); in CloneWithNewOperandsImpl()
Dhlo_instruction.h625 const Shape& shape, HloInstruction* operand, const int exponent_bits,
1789 int32 exponent_bits() const;
Dhlo_instruction.cc393 shape, operands(0), proto.exponent_bits(), proto.mantissa_bits()); in CreateFromProto()
1037 const int exponent_bits, in CreateReducePrecision() argument
1040 shape, operand, exponent_bits, mantissa_bits); in CreateReducePrecision()
4095 int32 HloInstruction::exponent_bits() const { in exponent_bits() function in xla::HloInstruction
4096 return Cast<HloReducePrecisionInstruction>(this)->exponent_bits(); in exponent_bits()
Dhlo_instructions.h1128 const int exponent_bits,
1131 int32 exponent_bits() const { return exponent_bits_; } in exponent_bits() function
Dshape_inference.cc506 const Shape& operand_shape, const int exponent_bits, in InferReducePrecisionShape() argument
514 if (exponent_bits < 1) { in InferReducePrecisionShape()
519 exponent_bits); in InferReducePrecisionShape()
/external/llvm-project/llvm/utils/unittest/googletest/include/gtest/internal/
Dgtest-internal.h337 Bits exponent_bits() const { return kExponentBitMask & u_.bits_; } in exponent_bits() function
349 return (exponent_bits() == kExponentBitMask) && (fraction_bits() != 0); in is_nan()
/external/libvpx/libvpx/third_party/googletest/src/include/gtest/internal/
Dgtest-internal.h325 Bits exponent_bits() const { return kExponentBitMask & u_.bits_; } in exponent_bits() function
337 return (exponent_bits() == kExponentBitMask) && (fraction_bits() != 0); in is_nan()
/external/rust/crates/quiche/deps/boringssl/src/third_party/googletest/include/gtest/internal/
Dgtest-internal.h313 Bits exponent_bits() const { return kExponentBitMask & u_.bits_; } in exponent_bits() function
325 return (exponent_bits() == kExponentBitMask) && (fraction_bits() != 0); in is_nan()
/external/mesa3d/src/gtest/include/gtest/internal/
Dgtest-internal.h313 Bits exponent_bits() const { return kExponentBitMask & u_.bits_; } in exponent_bits() function
325 return (exponent_bits() == kExponentBitMask) && (fraction_bits() != 0); in is_nan()
/external/libaom/libaom/third_party/googletest/src/googletest/include/gtest/internal/
Dgtest-internal.h322 Bits exponent_bits() const { return kExponentBitMask & u_.bits_; } in exponent_bits() function
334 return (exponent_bits() == kExponentBitMask) && (fraction_bits() != 0); in is_nan()
/external/googletest/googletest/include/gtest/internal/
Dgtest-internal.h325 Bits exponent_bits() const { return kExponentBitMask & u_.bits_; } in exponent_bits() function
337 return (exponent_bits() == kExponentBitMask) && (fraction_bits() != 0); in is_nan()
/external/tensorflow/tensorflow/compiler/xla/client/
Dxla_builder.h839 XlaOp ReducePrecision(XlaOp operand, const int exponent_bits,
843 const int exponent_bits,
1390 friend XlaOp ReducePrecision(XlaOp operand, const int exponent_bits,
2437 XlaOp ReducePrecision(XlaOp operand, const int exponent_bits,
Dxla_builder.cc3118 XlaOp XlaBuilder::ReducePrecision(XlaOp operand, const int exponent_bits, in ReducePrecision() argument
3124 *operand_shape, exponent_bits, mantissa_bits)); in ReducePrecision()
3125 return ReducePrecisionInternal(shape, operand, exponent_bits, in ReducePrecision()
3132 const int exponent_bits, in ReducePrecisionInternal() argument
3136 instr.set_exponent_bits(exponent_bits); in ReducePrecisionInternal()
4869 XlaOp ReducePrecision(const XlaOp operand, const int exponent_bits, in ReducePrecision() argument
4871 return operand.builder()->ReducePrecision(operand, exponent_bits, in ReducePrecision()

12