Commit Graph

4 Commits

Author SHA1 Message Date
TheGreatMcPain bb45e67e30 Fix compile errors when the '-mf16c' CFLAG is enabled.
Fixes an issue where 'half.hpp' skips the 'immintrin.h' include
statement if '-mf16c' is used.
(which can happen when using '-march=native')
2021-01-07 00:14:14 +00:00
baldurk 8ca89b9c2d Further compile fixes for half library 2020-11-10 10:06:12 +00:00
baldurk 944070fdd7 Fix warnings with clang build of half library
* Comma operator problems when doing math functions that return two parameters
  (e.g quotient).
* Passing bool tag type through varargs - the varargs aren't actually used and
  there's an overload for true_type, so we can instead accept false_type.
* gcc seems to declare numeric_limits as a struct, so friend'ing it as a class
  throws a warning. Since we only care about C++11 we can omit the tag from the
  friend declaration.
2020-11-09 17:59:53 +00:00
baldurk d9121a7f90 Add half.hpp 2.1.0 from http://half.sourceforge.net/ 2020-11-09 12:25:21 +00:00