Home
last modified time | relevance | path

Searched refs:InType (Results 1 – 21 of 21) sorted by relevance

/llvm-project/libc/test/src/math/smoke/
H A DFmaTest.h19 template <typename OutType, typename InType = OutType>
27 DECLARE_SPECIAL_CONSTANTS(InType)
43 const InType in_out_min_normal = in test_special_numbers()
44 LIBC_NAMESPACE::fputil::cast<InType>(out.min_normal); in test_special_numbers()
45 const InType in_out_min_denormal = in test_special_numbers()
46 LIBC_NAMESPACE::fputil::cast<InType>(out.min_denormal); in test_special_numbers()
49 using FmaFunc = OutType (*)(InType, InType, InType); in test_special_numbers()
63 func(InType(0. in test_special_numbers()
107 LIST_NARROWING_FMA_TESTS(OutType,InType,func) global() argument
[all...]
H A DILogbTest.h20 template <typename OutType, typename InType>
22 using FPBits = LIBC_NAMESPACE::fputil::FPBits<InType>;
26 typedef OutType (*Func)(InType); in test_special_numbers()
42 EXPECT_EQ(OutType(0), func(InType(1.0))); in test_powers_of_two()
43 EXPECT_EQ(OutType(0), func(InType(-1.0))); in test_powers_of_two()
45 EXPECT_EQ(OutType(1), func(InType(2.0))); in test_powers_of_two()
46 EXPECT_EQ(OutType(1), func(InType(-2.0))); in test_powers_of_two()
48 EXPECT_EQ(OutType(2), func(InType(4.0))); in test_powers_of_two()
49 EXPECT_EQ(OutType(2), func(InType(-4.0))); in test_powers_of_two()
51 EXPECT_EQ(OutType(3), func(InType(8. in test_powers_of_two()
117 LIST_INTLOGB_TESTS(OutType,InType,Func) global() argument
[all...]
H A DDivTest.h21 template <typename OutType, typename InType>
27 DECLARE_SPECIAL_CONSTANTS(InType)
36 using DivFunc = OutType (*)(InType, InType); in test_special_numbers()
42 InType qnan_42 = InFPBits::quiet_nan(Sign::POS, 0x42).get_val(); in test_special_numbers()
53 EXPECT_FP_EQ_WITH_EXCEPTION(inf, func(InType(1.0), in.zero), FE_DIVBYZERO); in test_special_numbers()
54 EXPECT_FP_EQ_WITH_EXCEPTION(neg_inf, func(InType(-1.0), in.zero), in test_special_numbers()
56 EXPECT_FP_EQ_WITH_EXCEPTION(neg_inf, func(InType(1.0), in.neg_zero), in test_special_numbers()
58 EXPECT_FP_EQ_WITH_EXCEPTION(inf, func(InType(1.0), in.zero), FE_DIVBYZERO); in test_special_numbers()
153 func(InType(1. in test_range_errors()
161 LIST_DIV_TESTS(OutType,InType,func) global() argument
[all...]
H A DAddTest.h22 template <typename OutType, typename InType>
28 DECLARE_SPECIAL_CONSTANTS(InType)
37 using AddFunc = OutType (*)(InType, InType); in test_special_numbers()
43 InType qnan_42 = InFPBits::quiet_nan(Sign::POS, 0x42).get_val(); in test_special_numbers()
136 func(InType(1.0), in.min_denormal); in test_range_errors()
141 #define LIST_ADD_TESTS(OutType, InType, func) \ in test_inexact_results()
142 using LlvmLibcAddTest = AddTest<OutType, InType>; \ in test_inexact_results()
147 LIST_ADD_TESTS(OutType,InType,func) global() argument
H A DSubTest.h21 template <typename OutType, typename InType>
27 DECLARE_SPECIAL_CONSTANTS(InType)
36 using SubFunc = OutType (*)(InType, InType); in test_special_numbers()
42 InType qnan_42 = InFPBits::quiet_nan(Sign::POS, 0x42).get_val(); in test_special_numbers()
136 func(InType(1.0), in.min_denormal); in test_range_errors()
141 #define LIST_SUB_TESTS(OutType, InType, func) \ in test_range_errors()
142 using LlvmLibcSubTest = SubTest<OutType, InType>; \
149 LIST_SUB_TESTS(OutType,InType,func) global() argument
H A DSqrtTest.h13 template <typename OutType, typename InType>
19 DECLARE_SPECIAL_CONSTANTS(InType)
25 typedef OutType (*SqrtFunc)(InType); in test_special_numbers()
33 ASSERT_FP_EQ(aNaN, func(InType(-1.0)));
34 ASSERT_FP_EQ(OutType(1.0), func(InType(1.0)));
35 ASSERT_FP_EQ(OutType(2.0), func(InType(4.0)));
36 ASSERT_FP_EQ(OutType(3.0), func(InType(9.0)));
44 #define LIST_NARROWING_SQRT_TESTS(OutType, InType, func) \
45 using LlvmLibcSqrtTest = SqrtTest<OutType, InType>; \
38 LIST_NARROWING_SQRT_TESTS(OutType,InType,func) global() argument
/llvm-project/libc/src/__support/FPUtil/generic/
H A Dadd_sub.h30 template <bool IsSub, typename OutType, typename InType>
32 cpp::is_floating_point_v<InType> && in add_or_sub()
33 sizeof(OutType) <= sizeof(InType), in add_or_sub()
35 add_or_sub(InType x, InType y) { in add_or_sub()
38 using InFPBits = FPBits<InType>; in add_or_sub()
105 // immediately back to InType before negating it, resulting in double in add_or_sub()
107 volatile InType tmp = y; in add_or_sub()
114 volatile InType tmp = y; in add_or_sub()
121 InType x_ab in add_or_sub()
[all...]
H A DFMA.h31 template <typename OutType, typename InType>
33 cpp::is_floating_point_v<InType> &&
34 sizeof(OutType) <= sizeof(InType),
36 fma(InType x, InType y, InType z);
107 template <typename OutType, typename InType>
109 cpp::is_floating_point_v<InType> &&
110 sizeof(OutType) <= sizeof(InType),
112 fma(InType
[all...]
H A Dsqrt.h71 template <typename OutType, typename InType>
73 cpp::is_floating_point_v<InType> &&
74 sizeof(OutType) <= sizeof(InType),
76 sqrt(InType x) {
78 internal::SpecialLongDouble<InType>::VALUE) {
84 using InFPBits = FPBits<InType>;
112 internal::normalize<InType>(x_exp, x_mant);
H A Ddiv.h27 template <typename OutType, typename InType>
29 cpp::is_floating_point_v<InType> &&
30 sizeof(OutType) <= sizeof(InType), in div()
32 div(InType x, InType y) { in div()
35 using InFPBits = FPBits<InType>; in div()
/llvm-project/libc/test/src/math/
H A DFMulTest.h
H A DFmaTest.h21 template <typename OutType, typename InType = OutType>
29 DECLARE_SPECIAL_CONSTANTS(InType)
57 using FmaFunc = OutType (*)(InType, InType, InType);
82 InType x = InFPBits(v).get_val(); in test_subnormal_range()
83 InType y = InFPBits(w).get_val(); in test_subnormal_range()
84 InType z = InFPBits(get_random_bit_pattern()).get_val(); in test_subnormal_range()
85 mpfr::TernaryInput<InType> input{x, y, z}; in test_subnormal_range()
97 #define LIST_NARROWING_FMA_TESTS(OutType, InType, func) \ argument
98 using LlvmLibcFmaTest = FmaTestTemplate<OutType, InType>; \
H A DAddTest.h19 template <typename OutType, typename InType>
23 DECLARE_SPECIAL_CONSTANTS(InType)
39 typedef OutType (*AddFunc)(InType, InType);
60 InType x = InFPBits(v).get_val(); in test_subnormal_range()
61 InType y = InFPBits(w).get_val(); in test_subnormal_range()
62 mpfr::BinaryInput<InType> input{x, y}; in test_subnormal_range()
69 #define LIST_ADD_TESTS(OutType, InType, func) \ argument
70 using LlvmLibcAddTest = AddTest<OutType, InType>; \
H A DDivTest.h19 template <typename OutType, typename InType>
23 DECLARE_SPECIAL_CONSTANTS(InType)
39 using DivFunc = OutType (*)(InType, InType);
47 InType x = InFPBits(v).get_val(); in test_subnormal_range()
48 InType y = InFPBits(w).get_val(); in test_subnormal_range()
49 mpfr::BinaryInput<InType> input{x, y}; in test_subnormal_range()
60 InType x = InFPBits(v).get_val(); in test_subnormal_range()
61 InType y = InFPBits(w).get_val(); in test_subnormal_range()
62 mpfr::BinaryInput<InType> inpu in test_subnormal_range()
69 LIST_DIV_TESTS(OutType,InType,func) global() argument
[all...]
H A DSubTest.h19 template <typename OutType, typename InType>
23 DECLARE_SPECIAL_CONSTANTS(InType)
39 using SubFunc = OutType (*)(InType, InType);
60 InType x = InFPBits(v).get_val(); in test_subnormal_range()
61 InType y = InFPBits(w).get_val(); in test_subnormal_range()
62 mpfr::BinaryInput<InType> input{x, y}; in test_subnormal_range()
69 #define LIST_SUB_TESTS(OutType, InType, func) \ argument
70 using LlvmLibcSubTest = SubTest<OutType, InType>; \
H A DSqrtTest.h16 template <typename OutType, typename InType>
19 DECLARE_SPECIAL_CONSTANTS(InType)
22 StorageType(1) << LIBC_NAMESPACE::fputil::FPBits<InType>::FRACTION_LEN;
25 using SqrtFunc = OutType (*)(InType);
31 InType x = denormal.get_val(); in test_denormal_values()
48 InType x = x_bits.get_val(); in test_denormal_values()
61 #define LIST_NARROWING_SQRT_TESTS(OutType, InType, func) \ argument
62 using LlvmLibcSqrtTest = SqrtTest<OutType, InType>; \
/llvm-project/libc/test/src/math/exhaustive/
H A Dexhaustive_test.h39 template <typename OutType, typename InType = OutType>
40 using UnaryOp = OutType(InType);
42 template <typename OutType, typename InType, mpfr::Operation Op,
43 UnaryOp<OutType, InType> Func>
45 using FloatType = InType;
72 template <typename OutType, typename InType = OutType>
73 using BinaryOp = OutType(InType, InType);
75 template <typename OutType, typename InType, mpfr::Operation Op,
76 BinaryOp<OutType, InType> Fun
[all...]
/llvm-project/libc/src/__support/FPUtil/
H A DFMA.h21 template <typename OutType, typename InType> in fma()
22 LIBC_INLINE OutType fma(InType x, InType y, InType z) { in fma()
/llvm-project/llvm/lib/Demangle/
H A DRustDemangle.cpp101 void demangleImplPath(IsInType InType);
224 // Demangles a path. InType indicates whether a path is inside a type. When
241 bool Demangler::demanglePath(IsInType InType, LeaveGenericsOpen LeaveOpen) { in demanglePath() argument
255 demangleImplPath(InType); in demanglePath()
262 demangleImplPath(InType); in demanglePath()
284 demanglePath(InType); in demanglePath()
315 demanglePath(InType); in demanglePath()
317 if (InType == IsInType::No) in demanglePath()
333 demangleBackref([&] { IsOpen = demanglePath(InType, LeaveOpen); }); in demanglePath()
346 void Demangler::demangleImplPath(IsInType InType) { in demangleImplPath() argument
[all...]
/llvm-project/libc/utils/MPFRWrapper/
H A DMPFRUtils.h248 template <typename InType, typename OutType>
249 bool match(InType in, OutType out) {
271 template <typename InType, typename OutType>
272 bool match(const TernaryInput<InType> &in, OutType out) {
277 template <typename InType, typename OutType>
278 void explain_error(InType in, OutType out) {
300 template <typename InType, typename OutType>
301 void explain_error(const TernaryInput<InType> &in, OutType out) {
/llvm-project/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/
H A DAppleObjCDeclVendor.cpp187 enum ParserState { Start = 0, InType, InPos } state = Start; in ObjCRuntimeMethodType()
203 state = InType; in ObjCRuntimeMethodType()
223 case InType: { in ObjCRuntimeMethodType()
275 state = InType; in ObjCRuntimeMethodType()
186 enum ParserState { Start = 0, InType, InPos } state = Start; ObjCRuntimeMethodType() enumerator