0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-29 04:08:54 +02:00

ircd::simd: Use _Float16 / __fp16 for half-precision when available.

This commit is contained in:
Jason Volk 2021-02-26 14:17:27 -08:00
parent 3a5bcbb0dd
commit 9d1316b412

View file

@ -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;