/third_party/skia/third_party/externals/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 …]
|
/third_party/node/deps/zlib/google/ |
D | compression_utils.cc | 28 bit_cast<Bytef*>(output_buffer), &compressed_size_long, in GzipCompress() 29 bit_cast<const Bytef*>(input.data()), in GzipCompress() 54 bit_cast<const Bytef*>(input.data()), in GzipCompress() 81 bit_cast<Bytef*>(uncompressed_output.data()), &uncompressed_size, in GzipUncompress() 82 bit_cast<const Bytef*>(input.data()), in GzipUncompress() 95 bit_cast<Bytef*>(output.data()), &uncompressed_size, in GzipUncompress() 96 bit_cast<const Bytef*>(input.data()), in GzipUncompress() 106 bit_cast<Bytef*>(output->data()), &uncompressed_size, in GzipUncompress() 107 bit_cast<const Bytef*>(input.data()), in GzipUncompress() 113 bit_cast<Bytef*>(compressed_data.data()), compressed_data.length()); in GetUncompressedSize()
|
/third_party/skia/third_party/externals/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()
|
/third_party/skia/third_party/externals/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()
|
/third_party/skia/third_party/externals/swiftshader/src/System/ |
D | Half.hpp | 92 const float red_r = bit_cast<float>(bit_cast<int>(red_c) + half); in RGB9E5() 93 const float green_r = bit_cast<float>(bit_cast<int>(green_c) + half); in RGB9E5() 94 const float blue_r = bit_cast<float>(bit_cast<int>(blue_c) + half); in RGB9E5() 104 …float scale = bit_cast<float>((bit_cast<int>(max_s) & 0x7F800000) ^ 0x7F800000) * (1 << (g_sharede… in RGB9E5() 109 E = (bit_cast<unsigned int>(max_s) >> 23) - 127 + 15 + 1; in RGB9E5()
|
D | Math.hpp | 70 destType bit_cast(const sourceType &source) in bit_cast() function 173 int32_t i = bit_cast<int32_t>(f); in float_as_twos_complement()
|
/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()
|
D | casts.h | 155 inline Dest bit_cast(const Source& source) { in bit_cast() function 175 inline Dest bit_cast(const Source& source) { in bit_cast() function
|
/third_party/skia/third_party/externals/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()
|
D | casts.h | 155 inline Dest bit_cast(const Source& source) { in bit_cast() function 175 inline Dest bit_cast(const Source& source) { in bit_cast() function
|
/third_party/flutter/skia/third_party/externals/zlib/google/ |
D | compression_utils.cc | 46 stream.next_in = bit_cast<Bytef*>(source); in GzipCompressHelper() 92 stream.next_in = bit_cast<Bytef*>(source); in GzipUncompressHelper() 141 bit_cast<const Bytef*>(input.data()), in GzipCompress() 164 if (GzipUncompressHelper(bit_cast<Bytef*>(uncompressed_output.data()), in GzipUncompress() 166 bit_cast<const Bytef*>(input.data()), in GzipUncompress() 178 return GzipUncompressHelper(bit_cast<Bytef*>(output.data()), in GzipUncompress() 180 bit_cast<const Bytef*>(input.data()), in GzipUncompress()
|
/third_party/protobuf/src/google/protobuf/util/internal/ |
D | protostream_objectsource.cc | 410 ow->RenderDouble(field_name, bit_cast<double>(buffer64)); in RenderDouble() 424 ow->RenderFloat(field_name, bit_cast<float>(buffer32)); in RenderFloat() 438 ow->RenderInt64(field_name, bit_cast<int64>(buffer64)); in RenderInt64() 452 ow->RenderUint64(field_name, bit_cast<uint64>(buffer64)); in RenderUInt64() 466 ow->RenderInt32(field_name, bit_cast<int32>(buffer32)); in RenderInt32() 480 ow->RenderUint32(field_name, bit_cast<uint32>(buffer32)); in RenderUInt32() 824 ow->RenderInt32(field_name, bit_cast<int32>(buffer32)); in RenderNonMessageField() 829 ow->RenderInt64(field_name, bit_cast<int64>(buffer64)); in RenderNonMessageField() 834 ow->RenderUint32(field_name, bit_cast<uint32>(buffer32)); in RenderNonMessageField() 839 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>(int64{6401})) in PrepareExpectingObjectWriterForRepeatedPrimitive() 156 ->RenderUint64("", bit_cast<uint64>(int64{0})) in PrepareExpectingObjectWriterForRepeatedPrimitive() 159 ->RenderUint64("", bit_cast<uint64>(int64{0})) in PrepareExpectingObjectWriterForRepeatedPrimitive() 160 ->RenderUint64("", bit_cast<uint64>(int64{6402})) in PrepareExpectingObjectWriterForRepeatedPrimitive() 161 ->RenderUint64("", bit_cast<uint64>(int64{6403})) in PrepareExpectingObjectWriterForRepeatedPrimitive() [all …]
|
/third_party/protobuf/src/google/protobuf/stubs/ |
D | casts.h | 118 inline To bit_cast(const From& from) { in bit_cast() function 132 using internal::bit_cast;
|
/third_party/abseil-cpp/absl/flags/internal/ |
D | flag.cc | 163 OneWordValue().store(absl::bit_cast<int64_t>(buf), in Init() 173 auto atomic_value = absl::bit_cast<AlignedTwoWords>(buf); in Init() 290 absl::bit_cast<std::array<char, sizeof(int64_t)>>( in CurrentValue() 296 absl::bit_cast<std::array<char, sizeof(AlignedTwoWords)>>( in CurrentValue()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/MCTargetDesc/ |
D | AArch64AddressingModes.h | 361 return bit_cast<float>(I); in getFPImmFloat() 756 auto Parts = bit_cast<std::array<T, sizeof(int64_t) / sizeof(T)>>(Imm); in isSVEMaskOfIdenticalElements() 788 auto S = bit_cast<std::array<int32_t, 2>>(Imm); in isSVEMoveMaskPreferredLogicalImmediate() 789 auto H = bit_cast<std::array<int16_t, 4>>(Imm); in isSVEMoveMaskPreferredLogicalImmediate() 790 auto B = bit_cast<std::array<int8_t, 8>>(Imm); in isSVEMoveMaskPreferredLogicalImmediate()
|
/third_party/flutter/skia/src/core/ |
D | SkVM.h | 352 I32 bit_cast(F32 x) { return {x.id}; } in bit_cast() function 371 F32 bit_cast(I32 x) { return {x.id}; } in bit_cast() function 397 return this->bit_cast(this->select(cond, this->bit_cast(t) in select() 398 , this->bit_cast(f))); in select()
|
/third_party/flutter/skia/src/opts/ |
D | SkRasterPipeline_opts.h | 23 SI Dst bit_cast(const Src& src) { in bit_cast() function 390 return bit_cast<U64>(parts); 928 return bit_cast<V>(if_then_else(c, bit_cast<F>(t), bit_cast<F>(e))); in if_then_else() 948 F e = cast(bit_cast<U32>(x)) * (1.0f / (1<<23)); in approx_log2() 951 F m = bit_cast<F>((bit_cast<U32>(x) & 0x007fffff) | 0x3f000000); in approx_log2() 959 return bit_cast<F>(round(1.0f * (1<<23), in approx_pow2() 991 , bit_cast<F>( (s<<16) + (em<<13) + ((127-15)<<23) )); in from_half() 1005 U32 sem = bit_cast<U32>(f), in to_half() 1229 F inclusive = bit_cast<F>( bit_cast<U32>(limit) - 1 ); // Exclusive -> inclusive. in clamp() 1657 float inf = bit_cast<float>(0x7f800000); in STAGE() [all …]
|
/third_party/skia/third_party/externals/swiftshader/src/Common/ |
D | Math.hpp | 78 destType bit_cast(const sourceType &source) in bit_cast() function 205 int32_t i = bit_cast<int32_t>(f); in float_as_twos_complement()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/ |
D | bit.h | 50 inline To bit_cast(const From &from) noexcept { in bit_cast() function
|
D | PointerSumType.h | 191 return bit_cast<uintptr_t>(Storage); in getOpaqueValue()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/flags/internal/ |
D | flag.cc | 163 OneWordValue().store(absl::bit_cast<int64_t>(buf), in Init() 295 absl::bit_cast<std::array<char, sizeof(int64_t)>>( in CurrentValue() 480 return absl::bit_cast<FlagValueAndInitBit<bool>>( in ReadOneBool()
|
D | flag.h | 366 dst = absl::bit_cast<FlagValueAndInitBit<T>>(storage).value; 468 *value = absl::bit_cast<FlagValueAndInitBit<T>>(ReadOneWord()).value;
|
/third_party/abseil-cpp/absl/strings/ |
D | charconv.cc | 127 return absl::bit_cast<double>(dbl); in Make() 167 return absl::bit_cast<float>(flt); in Make()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/ |
D | charconv.cc | 127 return absl::bit_cast<double>(dbl); in Make() 167 return absl::bit_cast<float>(flt); in Make()
|