/external/libtextclassifier/util/base/ |
H A D | casts.h | 24 // 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 D | casts.h | 30 // 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 D | bit_cast_test.cc | 16 // 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 D | casts.h | 27 // 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 D | fastexp.h | 47 const int32 x = bit_cast<int32>(g); 50 return bit_cast<float>(ret);
|
/external/v8/src/compiler/ |
H A D | common-node-cache.cc | 15 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 D | common-node-cache.h | 38 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 D | js-graph.h | 88 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 D | bit_cast.h | 15 // 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 D | bits.cc | 30 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 D | functional.h | 101 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 D | bits.h | 223 *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 D | zone-handle-set.h | 19 : 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 D | casts.h | 115 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 D | scudo_utils.h | 24 inline Dest bit_cast(const Source& source) { function in namespace:__scudo
|
/external/protobuf/src/google/protobuf/util/internal/ |
H A D | protostream_objectsource.cc | 383 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 D | warn-memset-bad-sizeof.cpp | 20 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 D | round_trip_packed_literal_test.cc | 51 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 D | reduce_precision_test.cc | 218 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 D | random-number-generator.cc | 107 return bit_cast<int64_t>(state0_ + state1_); 128 state0_ = MurmurHash3(bit_cast<uint64_t>(seed));
|
H A D | random-number-generator.h | 99 return bit_cast<double>(random) - 1;
|
/external/v8/src/ |
H A D | conversions.h | 152 return bit_cast<int64_t>(value) == bit_cast<int64_t>(-0.0);
|
/external/skia/src/jumper/ |
H A D | SkJumper_misc.h | 36 SI Dst bit_cast(const Src& src) { function
|
/external/skqp/src/jumper/ |
H A D | SkJumper_misc.h | 36 SI Dst bit_cast(const Src& src) { function
|
/external/tensorflow/tensorflow/compiler/xla/tools/ |
H A D | hex_floats_to_packed_literal.cc | 71 tensorflow::bit_cast<const char*>(floats.data()),
|