]>
git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/g++.dg/cpp23/ext-floating.h
1 // P1467R9 - Extended floating-point types and standard names.
5 #ifdef __STDCPP_FLOAT16_T__
6 using float16_t
= _Float16
;
8 #ifdef __STDCPP_FLOAT32_T__
9 using float32_t
= _Float32
;
11 #ifdef __STDCPP_FLOAT64_T__
12 using float64_t
= _Float64
;
14 #ifdef __STDCPP_FLOAT128_T__
15 using float128_t
= _Float128
;
17 #undef __STDCPP_BFLOAT16_T__
18 #ifdef __STDCPP_BFLOAT16_T__
19 using bfloat16_t
= __bf16
; // ???
21 template<typename T
, T v
> struct integral_constant
{
22 static constexpr T value
= v
;
24 typedef integral_constant
<bool, false> false_type
;
25 typedef integral_constant
<bool, true> true_type
;
26 template<class T
, class U
>
27 struct is_same
: std::false_type
{};
29 struct is_same
<T
, T
> : std::true_type
{};