Home
last modified time | relevance | path

Searched refs:bit_cast (Results 1 – 25 of 138) sorted by relevance

123456

/external/v8/src/arm64/
Dutils-arm64.cc16 uint32_t bits = bit_cast<uint32_t>(val); in float_sign()
21 uint32_t bits = bit_cast<uint32_t>(val); in float_exp()
26 uint32_t bits = bit_cast<uint32_t>(val); in float_mantissa()
31 uint64_t bits = bit_cast<uint64_t>(val); in double_sign()
36 uint64_t bits = bit_cast<uint64_t>(val); in double_exp()
41 uint64_t bits = bit_cast<uint64_t>(val); in double_mantissa()
47 return bit_cast<float>((bits << kFloatMantissaBits) | mantissa); in float_pack()
52 return bit_cast<double>((bits << kDoubleMantissaBits) | mantissa); in double_pack()
Dutils-arm64.h76 uint64_t raw = bit_cast<uint64_t>(num); in IsSignallingNaN()
85 uint32_t raw = bit_cast<uint32_t>(num); in IsSignallingNaN()
106 return bit_cast<double>(bit_cast<uint64_t>(num) | kDQuietNanMask); in ToQuietNaN()
112 return bit_cast<float>(bit_cast<uint32_t>(num) | in ToQuietNaN()
/external/v8/src/zone/
Dzone-handle-set.h20 : data_(bit_cast<intptr_t>(handle.address()) | kSingletonTag) { in ZoneHandleSet()
21 DCHECK(IsAligned(bit_cast<intptr_t>(handle.address()), kPointerAlignment)); in ZoneHandleSet()
44 T** const value = bit_cast<T**>(handle.address()); in insert()
45 DCHECK(IsAligned(bit_cast<intptr_t>(value), kPointerAlignment)); in insert()
47 data_ = bit_cast<intptr_t>(value) | kSingletonTag; in insert()
58 DCHECK(IsAligned(bit_cast<intptr_t>(list), kPointerAlignment)); in insert()
59 data_ = bit_cast<intptr_t>(list) | kListTag; in insert()
79 DCHECK(IsAligned(bit_cast<intptr_t>(new_list), kPointerAlignment)); in insert()
80 data_ = bit_cast<intptr_t>(new_list) | kListTag; in insert()
109 return singleton() == bit_cast<T**>(other.address()); in contains()
[all …]
/external/v8/src/
Droots-inl.h25 bit_cast<type**>(&heap_->roots_[Heap::k##camel_name##RootIndex])); \
36 bit_cast<String**>(&heap_->roots_[Heap::k##name##RootIndex])); \
47 bit_cast<Symbol**>(&heap_->roots_[Heap::k##name##RootIndex])); \
58 bit_cast<Symbol**>(&heap_->roots_[Heap::k##name##RootIndex])); \
70 bit_cast<Map**>(&heap_->roots_[Heap::k##Name##MapRootIndex])); \
81 bit_cast<Map**>(&heap_->roots_[Heap::k##Name##Size##MapRootIndex])); \
Dboxed-float.h25 explicit Float32(float value) : bit_pattern_(bit_cast<uint32_t>(value)) { in Float32()
33 float get_scalar() const { return bit_cast<float>(bit_pattern_); } in get_scalar()
65 explicit Float64(double value) : bit_pattern_(bit_cast<uint64_t>(value)) { in Float64()
72 double get_scalar() const { return bit_cast<double>(bit_pattern_); } in get_scalar()
/external/protobuf/src/google/protobuf/util/internal/
Dprotostream_objectsource.cc383 ow->RenderDouble(field_name, bit_cast<double>(buffer64)); in RenderDouble()
397 ow->RenderFloat(field_name, bit_cast<float>(buffer32)); in RenderFloat()
411 ow->RenderInt64(field_name, bit_cast<int64>(buffer64)); in RenderInt64()
425 ow->RenderUint64(field_name, bit_cast<uint64>(buffer64)); in RenderUInt64()
439 ow->RenderInt32(field_name, bit_cast<int32>(buffer32)); in RenderInt32()
453 ow->RenderUint32(field_name, bit_cast<uint32>(buffer32)); in RenderUInt32()
782 ow->RenderInt32(field_name, bit_cast<int32>(buffer32)); in RenderNonMessageField()
787 ow->RenderInt64(field_name, bit_cast<int64>(buffer64)); in RenderNonMessageField()
792 ow->RenderUint32(field_name, bit_cast<uint32>(buffer32)); in RenderNonMessageField()
797 ow->RenderUint64(field_name, bit_cast<uint64>(buffer64)); in RenderNonMessageField()
[all …]
Dprotostream_objectsource_test.cc131 ->RenderUint32("", bit_cast<uint32>(3201)) in PrepareExpectingObjectWriterForRepeatedPrimitive()
132 ->RenderUint32("", bit_cast<uint32>(0)) in PrepareExpectingObjectWriterForRepeatedPrimitive()
133 ->RenderUint32("", bit_cast<uint32>(3202)) in PrepareExpectingObjectWriterForRepeatedPrimitive()
136 ->RenderUint32("", bit_cast<uint32>(3203)) in PrepareExpectingObjectWriterForRepeatedPrimitive()
137 ->RenderUint32("", bit_cast<uint32>(0)) in PrepareExpectingObjectWriterForRepeatedPrimitive()
154 ->RenderUint64("", bit_cast<uint64>(6401LL)) in PrepareExpectingObjectWriterForRepeatedPrimitive()
155 ->RenderUint64("", bit_cast<uint64>(0LL)) in PrepareExpectingObjectWriterForRepeatedPrimitive()
158 ->RenderUint64("", bit_cast<uint64>(0LL)) in PrepareExpectingObjectWriterForRepeatedPrimitive()
159 ->RenderUint64("", bit_cast<uint64>(6402LL)) in PrepareExpectingObjectWriterForRepeatedPrimitive()
160 ->RenderUint64("", bit_cast<uint64>(6403LL)) in PrepareExpectingObjectWriterForRepeatedPrimitive()
[all …]
/external/v8/src/base/
Dfunctional.h101 return hash_value(bit_cast<unsigned type>(v)); \
112 return v != 0.0f ? hash_value(bit_cast<uint32_t>(v)) : 0; in V8_BASE_HASH_VALUE_SIGNED()
117 return v != 0.0 ? hash_value(bit_cast<uint64_t>(v)) : 0; in hash_value()
132 return hash_value(bit_cast<uintptr_t>(v)); in hash_value()
210 return bit_cast<btype>(lhs) == bit_cast<btype>(rhs); \
217 return h(bit_cast<btype>(v)); \
Dbits.cc52 return bit_cast<int32_t, uint32_t>(bit_cast<uint64_t>(value) >> 32u); in SignedMulHigh32()
57 return bit_cast<int32_t>(bit_cast<uint32_t>(acc) + in SignedMulHighAndAdd32()
58 bit_cast<uint32_t>(SignedMulHigh32(lhs, rhs))); in SignedMulHighAndAdd32()
/external/v8/src/heap/
Dfactory-inl.h21 return Handle<type>(bit_cast<type**>( \
29 return Handle<Map>(bit_cast<Map**>( \
37 return Handle<Map>(bit_cast<Map**>( \ in STRUCT_LIST()
45 return Handle<Map>(bit_cast<Map**>( \
53 return Handle<String>(bit_cast<String**>( \
61 return Handle<Symbol>(bit_cast<Symbol**>( \
69 return Handle<Symbol>(bit_cast<Symbol**>( \
78 return Handle<AccessorInfo>(bit_cast<AccessorInfo**>( \
/external/tensorflow/tensorflow/core/lib/png/
Dpng_io.cc80 absl::bit_cast<DecodeContext*>(png_get_io_ptr(png_ptr)); in ErrorHandler()
93 absl::bit_cast<DecodeContext*>(png_get_io_ptr(png_ptr)); in StringReader()
109 string* const s = absl::bit_cast<string*>(png_get_io_ptr(png_ptr)); in StringWriter()
110 s->append(absl::bit_cast<const char*>(data), length); in StringWriter()
224 context->data = absl::bit_cast<const uint8*>(png_string.data()); in CommonInitDecode()
337 Convert8to16(absl::bit_cast<uint8*>(data), context->channels, row_bytes, in CommonFinishDecode()
338 context->width, context->height, absl::bit_cast<uint16*>(data), in CommonFinishDecode()
/external/v8/src/compiler/
Dmachine-graph.h32 return Int32Constant(bit_cast<int32_t>(value)); in NON_EXPORTED_BASE()
38 return Int64Constant(bit_cast<int64_t>(value)); in NON_EXPORTED_BASE()
61 return PointerConstant(bit_cast<intptr_t>(value)); in NON_EXPORTED_BASE()
Dcommon-node-cache.h38 return float32_constants_.Find(zone(), bit_cast<int32_t>(value)); in FindFloat32Constant()
43 return float64_constants_.Find(zone(), bit_cast<int64_t>(value)); in FindFloat64Constant()
54 return number_constants_.Find(zone(), bit_cast<int64_t>(value)); in FindNumberConstant()
Dcommon-node-cache.cc15 return external_constants_.Find(zone(), bit_cast<intptr_t>(value.address())); in FindExternalConstant()
20 return heap_constants_.Find(zone(), bit_cast<intptr_t>(value.address())); in FindHeapConstant()
Djs-graph.cc97 if (bit_cast<int64_t>(value) == bit_cast<int64_t>(0.0)) return ZeroConstant(); in Constant()
98 if (bit_cast<int64_t>(value) == bit_cast<int64_t>(1.0)) return OneConstant(); in Constant()
/external/v8/src/runtime/
Druntime-atomics.cc76 bit_cast<vctype>(value)); \
80 bit_cast<vctype>(newval), \
81 bit_cast<vctype>(oldval)); \
85 bit_cast<vctype>(value)); \
89 -bit_cast<vctype>(value)); \
93 bit_cast<vctype>(value)); \
97 bit_cast<vctype>(value)); \
101 bit_cast<vctype>(value)); \
/external/libtextclassifier/lang_id/common/lite_base/
Dfloat16.h51 return (bit_cast<uint32>(f) >> 16) & 0xffff; in Float32To16()
56 return bit_cast<float>(f << 16); in Float16To32()
/external/webrtc/webrtc/modules/audio_processing/transient/
Dfile_utils.cc30 *out = bit_cast<float>(binary_value); in ConvertByteArrayToFloat()
46 *out = bit_cast<double>(binary_value); in ConvertByteArrayToDouble()
56 uint32_t binary_value = bit_cast<uint32_t>(value); in ConvertFloatToByteArray()
70 uint64_t binary_value = bit_cast<uint64_t>(value); in ConvertDoubleToByteArray()
/external/tensorflow/tensorflow/compiler/xla/service/
Dwhile_loop_analysis.cc208 uint64 aa = absl::bit_cast<uint64>(a); in CheckedAdd()
209 uint64 bb = absl::bit_cast<uint64>(b); in CheckedAdd()
210 int64 result = absl::bit_cast<int64>(aa + bb); in CheckedAdd()
219 uint64 aa = absl::bit_cast<uint64>(a); in CheckedSubtract()
220 uint64 bb = absl::bit_cast<uint64>(b); in CheckedSubtract()
221 int64 result = absl::bit_cast<int64>(aa - bb); in CheckedSubtract()
/external/libtextclassifier/utils/math/
Dfastexp.h47 const int32 x = bit_cast<int32>(g); in VeryFastExp2()
50 return bit_cast<float>(ret); in VeryFastExp2()
/external/libtextclassifier/lang_id/common/math/
Dfastexp.h49 const int32 x = bit_cast<int32>(g); in VeryFastExp2()
52 return bit_cast<float>(ret); in VeryFastExp2()
/external/tensorflow/tensorflow/compiler/xla/tests/
Dround_trip_packed_literal_test.cc50 absl::Span<float> floats(absl::bit_cast<float*>(data.data()), 2); in TEST_F()
72 absl::Span<float> floats(absl::bit_cast<float*>(data.data()), 4); in TEST_F()
105 absl::Span<float> floats(absl::bit_cast<float*>(data.data()), 4); in TEST_F()
Dreduce_precision_test.cc218 input_values.push_back(absl::bit_cast<float>(test_value[0])); in XLA_TEST_P()
219 expected_values.push_back(absl::bit_cast<float>(test_value[index])); in XLA_TEST_P()
222 input_values.push_back(absl::bit_cast<float>(test_value[0] ^ sign_bit)); in XLA_TEST_P()
224 absl::bit_cast<float>(test_value[index] ^ sign_bit)); in XLA_TEST_P()
/external/v8/src/mips/
Dsimulator-mips.cc987 *bit_cast<float*>(&FPUregisters_[fpureg * 2]) = value; in set_fpu_register_float()
994 *bit_cast<double*>(&FPUregisters_[fpureg * 2]) = value; in set_fpu_register_double()
997 int64_t i64 = bit_cast<int64_t>(value); in set_fpu_register_double()
1063 return *bit_cast<float*>(const_cast<int64_t*>(&FPUregisters_[fpureg * 2])); in get_fpu_register_float()
1070 return *bit_cast<double*>(&FPUregisters_[fpureg * 2]); in get_fpu_register_double()
1076 return bit_cast<double>(i64); in get_fpu_register_double()
2673 int64_t ft_int = bit_cast<int64_t>(ft); in DecodeTypeRegisterDRsType()
2674 int64_t fd_int = bit_cast<int64_t>(fd); in DecodeTypeRegisterDRsType()
2991 uint64_t classed = bit_cast<uint64_t>(fs); in DecodeTypeRegisterDRsType()
3049 dResult = bit_cast<double>(result); in DecodeTypeRegisterDRsType()
[all …]
/external/clang/test/SemaCXX/
Dwarn-memset-bad-sizeof.cpp20 inline Dest bit_cast(const Source& source) { in bit_cast() function
91 bit_cast<char*>(puc); in f()
94 bit_cast<int*>(pf); in f()

123456