Lines Matching refs:source
89 inline Dest bit_cast(const Source& source) { in bit_cast() argument
94 memcpy(&dest, &source, sizeof(dest)); in bit_cast()
101 constexpr Dest dchecked_integral_cast(Source source) { in dchecked_integral_cast() argument
106 source >= static_cast<Source>(std::numeric_limits<Dest>::min())) && in dchecked_integral_cast()
110 source <= static_cast<Source>(std::numeric_limits<Dest>::max()))) in dchecked_integral_cast()
111 << "dchecked_integral_cast failed for " << source in dchecked_integral_cast()
112 << " (would be " << static_cast<Dest>(source) << ")"; in dchecked_integral_cast()
114 return static_cast<Dest>(source); in dchecked_integral_cast()
148 inline Dest reinterpret_cast64(Source source) { in reinterpret_cast64() argument
154 DCHECK_EQ(static_cast<Source>(static_cast<uintptr_t>(source)), source); in reinterpret_cast64()
155 return reinterpret_cast<Dest>(static_cast<uintptr_t>(source)); in reinterpret_cast64()
171 inline Dest reinterpret_cast32(Source source) { in reinterpret_cast32() argument
178 return reinterpret_cast<Dest>(static_cast<uintptr_t>(static_cast<uint32_t>(source))); in reinterpret_cast32()