/external/angle/third_party/abseil-cpp/absl/base/internal/ |
D | endian.h | 188 return bit_cast<int16_t>(FromHost16(bit_cast<uint16_t>(x))); in FromHost() 191 return bit_cast<int32_t>(FromHost32(bit_cast<uint32_t>(x))); in FromHost() 194 return bit_cast<int64_t>(FromHost64(bit_cast<uint64_t>(x))); in FromHost() 198 return bit_cast<int16_t>(ToHost16(bit_cast<uint16_t>(x))); in ToHost() 201 return bit_cast<int32_t>(ToHost32(bit_cast<uint32_t>(x))); in ToHost() 204 return bit_cast<int64_t>(ToHost64(bit_cast<uint64_t>(x))); in ToHost() 278 return bit_cast<int16_t>(FromHost16(bit_cast<uint16_t>(x))); in FromHost() 281 return bit_cast<int32_t>(FromHost32(bit_cast<uint32_t>(x))); in FromHost() 284 return bit_cast<int64_t>(FromHost64(bit_cast<uint64_t>(x))); in FromHost() 288 return bit_cast<int16_t>(ToHost16(bit_cast<uint16_t>(x))); in ToHost() [all …]
|
/external/llvm-project/clang/test/SemaCXX/ |
D | constexpr-builtin-bit-cast.cpp | 24 constexpr To bit_cast(const From &from) { in bit_cast() function 40 return bit_cast<Init>(bit_cast<Intermediate>(init)) == init; in round_trip() 53 static_assert(bit_cast<unsigned>(input) == expected); in test_array() 68 static_assert(bit_cast<unsigned long long>(splice) == (LITTLE_END in test_record() 72 static_assert(bit_cast<int_splicer>(0xCAFEBABE0C05FEFE).x == (LITTLE_END in test_record() 99 constexpr tuple4 t4 = bit_cast<tuple4>(b); in test_record() 121 constexpr int piw = bit_cast<no_pad>(pir).x; in test_partially_initialized() 125 constexpr no_pad bad = bit_cast<no_pad>(pir); in test_partially_initialized() 127 constexpr pad fine = bit_cast<pad>(no_pad{1, 2, 3, 4, 5}); in test_partially_initialized() 165 constexpr G g = bit_cast<G>(s); in array_members() [all …]
|
/external/swiftshader/tests/MathUnitTests/ |
D | unittests.cpp | 29 EXPECT_EQ(R11G11B10F::float32ToFloat11(bit_cast<float>(0x3500007F)), 0x0000); in TEST() 30 EXPECT_EQ(R11G11B10F::float32ToFloat11(bit_cast<float>(0x35000080)), 0x0001); in TEST() 32 EXPECT_EQ(R11G11B10F::float32ToFloat10(bit_cast<float>(0x3580003F)), 0x0000); in TEST() 33 EXPECT_EQ(R11G11B10F::float32ToFloat10(bit_cast<float>(0x35800040)), 0x0001); in TEST() 88 float f = bit_cast<float>(i); in TEST() 107 float r = bit_cast<float>(x); in TEST() 108 float g = bit_cast<float>(y); in TEST() 109 float b = bit_cast<float>(z); in TEST() 126 float f = bit_cast<float>(i); in TEST()
|
/external/zlib/google/ |
D | compression_utils.cc | 27 bit_cast<Bytef*>(output_buffer), &compressed_size_long, in GzipCompress() 28 bit_cast<const Bytef*>(input.data()), in GzipCompress() 57 bit_cast<const Bytef*>(input.data()), in GzipCompress() 84 bit_cast<Bytef*>(uncompressed_output.data()), &uncompressed_size, in GzipUncompress() 85 bit_cast<const Bytef*>(input.data()), in GzipUncompress() 104 bit_cast<Bytef*>(output.data()), &uncompressed_size, in GzipUncompress() 105 bit_cast<const Bytef*>(input.data()), in GzipUncompress() 119 bit_cast<Bytef*>(output->data()), &uncompressed_size, in GzipUncompress() 120 bit_cast<const Bytef*>(input.data()), in GzipUncompress() 130 bit_cast<Bytef*>(compressed_data.data()), compressed_data.size()); in GetUncompressedSize()
|
/external/angle/third_party/zlib/google/ |
D | compression_utils.cc | 27 bit_cast<Bytef*>(output_buffer), &compressed_size_long, in GzipCompress() 28 bit_cast<const Bytef*>(input.data()), in GzipCompress() 57 bit_cast<const Bytef*>(input.data()), in GzipCompress() 84 bit_cast<Bytef*>(uncompressed_output.data()), &uncompressed_size, in GzipUncompress() 85 bit_cast<const Bytef*>(input.data()), in GzipUncompress() 104 bit_cast<Bytef*>(output.data()), &uncompressed_size, in GzipUncompress() 105 bit_cast<const Bytef*>(input.data()), in GzipUncompress() 119 bit_cast<Bytef*>(output->data()), &uncompressed_size, in GzipUncompress() 120 bit_cast<const Bytef*>(input.data()), in GzipUncompress() 130 bit_cast<Bytef*>(compressed_data.data()), compressed_data.size()); in GetUncompressedSize()
|
/external/swiftshader/src/System/ |
D | Half.hpp | 93 const float red_r = bit_cast<float>(bit_cast<int>(red_c) + half); in RGB9E5() 94 const float green_r = bit_cast<float>(bit_cast<int>(green_c) + half); in RGB9E5() 95 const float blue_r = bit_cast<float>(bit_cast<int>(blue_c) + half); in RGB9E5() 105 …float scale = bit_cast<float>((bit_cast<int>(max_s) & 0x7F800000) ^ 0x7F800000) * (1 << (g_sharede… in RGB9E5() 110 E = (bit_cast<unsigned int>(max_s) >> 23) - 127 + 15 + 1; in RGB9E5()
|
/external/abseil-cpp/absl/base/ |
D | bit_cast_test.cc | 35 marshall<sizeof(T)> m0 = absl::bit_cast<marshall<sizeof(T)> >(t0); in TestMarshall() 36 T t1 = absl::bit_cast<T>(m0); in TestMarshall() 37 marshall<sizeof(T)> m1 = absl::bit_cast<marshall<sizeof(T)> >(t1); in TestMarshall() 55 I i0 = absl::bit_cast<I>(t0); in TestIntegral() 56 T t1 = absl::bit_cast<T>(i0); in TestIntegral() 57 I i1 = absl::bit_cast<I>(t1); in TestIntegral()
|
/external/webrtc/third_party/abseil-cpp/absl/base/ |
D | bit_cast_test.cc | 35 marshall<sizeof(T)> m0 = absl::bit_cast<marshall<sizeof(T)> >(t0); in TestMarshall() 36 T t1 = absl::bit_cast<T>(m0); in TestMarshall() 37 marshall<sizeof(T)> m1 = absl::bit_cast<marshall<sizeof(T)> >(t1); in TestMarshall() 55 I i0 = absl::bit_cast<I>(t0); in TestIntegral() 56 T t1 = absl::bit_cast<T>(i0); in TestIntegral() 57 I i1 = absl::bit_cast<I>(t1); in TestIntegral()
|
/external/libtextclassifier/abseil-cpp/absl/base/ |
D | bit_cast_test.cc | 35 marshall<sizeof(T)> m0 = absl::bit_cast<marshall<sizeof(T)> >(t0); in TestMarshall() 36 T t1 = absl::bit_cast<T>(m0); in TestMarshall() 37 marshall<sizeof(T)> m1 = absl::bit_cast<marshall<sizeof(T)> >(t1); in TestMarshall() 55 I i0 = absl::bit_cast<I>(t0); in TestIntegral() 56 T t1 = absl::bit_cast<T>(i0); in TestIntegral() 57 I i1 = absl::bit_cast<I>(t1); in TestIntegral()
|
/external/angle/third_party/abseil-cpp/absl/base/ |
D | bit_cast_test.cc | 35 marshall<sizeof(T)> m0 = absl::bit_cast<marshall<sizeof(T)> >(t0); in TestMarshall() 36 T t1 = absl::bit_cast<T>(m0); in TestMarshall() 37 marshall<sizeof(T)> m1 = absl::bit_cast<marshall<sizeof(T)> >(t1); in TestMarshall() 55 I i0 = absl::bit_cast<I>(t0); in TestIntegral() 56 T t1 = absl::bit_cast<T>(i0); in TestIntegral() 57 I i1 = absl::bit_cast<I>(t1); in TestIntegral()
|
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/base/ |
D | bit_cast_test.cc | 35 marshall<sizeof(T)> m0 = absl::bit_cast<marshall<sizeof(T)> >(t0); in TestMarshall() 36 T t1 = absl::bit_cast<T>(m0); in TestMarshall() 37 marshall<sizeof(T)> m1 = absl::bit_cast<marshall<sizeof(T)> >(t1); in TestMarshall() 55 I i0 = absl::bit_cast<I>(t0); in TestIntegral() 56 T t1 = absl::bit_cast<T>(i0); in TestIntegral() 57 I i1 = absl::bit_cast<I>(t1); in TestIntegral()
|
/external/openscreen/third_party/abseil/src/absl/base/ |
D | bit_cast_test.cc | 35 marshall<sizeof(T)> m0 = absl::bit_cast<marshall<sizeof(T)> >(t0); in TestMarshall() 36 T t1 = absl::bit_cast<T>(m0); in TestMarshall() 37 marshall<sizeof(T)> m1 = absl::bit_cast<marshall<sizeof(T)> >(t1); in TestMarshall() 55 I i0 = absl::bit_cast<I>(t0); in TestIntegral() 56 T t1 = absl::bit_cast<T>(i0); in TestIntegral() 57 I i1 = absl::bit_cast<I>(t1); in TestIntegral()
|
/external/protobuf/src/google/protobuf/util/internal/ |
D | protostream_objectsource.cc | 412 ow->RenderDouble(field_name, bit_cast<double>(buffer64)); in RenderDouble() 426 ow->RenderFloat(field_name, bit_cast<float>(buffer32)); in RenderFloat() 440 ow->RenderInt64(field_name, bit_cast<int64>(buffer64)); in RenderInt64() 454 ow->RenderUint64(field_name, bit_cast<uint64>(buffer64)); in RenderUInt64() 468 ow->RenderInt32(field_name, bit_cast<int32>(buffer32)); in RenderInt32() 482 ow->RenderUint32(field_name, bit_cast<uint32>(buffer32)); in RenderUInt32() 828 ow->RenderInt32(field_name, bit_cast<int32>(buffer32)); in RenderNonMessageField() 833 ow->RenderInt64(field_name, bit_cast<int64>(buffer64)); in RenderNonMessageField() 838 ow->RenderUint32(field_name, bit_cast<uint32>(buffer32)); in RenderNonMessageField() 843 ow->RenderUint64(field_name, bit_cast<uint64>(buffer64)); in RenderNonMessageField() [all …]
|
D | protostream_objectsource_test.cc | 132 ->RenderUint32("", bit_cast<uint32>(3201)) in PrepareExpectingObjectWriterForRepeatedPrimitive() 133 ->RenderUint32("", bit_cast<uint32>(0)) in PrepareExpectingObjectWriterForRepeatedPrimitive() 134 ->RenderUint32("", bit_cast<uint32>(3202)) in PrepareExpectingObjectWriterForRepeatedPrimitive() 137 ->RenderUint32("", bit_cast<uint32>(3203)) in PrepareExpectingObjectWriterForRepeatedPrimitive() 138 ->RenderUint32("", bit_cast<uint32>(0)) in PrepareExpectingObjectWriterForRepeatedPrimitive() 155 ->RenderUint64("", bit_cast<uint64>(6401LL)) in PrepareExpectingObjectWriterForRepeatedPrimitive() 156 ->RenderUint64("", bit_cast<uint64>(0LL)) in PrepareExpectingObjectWriterForRepeatedPrimitive() 159 ->RenderUint64("", bit_cast<uint64>(0LL)) in PrepareExpectingObjectWriterForRepeatedPrimitive() 160 ->RenderUint64("", bit_cast<uint64>(6402LL)) in PrepareExpectingObjectWriterForRepeatedPrimitive() 161 ->RenderUint64("", bit_cast<uint64>(6403LL)) in PrepareExpectingObjectWriterForRepeatedPrimitive() [all …]
|
/external/libchrome/base/ |
D | bit_cast_unittest.cc | 15 int i = bit_cast<int32_t>(f); in TEST() 16 float f2 = bit_cast<float>(i); in TEST() 26 int b = bit_cast<int>(a); in TEST()
|
/external/llvm-project/compiler-rt/lib/scudo/standalone/ |
D | chunk.h | 117 PackedHeader NewPackedHeader = bit_cast<PackedHeader>(*NewUnpackedHeader); in storeHeader() 124 *NewUnpackedHeader = bit_cast<UnpackedHeader>(NewPackedHeader); in loadHeader() 135 PackedHeader NewPackedHeader = bit_cast<PackedHeader>(*NewUnpackedHeader); in compareExchangeHeader() 136 PackedHeader OldPackedHeader = bit_cast<PackedHeader>(*OldUnpackedHeader); in compareExchangeHeader() 146 *NewUnpackedHeader = bit_cast<UnpackedHeader>(NewPackedHeader); in isValid()
|
/external/scudo/standalone/ |
D | chunk.h | 117 PackedHeader NewPackedHeader = bit_cast<PackedHeader>(*NewUnpackedHeader); in storeHeader() 124 *NewUnpackedHeader = bit_cast<UnpackedHeader>(NewPackedHeader); in loadHeader() 135 PackedHeader NewPackedHeader = bit_cast<PackedHeader>(*NewUnpackedHeader); in compareExchangeHeader() 136 PackedHeader OldPackedHeader = bit_cast<PackedHeader>(*OldUnpackedHeader); in compareExchangeHeader() 146 *NewUnpackedHeader = bit_cast<UnpackedHeader>(NewPackedHeader); in isValid()
|
/external/libtextclassifier/native/lang_id/common/lite_base/ |
D | float16.h | 51 return (bit_cast<uint32>(f) >> 16) & 0xffff; in Float32To16() 56 return bit_cast<float>(f << 16); in Float16To32()
|
/external/tensorflow/tensorflow/core/lib/png/ |
D | png_io.cc | 80 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() 110 T* const s = absl::bit_cast<T*>(png_get_io_ptr(png_ptr)); in StringWriter() 111 s->append(absl::bit_cast<const char*>(data), length); in StringWriter() 225 context->data = absl::bit_cast<const uint8*>(png_string.data()); in CommonInitDecode() 338 Convert8to16(absl::bit_cast<uint8*>(data), context->channels, row_bytes, in CommonFinishDecode() 339 context->width, context->height, absl::bit_cast<uint16*>(data), in CommonFinishDecode()
|
/external/webrtc/modules/audio_processing/transient/ |
D | file_utils.cc | 30 *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/libtextclassifier/native/utils/math/ |
D | fastexp.h | 47 const int32 x = bit_cast<int32>(g); in VeryFastExp2() 50 return bit_cast<float>(ret); in VeryFastExp2()
|
/external/libtextclassifier/native/lang_id/common/math/ |
D | fastexp.h | 49 const int32 x = bit_cast<int32>(g); in VeryFastExp2() 52 return bit_cast<float>(ret); in VeryFastExp2()
|
/external/tensorflow/tensorflow/compiler/xla/tests/ |
D | reduce_precision_test.cc | 507 input_values.push_back(absl::bit_cast<Fp>(test_value[0])); in DoIt() 508 expected_values.push_back(absl::bit_cast<Fp>(test_value[operation_index])); in DoIt() 511 input_values.push_back(absl::bit_cast<Fp, Uint>(test_value[0] ^ sign_bit)); in DoIt() 513 absl::bit_cast<Fp, Uint>(test_value[operation_index] ^ sign_bit)); in DoIt()
|
D | round_trip_packed_literal_test.cc | 50 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()
|
/external/clang/test/SemaCXX/ |
D | warn-memset-bad-sizeof.cpp | 20 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()
|