[meta] Add is_signed for floating point types

This commit is contained in:
Behdad Esfahbod 2019-05-10 19:49:26 -07:00
parent e0315b4aad
commit 25bb7e005d
1 changed files with 3 additions and 0 deletions

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;