@@ -21,33 +21,53 @@ template <typename T> struct Complex {
2121
2222template <typename T> struct make_complex ;
2323
24- template <> struct make_complex <float > { using type = _Complex float ; };
25- template <> struct make_complex <double > { using type = _Complex double ; };
26- template <> struct make_complex <long double > { using type = _Complex long double ; };
24+ template <> struct make_complex <float > {
25+ using type = _Complex float ;
26+ };
27+ template <> struct make_complex <double > {
28+ using type = _Complex double ;
29+ };
30+ template <> struct make_complex <long double > {
31+ using type = _Complex long double ;
32+ };
2733
2834#if defined(LIBC_TYPES_HAS_CFLOAT16)
29- template <> struct make_complex <float16> { using type = cfloat16; };
35+ template <> struct make_complex <float16> {
36+ using type = cfloat16;
37+ };
3038#endif
3139#if defined(LIBC_TYPES_HAS_CFLOAT128)
32- template <> struct make_complex <float128> { using type = cfloat128; };
40+ template <> struct make_complex <float128> {
41+ using type = cfloat128;
42+ };
3343#endif
3444
35- template <typename T> using make_complex_t = typename make_complex<T>::type;
45+ template <typename T> using make_complex_t = typename make_complex<T>::type;
3646
3747template <typename T> struct make_real ;
3848
39- template <> struct make_real <_Complex float > { using type = float ; };
40- template <> struct make_real <_Complex double > { using type = double ; };
41- template <> struct make_real <_Complex long double > { using type = long double ; };
49+ template <> struct make_real <_Complex float > {
50+ using type = float ;
51+ };
52+ template <> struct make_real <_Complex double > {
53+ using type = double ;
54+ };
55+ template <> struct make_real <_Complex long double > {
56+ using type = long double ;
57+ };
4258
4359#if defined(LIBC_TYPES_HAS_CFLOAT16)
44- template <> struct make_real <cfloat16> { using type = float16; };
60+ template <> struct make_real <cfloat16> {
61+ using type = float16;
62+ };
4563#endif
4664#if defined(LIBC_TYPES_HAS_CFLOAT128)
47- template <> struct make_real <cfloat128> { using type = float128; };
65+ template <> struct make_real <cfloat128> {
66+ using type = float128;
67+ };
4868#endif
4969
50- template <typename T> using make_real_t = typename make_real<T>::type;
70+ template <typename T> using make_real_t = typename make_real<T>::type;
5171
5272template <typename T> T conjugate (T c) {
5373 Complex<make_real_t <T>> c_c = cpp::bit_cast<Complex<make_real_t <T>>>(c);
0 commit comments