Skip to content

Commit cf5bb8e

Browse files
committed
Add saturate variants to the list.
1 parent fa78489 commit cf5bb8e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

libc/src/__support/CPP/type_traits/is_fixed_point.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ template <typename T> struct is_fixed_point {
2929
LIBC_INLINE_VAR static constexpr bool value = __is_unqualified_any_of<
3030
T, short fract, fract, long fract, unsigned short fract, unsigned fract,
3131
unsigned long fract, short accum, accum, long accum, unsigned short accum,
32-
unsigned accum, unsigned long accum>();
32+
unsigned accum, unsigned long accum, short sat fract, sat fract,
33+
long sat fract, unsigned short sat fract, unsigned sat fract,
34+
unsigned long sat fract, short sat accum, sat accum, long sat accum,
35+
unsigned short sat accum, unsigned sat accum, unsigned long sat accum>();
3336
};
3437
#else
3538
template <typename T> struct is_fixed_point : false_type {};

0 commit comments

Comments
 (0)