| /llvm-project-15.0.7/libc/test/src/math/ |
| H A D | NextAfterTest.h | 60 expected = __llvm_libc::bit_cast<T>(expected_bits); in testBoundaries() 66 expected = __llvm_libc::bit_cast<T>(expected_bits); in testBoundaries() 71 expected = __llvm_libc::bit_cast<T>(expected_bits); in testBoundaries() 75 x = __llvm_libc::bit_cast<T>(max_subnormal); in testBoundaries() 77 expected = __llvm_libc::bit_cast<T>(min_normal); in testBoundaries() 82 expected = __llvm_libc::bit_cast<T>(expected_bits); in testBoundaries() 89 expected = __llvm_libc::bit_cast<T>(expected_bits); in testBoundaries() 95 expected = __llvm_libc::bit_cast<T>(expected_bits); in testBoundaries() 99 x = __llvm_libc::bit_cast<T>(min_subnormal); in testBoundaries() 115 x = __llvm_libc::bit_cast<T>(min_normal); in testBoundaries() [all …]
|
| H A D | SqrtTest.h | 51 T x = __llvm_libc::bit_cast<T>(v); in test_denormal_values() 60 T x = __llvm_libc::bit_cast<T>(v); in test_normal_range()
|
| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A 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() 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() 165 constexpr G g = bit_cast<G>(s); in array_members() 277 no_pad np = bit_cast<no_pad>(p); in test_indeterminate() 337 return bit_cast<B>(a); in one() 349 return bit_cast<A>(b); in two() [all …]
|
| H A D | warn-memset-bad-sizeof.cpp | 21 inline Dest bit_cast(const Source& source) { in bit_cast() function 120 bit_cast<char*>(puc); in f() 123 bit_cast<int*>(pf); in f()
|
| /llvm-project-15.0.7/libcxx/test/std/numerics/bit/bit.cast/ |
| H A D | bit_cast.pass.cpp | 31 Buffer middle = std::bit_cast<Buffer>(from); in test_roundtrip_through_buffer() 32 T to = std::bit_cast<T>(middle); in test_roundtrip_through_buffer() 33 Buffer middle2 = std::bit_cast<Buffer>(to); in test_roundtrip_through_buffer() 49 Nested middle = std::bit_cast<Nested>(from); in test_roundtrip_through_nested_T() 50 T to = std::bit_cast<T>(middle); in test_roundtrip_through_nested_T() 51 Nested middle2 = std::bit_cast<Nested>(to); in test_roundtrip_through_nested_T() 66 Intermediate middle = std::bit_cast<Intermediate>(from); in test_roundtrip_through() 67 T to = std::bit_cast<T>(middle); in test_roundtrip_through() 68 Intermediate middle2 = std::bit_cast<Intermediate>(to); in test_roundtrip_through() 250 Nested middle = std::bit_cast<Nested>(from); in basic_constexpr_test() [all …]
|
| H A D | bit_cast.compile.pass.cpp | 32 { std::bit_cast<To>(from) } -> std::same_as<To>;
|
| /llvm-project-15.0.7/libc/test/src/string/memory_utils/ |
| H A D | backend_test.cpp | 52 return bit_cast<BufferT>(Backend::template splat<T>(value)); in splat() 56 return Backend::template notEquals<T>(bit_cast<T>(v1), bit_cast<T>(v2)); in notEquals() 60 return Backend::template threeWayCmp<T>(bit_cast<T>(v1), bit_cast<T>(v2)); in threeWayCmp() 88 alignas(64) const auto stored = ParamType::splat(bit_cast<ubyte>(value)); in TYPED_TEST() 90 EXPECT_EQ(bit_cast<uint8_t>(stored[i]), value); in TYPED_TEST() 132 const auto *ptr = bit_cast<const T *>(ref.data()); in load() 134 return bit_cast<BufferT>(value); in load() 138 auto *ptr = bit_cast<T *>(ref.data()); in store() 139 Backend::template store<T, TS, AS>(ptr, bit_cast<T>(value)); in store()
|
| /llvm-project-15.0.7/libc/src/string/memory_utils/ |
| H A D | elements_x86.h | 71 _mm_movemask_epi8(__llvm_libc::bit_cast<__m128i>(value))); in mask() 76 return __llvm_libc::bit_cast<T>( in load() 82 __llvm_libc::bit_cast<__m128i>(value)); in store() 98 return _mm256_movemask_epi8(__llvm_libc::bit_cast<__m256i>(value)); in mask() 103 return __llvm_libc::bit_cast<T>( in load() 109 __llvm_libc::bit_cast<__m256i>(value)); in store() 126 return _mm512_cmpneq_epi8_mask(__llvm_libc::bit_cast<__m512i>(a), in not_equal_mask() 127 __llvm_libc::bit_cast<__m512i>(b)); in not_equal_mask() 131 return __llvm_libc::bit_cast<T>(_mm512_loadu_epi8(ptr)); in load() 135 return _mm512_storeu_epi8(ptr, __llvm_libc::bit_cast<__m512i>(value)); in store()
|
| /llvm-project-15.0.7/libcxx/include/__compare/ |
| H A D | strong_order.h | 51 int32_t __rx = _VSTD::bit_cast<int32_t>(__t); in __go() 52 int32_t __ry = _VSTD::bit_cast<int32_t>(__u); in __go() 57 int64_t __rx = _VSTD::bit_cast<int64_t>(__t); in __go() 58 int64_t __ry = _VSTD::bit_cast<int64_t>(__u); in __go() 100 return _VSTD::bit_cast<_IntType>(__t) <=> _VSTD::bit_cast<_IntType>(__u); in __go()
|
| /llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/ |
| H A D | chunk.h | 118 PackedHeader NewPackedHeader = bit_cast<PackedHeader>(*NewUnpackedHeader); in storeHeader() 125 *NewUnpackedHeader = bit_cast<UnpackedHeader>(NewPackedHeader); in loadHeader() 136 PackedHeader NewPackedHeader = bit_cast<PackedHeader>(*NewUnpackedHeader); in compareExchangeHeader() 137 PackedHeader OldPackedHeader = bit_cast<PackedHeader>(*OldUnpackedHeader); in compareExchangeHeader() 147 *NewUnpackedHeader = bit_cast<UnpackedHeader>(NewPackedHeader); in isValid()
|
| /llvm-project-15.0.7/libc/src/math/generic/ |
| H A D | math_utils.h | 23 return __llvm_libc::bit_cast<uint32_t>(x); in as_uint32_bits() 27 return __llvm_libc::bit_cast<uint64_t>(x); in as_uint64_bits() 31 return __llvm_libc::bit_cast<float>(x); in as_float() 35 return __llvm_libc::bit_cast<double>(x); in as_double()
|
| /llvm-project-15.0.7/libc/src/__support/FPUtil/ |
| H A D | FPBits.h | 109 : bits(__llvm_libc::bit_cast<UIntType>(x)) {} in FPBits() 117 T get_val() const { return __llvm_libc::bit_cast<T>(bits); } in get_val() 119 void set_val(T value) { bits = __llvm_libc::bit_cast<UIntType>(value); } in set_val()
|
| /llvm-project-15.0.7/llvm/lib/MC/ |
| H A D | MCInst.cpp | 34 OS << "SFPImm:" << bit_cast<float>(getSFPImm()); in print() 36 OS << "DFPImm:" << bit_cast<double>(getDFPImm()); in print()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Quant/IR/ |
| H A D | TypeDetail.h | 132 int64_t scaleBits = llvm::bit_cast<int64_t>(scale); in getHashValue() 207 int64_t *scalesCast = llvm::bit_cast<int64_t *>(scales.data()); in getHashValue() 279 int64_t minBits = llvm::bit_cast<double>(min); in getHashValue() 280 int64_t maxBits = llvm::bit_cast<double>(max); in getHashValue()
|
| /llvm-project-15.0.7/libc/test/src/stdio/printf_core/ |
| H A D | parser_test.cpp | 251 expected1.conv_val_raw = __llvm_libc::bit_cast<uint64_t>(arg2); in TEST() 303 expected1.conv_val_raw = __llvm_libc::bit_cast<uint64_t>(arg2); in TEST() 337 expected1.conv_val_raw = __llvm_libc::bit_cast<uint64_t>(arg2); in TEST() 421 expected5.conv_val_raw = __llvm_libc::bit_cast<uint64_t>(arg2); in TEST() 437 expected7.conv_val_raw = __llvm_libc::bit_cast<uint64_t>(arg2); in TEST()
|
| /llvm-project-15.0.7/lldb/source/Plugins/ExpressionParser/Clang/ |
| H A D | IRDynamicChecks.cpp | 339 BitCastInst *bit_cast = in InstrumentInstruction() local 346 arg_array[0] = bit_cast; in InstrumentInstruction() 430 BitCastInst *bit_cast = in InstrumentInstruction() local 437 arg_array[0] = bit_cast; in InstrumentInstruction()
|
| /llvm-project-15.0.7/libc/src/__support/FPUtil/x86_64/ |
| H A D | LongDoubleBits.h | 104 explicit FPBits(XType x) : bits(__llvm_libc::bit_cast<UIntType>(x)) { 114 operator long double() { return __llvm_libc::bit_cast<long double>(bits); }
|
| /llvm-project-15.0.7/llvm/lib/Target/AArch64/MCTargetDesc/ |
| H A D | AArch64AddressingModes.h | 362 return bit_cast<float>(I); in getFPImmFloat() 757 auto Parts = bit_cast<std::array<T, sizeof(int64_t) / sizeof(T)>>(Imm); in isSVEMaskOfIdenticalElements() 797 auto S = bit_cast<std::array<int32_t, 2>>(Imm); in isSVEMoveMaskPreferredLogicalImmediate() 798 auto H = bit_cast<std::array<int16_t, 4>>(Imm); in isSVEMoveMaskPreferredLogicalImmediate() 799 auto B = bit_cast<std::array<int8_t, 8>>(Imm); in isSVEMoveMaskPreferredLogicalImmediate()
|
| /llvm-project-15.0.7/compiler-rt/lib/scudo/ |
| H A D | scudo_utils.h | 23 inline Dest bit_cast(const Source& source) { in bit_cast() function
|
| H A D | scudo_allocator.cpp | 133 bit_cast<UnpackedHeader>(NewPackedHeader); in isValid() 147 *NewUnpackedHeader = bit_cast<UnpackedHeader>(NewPackedHeader); in loadHeader() 156 PackedHeader NewPackedHeader = bit_cast<PackedHeader>(*NewUnpackedHeader); in storeHeader() 167 PackedHeader NewPackedHeader = bit_cast<PackedHeader>(*NewUnpackedHeader); in compareExchangeHeader() 168 PackedHeader OldPackedHeader = bit_cast<PackedHeader>(*OldUnpackedHeader); in compareExchangeHeader()
|
| /llvm-project-15.0.7/libcxx/include/__bit/ |
| H A D | bit_cast.h | 28 _LIBCPP_NODISCARD_EXT _LIBCPP_HIDE_FROM_ABI constexpr _ToType bit_cast(const _FromType& __from) noe… in bit_cast() function
|
| /llvm-project-15.0.7/libcxx/src/include/ |
| H A D | to_chars_floating_point.h | 122 const _Uint_type _Uint_value = _VSTD::bit_cast<_Uint_type>(_Value); 350 const _Uint_type _Uint_value = _VSTD::bit_cast<_Uint_type>(_Value); 842 const _Uint_type _Uint_value = _VSTD::bit_cast<_Uint_type>(_Value); 1005 _Uint_type _Uint_value = _VSTD::bit_cast<_Uint_type>(_Value); 1017 _Value = _VSTD::bit_cast<_Floating>(_Uint_value);
|
| /llvm-project-15.0.7/libc/src/__support/CPP/ |
| H A D | Bit.h | 28 template <class To, class From> constexpr To bit_cast(const From &from) { in bit_cast() function
|
| /llvm-project-15.0.7/llvm/include/llvm/ADT/ |
| H A D | bit.h | 56 inline To bit_cast(const From &from) noexcept { in bit_cast() function
|
| /llvm-project-15.0.7/libc/src/stdio/printf_core/ |
| H A D | parser.cpp | 135 bit_cast<uint64_t>(GET_ARG_VAL_SIMPLEST(double, conv_index)); in get_next_section() 137 section.conv_val_raw = bit_cast<fputil::FPBits<long double>::UIntType>( in get_next_section()
|