Searched refs:bit_cast (Results 1 - 25 of 127) sorted by relevance

123456

/external/libtextclassifier/util/base/
H A Dcasts.h24 // bit_cast<Dest, Source> is a template function that implements the equivalent
29 // int i = bit_cast<int32>(f);
62 // bit_cast<> calls memcpy() which is blessed by the standard, especially by the
63 // example in section 3.9 . Also, of course, bit_cast<> wraps up the nasty
82 inline Dest bit_cast(const Source &source) { function in namespace:libtextclassifier2
/external/tensorflow/tensorflow/core/lib/core/
H A Dcasts.h30 // bit_cast<Dest,Source> is a template function that implements the
36 // int i = bit_cast<int32>(f);
69 // bit_cast<> calls memcpy() which is blessed by the standard,
71 // bit_cast<> wraps up the nasty logic in one place.
90 inline Dest bit_cast(const Source& source) { function in namespace:tensorflow
H A Dbit_cast_test.cc16 // Unit test for bit_cast template.
37 marshall<sizeof(T)> m0 = bit_cast<marshall<sizeof(T)> >(t0);
38 T t1 = bit_cast<T>(m0);
39 marshall<sizeof(T)> m1 = bit_cast<marshall<sizeof(T)> >(t1);
55 I i0 = bit_cast<I>(t0);
56 T t1 = bit_cast<T>(i0);
57 I i1 = bit_cast<I>(t1);
/external/tensorflow/tensorflow/stream_executor/lib/
H A Dcasts.h27 // port::bit_cast<Dest,Source> is a template function that implements the
33 // int i = port::bit_cast<int32>(f);
66 // port::bit_cast<> calls memcpy() which is blessed by the standard,
68 // port::bit_cast<> wraps up the nasty logic in one place.
87 inline Dest bit_cast(const Source& source) { function in namespace:perftools::gputools::port
/external/libtextclassifier/util/math/
H A Dfastexp.h47 const int32 x = bit_cast<int32>(g);
50 return bit_cast<float>(ret);
/external/v8/src/compiler/
H A Dcommon-node-cache.cc15 return external_constants_.Find(zone(), bit_cast<intptr_t>(value.address()));
20 return heap_constants_.Find(zone(), bit_cast<intptr_t>(value.address()));
H A Dcommon-node-cache.h38 return float32_constants_.Find(zone(), bit_cast<int32_t>(value));
43 return float64_constants_.Find(zone(), bit_cast<int64_t>(value));
54 return number_constants_.Find(zone(), bit_cast<int64_t>(value));
H A Djs-graph.h88 return Int32Constant(bit_cast<int32_t>(value));
99 return Int64Constant(bit_cast<int64_t>(value));
125 return PointerConstant(bit_cast<intptr_t>(value));
/external/libchrome/base/
H A Dbit_cast.h15 // bit_cast<Dest,Source> is a template function that implements the equivalent
20 // int i = bit_cast<int32_t>(f);
54 // bit_cast<> calls memcpy() which is blessed by the standard, especially by the
55 // example in section 3.9 . Also, of course, bit_cast<> wraps up the nasty
64 inline Dest bit_cast(const Source& source) { function
66 "bit_cast requires source and destination to be the same size");
68 "bit_cast requires the destination type to be copyable");
70 "bit_cast requires the source type to be copyable");
/external/v8/src/base/
H A Dbits.cc30 return bit_cast<int32_t, uint32_t>(bit_cast<uint64_t>(value) >> 32u);
35 return bit_cast<int32_t>(bit_cast<uint32_t>(acc) +
36 bit_cast<uint32_t>(SignedMulHigh32(lhs, rhs)));
H A Dfunctional.h101 return hash_value(bit_cast<unsigned type>(v)); \
112 return v != 0.0f ? hash_value(bit_cast<uint32_t>(v)) : 0;
117 return v != 0.0 ? hash_value(bit_cast<uint64_t>(v)) : 0;
132 return hash_value(bit_cast<uintptr_t>(v));
211 return bit_cast<btype>(lhs) == bit_cast<btype>(rhs); \
218 return h(bit_cast<btype>(v)); \
H A Dbits.h223 *val = bit_cast<int32_t>(res);
237 *val = bit_cast<int32_t>(res);
252 *val = bit_cast<int64_t>(res);
262 *val = bit_cast<int64_t>(res);
/external/v8/src/zone/
H A Dzone-handle-set.h19 : data_(bit_cast<intptr_t>(handle.address()) | kSingletonTag) {
20 DCHECK(IsAligned(bit_cast<intptr_t>(handle.address()), kPointerAlignment));
43 T** const value = bit_cast<T**>(handle.address());
44 DCHECK(IsAligned(bit_cast<intptr_t>(value), kPointerAlignment));
46 data_ = bit_cast<intptr_t>(value) | kSingletonTag;
57 DCHECK(IsAligned(bit_cast<intptr_t>(list), kPointerAlignment));
58 data_ = bit_cast<intptr_t>(list) | kListTag;
77 DCHECK(IsAligned(bit_cast<intptr_t>(new_list), kPointerAlignment));
78 data_ = bit_cast<intptr_t>(new_list) | kListTag;
142 return bit_cast<Lis
[all...]
/external/protobuf/src/google/protobuf/stubs/
H A Dcasts.h115 inline To bit_cast(const From& from) { function in namespace:google::protobuf::internal
129 using internal::bit_cast;
/external/compiler-rt/lib/scudo/
H A Dscudo_utils.h24 inline Dest bit_cast(const Source& source) { function in namespace:__scudo
/external/protobuf/src/google/protobuf/util/internal/
H A Dprotostream_objectsource.cc383 ow->RenderDouble(field_name, bit_cast<double>(buffer64));
397 ow->RenderFloat(field_name, bit_cast<float>(buffer32));
411 ow->RenderInt64(field_name, bit_cast<int64>(buffer64));
425 ow->RenderUint64(field_name, bit_cast<uint64>(buffer64));
439 ow->RenderInt32(field_name, bit_cast<int32>(buffer32));
453 ow->RenderUint32(field_name, bit_cast<uint32>(buffer32));
782 ow->RenderInt32(field_name, bit_cast<int32>(buffer32));
787 ow->RenderInt64(field_name, bit_cast<int64>(buffer64));
792 ow->RenderUint32(field_name, bit_cast<uint32>(buffer32));
797 ow->RenderUint64(field_name, bit_cast<uint6
[all...]
/external/clang/test/SemaCXX/
H A Dwarn-memset-bad-sizeof.cpp20 inline Dest bit_cast(const Source& source) { function
91 bit_cast<char*>(puc);
94 bit_cast<int*>(pf);
/external/tensorflow/tensorflow/compiler/xla/tests/
H A Dround_trip_packed_literal_test.cc51 tensorflow::bit_cast<float*>(data.data()), 2);
74 tensorflow::bit_cast<float*>(data.data()), 4);
109 tensorflow::bit_cast<float*>(data.data()), 4);
H A Dreduce_precision_test.cc218 input_values.push_back(tensorflow::bit_cast<float>(test_value[0]));
219 expected_values.push_back(tensorflow::bit_cast<float>(test_value[index]));
223 tensorflow::bit_cast<float>(test_value[0] ^ sign_bit));
225 tensorflow::bit_cast<float>(test_value[index] ^ sign_bit));
/external/v8/src/base/utils/
H A Drandom-number-generator.cc107 return bit_cast<int64_t>(state0_ + state1_);
128 state0_ = MurmurHash3(bit_cast<uint64_t>(seed));
H A Drandom-number-generator.h99 return bit_cast<double>(random) - 1;
/external/v8/src/
H A Dconversions.h152 return bit_cast<int64_t>(value) == bit_cast<int64_t>(-0.0);
/external/skia/src/jumper/
H A DSkJumper_misc.h36 SI Dst bit_cast(const Src& src) { function
/external/skqp/src/jumper/
H A DSkJumper_misc.h36 SI Dst bit_cast(const Src& src) { function
/external/tensorflow/tensorflow/compiler/xla/tools/
H A Dhex_floats_to_packed_literal.cc71 tensorflow::bit_cast<const char*>(floats.data()),

Completed in 1092 milliseconds

123456