Skip to content

Commit cbcd5f4

Browse files
committed
fix <numbers> and floating-point tests
1 parent 87bf2b0 commit cbcd5f4

File tree

2 files changed

+15
-13
lines changed
  • src/libcxx/include
  • test/floating_point/float32_fminmax/src

2 files changed

+15
-13
lines changed

src/libcxx/include/numbers

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -96,19 +96,19 @@ template <class _Tp> inline constexpr _Tp inv_sqrt3_v = __illformed<_Tp>{};
9696
template <class _Tp> inline constexpr _Tp egamma_v = __illformed<_Tp>{};
9797
template <class _Tp> inline constexpr _Tp phi_v = __illformed<_Tp>{};
9898

99-
template <floating_point _Tp> inline constexpr _Tp e_v<_Tp> = 2.718281828459045235360287471352662;
100-
template <floating_point _Tp> inline constexpr _Tp log2e_v<_Tp> = 1.442695040888963407359924681001892;
101-
template <floating_point _Tp> inline constexpr _Tp log10e_v<_Tp> = 0.434294481903251827651128918916605;
102-
template <floating_point _Tp> inline constexpr _Tp pi_v<_Tp> = 3.141592653589793238462643383279502;
103-
template <floating_point _Tp> inline constexpr _Tp inv_pi_v<_Tp> = 0.318309886183790671537767526745028;
104-
template <floating_point _Tp> inline constexpr _Tp inv_sqrtpi_v<_Tp> = 0.564189583547756286948079451560772;
105-
template <floating_point _Tp> inline constexpr _Tp ln2_v<_Tp> = 0.693147180559945309417232121458176;
106-
template <floating_point _Tp> inline constexpr _Tp ln10_v<_Tp> = 2.302585092994045684017991454684364;
107-
template <floating_point _Tp> inline constexpr _Tp sqrt2_v<_Tp> = 1.414213562373095048801688724209698;
108-
template <floating_point _Tp> inline constexpr _Tp sqrt3_v<_Tp> = 1.732050807568877293527446341505872;
109-
template <floating_point _Tp> inline constexpr _Tp inv_sqrt3_v<_Tp> = 0.577350269189625764509148780501957;
110-
template <floating_point _Tp> inline constexpr _Tp egamma_v<_Tp> = 0.577215664901532860606512090082402;
111-
template <floating_point _Tp> inline constexpr _Tp phi_v<_Tp> = 1.618033988749894848204586834365638;
99+
template <floating_point _Tp> inline constexpr _Tp e_v<_Tp> = 2.718281828459045235360287471352662L;
100+
template <floating_point _Tp> inline constexpr _Tp log2e_v<_Tp> = 1.442695040888963407359924681001892L;
101+
template <floating_point _Tp> inline constexpr _Tp log10e_v<_Tp> = 0.434294481903251827651128918916605L;
102+
template <floating_point _Tp> inline constexpr _Tp pi_v<_Tp> = 3.141592653589793238462643383279502L;
103+
template <floating_point _Tp> inline constexpr _Tp inv_pi_v<_Tp> = 0.318309886183790671537767526745028L;
104+
template <floating_point _Tp> inline constexpr _Tp inv_sqrtpi_v<_Tp> = 0.564189583547756286948079451560772L;
105+
template <floating_point _Tp> inline constexpr _Tp ln2_v<_Tp> = 0.693147180559945309417232121458176L;
106+
template <floating_point _Tp> inline constexpr _Tp ln10_v<_Tp> = 2.302585092994045684017991454684364L;
107+
template <floating_point _Tp> inline constexpr _Tp sqrt2_v<_Tp> = 1.414213562373095048801688724209698L;
108+
template <floating_point _Tp> inline constexpr _Tp sqrt3_v<_Tp> = 1.732050807568877293527446341505872L;
109+
template <floating_point _Tp> inline constexpr _Tp inv_sqrt3_v<_Tp> = 0.577350269189625764509148780501957L;
110+
template <floating_point _Tp> inline constexpr _Tp egamma_v<_Tp> = 0.577215664901532860606512090082402L;
111+
template <floating_point _Tp> inline constexpr _Tp phi_v<_Tp> = 1.618033988749894848204586834365638L;
112112

113113
inline constexpr double e = e_v<double>;
114114
inline constexpr double log2e = log2e_v<double>;

test/floating_point/float32_fminmax/src/main.cpp renamed to test/floating_point/float32_fminmax/src/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,11 @@ size_t run_test(void) {
6161
return SIZE_MAX;
6262
}
6363

64+
#ifdef __cplusplus
6465
extern "C" {
6566
int main(void);
6667
}
68+
#endif /* __cplusplus */
6769

6870
int main(void) {
6971
os_ClrHome();

0 commit comments

Comments
 (0)