[meta] Add is_signed for floating point types

This commit is contained in:
Behdad Esfahbod committed 2019-05-10 19:52:36 -07:00
1 parent e0315b4aad
commit 25bb7e005d
1 file changed
+3
+3
View File
@@ -240,6 +240,9 @@ template <> struct hb_is_signed<signed long> { static constexpr bool value = tr
template <> struct hb_is_signed<unsigned long> { static constexpr bool value = false; };
template <> struct hb_is_signed<signed long long> { static constexpr bool value = true; };
template <> struct hb_is_signed<unsigned long long> { static constexpr bool value = false; };
template <> struct hb_is_signed<float> { static constexpr bool value = true; };
template <> struct hb_is_signed<double> { static constexpr bool value = true; };
template <> struct hb_is_signed<long double> { static constexpr bool value = true; };
#define hb_is_signed(T) hb_is_signed<T>::value
template <typename T> struct hb_int_min;