Home
last modified time | relevance | path

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

1234

/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()
211 return bit_cast<btype>(lhs) == bit_cast<btype>(rhs); \
218 return h(bit_cast<btype>(v)); \
Dbits.cc30 return bit_cast<int32_t, uint32_t>(bit_cast<uint64_t>(value) >> 32u); in SignedMulHigh32()
35 return bit_cast<int32_t>(bit_cast<uint32_t>(acc) + in SignedMulHighAndAdd32()
36 bit_cast<uint32_t>(SignedMulHigh32(lhs, rhs))); in SignedMulHighAndAdd32()
Dbits.h223 *val = bit_cast<int32_t>(res); in SignedAddOverflow32()
237 *val = bit_cast<int32_t>(res); in SignedSubOverflow32()
252 *val = bit_cast<int64_t>(res); in SignedAddOverflow64()
262 *val = bit_cast<int64_t>(res); in SignedSubOverflow64()
/external/v8/src/compiler/
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.h89 return Int32Constant(bit_cast<int32_t>(value)); in NON_EXPORTED_BASE()
100 return Int64Constant(bit_cast<int64_t>(value)); in NON_EXPORTED_BASE()
126 return PointerConstant(bit_cast<intptr_t>(value)); in NON_EXPORTED_BASE()
Djs-graph.cc159 if (bit_cast<int64_t>(value) == bit_cast<int64_t>(0.0)) return ZeroConstant(); in Constant()
160 if (bit_cast<int64_t>(value) == bit_cast<int64_t>(1.0)) return OneConstant(); in Constant()
Dmachine-operator-reducer.h38 return Int32Constant(bit_cast<int32_t>(value)); in NON_EXPORTED_BASE()
41 return Int64Constant(bit_cast<int64_t>(value)); in NON_EXPORTED_BASE()
/external/libtextclassifier/common/
Dfloat16.h53 return (bit_cast<uint32>(f) >> 16) & 0xffff; in Float32To16()
58 return bit_cast<float>(f << 16); in Float16To32()
Dfastexp.h48 const int32 x = bit_cast<int32>(g); in VeryFastExp2()
51 return bit_cast<float>(ret); in VeryFastExp2()
/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/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()
/external/protobuf/src/google/protobuf/stubs/
Dcasts.h115 inline To bit_cast(const From& from) { in bit_cast() function
129 using internal::bit_cast;
/external/v8/src/runtime/
Druntime-atomics.cc80 bit_cast<vctype>(value)); \
84 -bit_cast<vctype>(value)); \
88 bit_cast<vctype>(value)); \
92 bit_cast<vctype>(value)); \
96 bit_cast<vctype>(value)); \
100 bit_cast<vctype>(value)); \
105 bit_cast<vctype>(newval), \
106 bit_cast<vctype>(oldval)); \
/external/v8/src/wasm/
Dwasm-interpreter.cc298 uint32_t q = bit_cast<uint32_t>(std::numeric_limits<float>::quiet_NaN()); in quiet()
301 return bit_cast<float>(bit_cast<uint32_t>(a) | kSignalingBit); in quiet()
304 return bit_cast<float>(bit_cast<uint32_t>(a) & ~kSignalingBit); in quiet()
310 uint64_t q = bit_cast<uint64_t>(std::numeric_limits<double>::quiet_NaN()); in quiet()
313 return bit_cast<double>(bit_cast<uint64_t>(a) | kSignalingBit); in quiet()
316 return bit_cast<double>(bit_cast<uint64_t>(a) & ~kSignalingBit); in quiet()
443 return bit_cast<float>(bit_cast<uint32_t>(a) & 0x7fffffff); in ExecuteF32Abs()
447 return bit_cast<float>(bit_cast<uint32_t>(a) ^ 0x80000000); in ExecuteF32Neg()
472 return bit_cast<double>(bit_cast<uint64_t>(a) & 0x7fffffffffffffff); in ExecuteF64Abs()
476 return bit_cast<double>(bit_cast<uint64_t>(a) ^ 0x8000000000000000); in ExecuteF64Neg()
[all …]
Dwasm-macro-gen.h371 static_cast<byte>(bit_cast<int32_t>(static_cast<float>(val))), \
372 static_cast<byte>(bit_cast<uint32_t>(static_cast<float>(val)) >> 8), \
373 static_cast<byte>(bit_cast<uint32_t>(static_cast<float>(val)) >> 16), \
374 static_cast<byte>(bit_cast<uint32_t>(static_cast<float>(val)) >> 24)
376 kExprF64Const, static_cast<byte>(bit_cast<uint64_t>(val)), \
377 static_cast<byte>(bit_cast<uint64_t>(val) >> 8), \
378 static_cast<byte>(bit_cast<uint64_t>(val) >> 16), \
379 static_cast<byte>(bit_cast<uint64_t>(val) >> 24), \
380 static_cast<byte>(bit_cast<uint64_t>(val) >> 32), \
381 static_cast<byte>(bit_cast<uint64_t>(val) >> 40), \
[all …]
Ddecoder.h90 if (*length == 5) return bit_cast<int32_t>(result);
94 return bit_cast<int32_t>(result << shift) >> shift;
111 if (*length == 10) return bit_cast<int64_t>(result);
115 return bit_cast<int64_t>(result << shift) >> shift;
/external/v8/src/
Dconversions.h151 return bit_cast<int64_t>(value) == bit_cast<int64_t>(-0.0); in IsMinusZero()
Dexecution.h194 return bit_cast<uintptr_t>(base::NoBarrier_Load(&jslimit_)); in jslimit()
201 return bit_cast<uintptr_t>(base::NoBarrier_Load(&climit_)); in climit()
Ddouble.h14 inline uint64_t double_to_uint64(double d) { return bit_cast<uint64_t>(d); } in double_to_uint64()
15 inline double uint64_to_double(uint64_t d64) { return bit_cast<double>(d64); } in uint64_to_double()
/external/v8/src/base/utils/
Drandom-number-generator.cc107 return bit_cast<int64_t>(state0_ + state1_); in NextInt64()
128 state0_ = MurmurHash3(bit_cast<uint64_t>(seed)); in SetSeed()
/external/skia/src/jumper/
DSkJumper_stages.cpp21 SI Dst bit_cast(const Src& src) { in bit_cast() function
761 return bit_cast<F>(h << 13) // Line up the mantissa, in STAGE()
762 * bit_cast<F>(U32(0x77800000)); // then fix up the exponent. in STAGE()
865 return bit_cast<F>(h << 13) // Line up the mantissa, in STAGE()
866 * bit_cast<F>(U32(0x77800000_i)); // then fix up the exponent. in STAGE()
892 return bit_cast<F>(h << 13) // Line up the mantissa, in STAGE()
893 * bit_cast<F>(U32(0x77800000_i)); // then fix up the exponent. in STAGE()
908 return bit_cast<U32>(f * bit_cast<F>(U32(0x07800000_i))) // Fix up the exponent, in STAGE()
963 return bit_cast<U32>(f * bit_cast<F>(U32(0x07800000_i))) // Fix up the exponent, in STAGE()
1005 return bit_cast<U32>(f * bit_cast<F>(U32(0x07800000_i))) // Fix up the exponent, in STAGE()
[all …]
/external/libtextclassifier/util/base/
Dcasts.h84 inline Dest bit_cast(const Source &source) { in bit_cast() function

1234