1
0

xhalf_float.hpp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /***************************************************************************
  2. * Copyright (c) Johan Mabille, Sylvain Corlay and Wolf Vollprecht *
  3. * Copyright (c) QuantStack *
  4. * *
  5. * Distributed under the terms of the BSD 3-Clause License. *
  6. * *
  7. * The full license is in the file LICENSE, distributed with this software. *
  8. ****************************************************************************/
  9. #ifndef XTL_XHALF_FLOAT_HPP
  10. #define XTL_XHALF_FLOAT_HPP
  11. #include "xtype_traits.hpp"
  12. #include "xhalf_float_impl.hpp"
  13. namespace xtl
  14. {
  15. using half_float = half_float::half;
  16. template <>
  17. struct is_scalar<half_float> : std::true_type
  18. {
  19. };
  20. template <>
  21. struct is_arithmetic<half_float> : std::true_type
  22. {
  23. };
  24. template <>
  25. struct is_signed<half_float> : std::true_type
  26. {
  27. };
  28. template <>
  29. struct is_floating_point<half_float> : std::true_type
  30. {
  31. };
  32. }
  33. #endif