提交 25bb7e00 编写于 作者: B Behdad Esfahbod

[meta] Add is_signed for floating point types

上级 e0315b4a
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册