mirror of
https://github.com/matrix-construct/construct
synced 2024-11-16 15:00:51 +01:00
ircd::simd: Use _Float16 / __fp16 for half-precision when available.
This commit is contained in:
parent
3a5bcbb0dd
commit
9d1316b412
1 changed files with 7 additions and 1 deletions
|
@ -69,7 +69,13 @@ namespace ircd
|
|||
typedef uint64_t u64;
|
||||
typedef uint128_t u128;
|
||||
typedef int8_t f8; // ???
|
||||
typedef int16_t f16; // ???
|
||||
#if defined(HAVE__FLOAT16)
|
||||
typedef _Float16 f16;
|
||||
#elif defined(HAVE___FP16)
|
||||
typedef __fp16 f16;
|
||||
#else
|
||||
#error "Missing half-precision floating point support."
|
||||
#endif
|
||||
typedef float f32;
|
||||
typedef double f64;
|
||||
typedef long double f128;
|
||||
|
|
Loading…
Reference in a new issue