@@ -19,70 +19,59 @@ namespace cpp {
1919
2020// Primary template: handles arithmetic and signed fixed-point types
2121template <typename T>
22- struct is_signed : bool_constant<((is_fixed_point_v<T> || is_arithmetic_v<T>) && (T(-1 ) < T(0 )))> {
22+ struct is_signed : bool_constant<((is_fixed_point_v<T> || is_arithmetic_v<T>) &&
23+ (T(-1 ) < T(0 )))> {
2324 LIBC_INLINE constexpr operator bool () const { return is_signed::value; }
2425 LIBC_INLINE constexpr bool operator ()() const { return is_signed::value; }
2526};
2627
2728#ifdef LIBC_COMPILER_HAS_FIXED_POINT
2829// Specializations for unsigned fixed-point types
29- template <>
30- struct is_signed <unsigned short _Fract> : bool_constant<false > {
30+ template <> struct is_signed <unsigned short _Fract> : bool_constant<false > {
3131 LIBC_INLINE constexpr operator bool () const { return is_signed::value; }
3232 LIBC_INLINE constexpr bool operator ()() const { return is_signed::value; }
3333};
34- template <>
35- struct is_signed <unsigned _Fract> : bool_constant<false > {
34+ template <> struct is_signed <unsigned _Fract> : bool_constant<false > {
3635 LIBC_INLINE constexpr operator bool () const { return is_signed::value; }
3736 LIBC_INLINE constexpr bool operator ()() const { return is_signed::value; }
3837};
39- template <>
40- struct is_signed <unsigned long _Fract> : bool_constant<false > {
38+ template <> struct is_signed <unsigned long _Fract> : bool_constant<false > {
4139 LIBC_INLINE constexpr operator bool () const { return is_signed::value; }
4240 LIBC_INLINE constexpr bool operator ()() const { return is_signed::value; }
4341};
44- template <>
45- struct is_signed <unsigned short _Accum> : bool_constant<false > {
42+ template <> struct is_signed <unsigned short _Accum> : bool_constant<false > {
4643 LIBC_INLINE constexpr operator bool () const { return is_signed::value; }
4744 LIBC_INLINE constexpr bool operator ()() const { return is_signed::value; }
4845};
49- template <>
50- struct is_signed <unsigned _Accum> : bool_constant<false > {
46+ template <> struct is_signed <unsigned _Accum> : bool_constant<false > {
5147 LIBC_INLINE constexpr operator bool () const { return is_signed::value; }
5248 LIBC_INLINE constexpr bool operator ()() const { return is_signed::value; }
5349};
54- template <>
55- struct is_signed <unsigned long _Accum> : bool_constant<false > {
50+ template <> struct is_signed <unsigned long _Accum> : bool_constant<false > {
5651 LIBC_INLINE constexpr operator bool () const { return is_signed::value; }
5752 LIBC_INLINE constexpr bool operator ()() const { return is_signed::value; }
5853};
59- template <>
60- struct is_signed <unsigned short sat _Fract> : bool_constant<false > {
54+ template <> struct is_signed <unsigned short sat _Fract> : bool_constant<false > {
6155 LIBC_INLINE constexpr operator bool () const { return is_signed::value; }
6256 LIBC_INLINE constexpr bool operator ()() const { return is_signed::value; }
6357};
64- template <>
65- struct is_signed <unsigned sat _Fract> : bool_constant<false > {
58+ template <> struct is_signed <unsigned sat _Fract> : bool_constant<false > {
6659 LIBC_INLINE constexpr operator bool () const { return is_signed::value; }
6760 LIBC_INLINE constexpr bool operator ()() const { return is_signed::value; }
6861};
69- template <>
70- struct is_signed <unsigned long sat _Fract> : bool_constant<false > {
62+ template <> struct is_signed <unsigned long sat _Fract> : bool_constant<false > {
7163 LIBC_INLINE constexpr operator bool () const { return is_signed::value; }
7264 LIBC_INLINE constexpr bool operator ()() const { return is_signed::value; }
7365};
74- template <>
75- struct is_signed <unsigned short sat _Accum> : bool_constant<false > {
66+ template <> struct is_signed <unsigned short sat _Accum> : bool_constant<false > {
7667 LIBC_INLINE constexpr operator bool () const { return is_signed::value; }
7768 LIBC_INLINE constexpr bool operator ()() const { return is_signed::value; }
7869};
79- template <>
80- struct is_signed <unsigned sat _Accum> : bool_constant<false > {
70+ template <> struct is_signed <unsigned sat _Accum> : bool_constant<false > {
8171 LIBC_INLINE constexpr operator bool () const { return is_signed::value; }
8272 LIBC_INLINE constexpr bool operator ()() const { return is_signed::value; }
8373};
84- template <>
85- struct is_signed <unsigned long sat _Accum> : bool_constant<false > {
74+ template <> struct is_signed <unsigned long sat _Accum> : bool_constant<false > {
8675 LIBC_INLINE constexpr operator bool () const { return is_signed::value; }
8776 LIBC_INLINE constexpr bool operator ()() const { return is_signed::value; }
8877};
0 commit comments