float16_t#
-
struct float16_t#
Class that provides a type that implements half precision floating point (IEEE754 2008 binary16) in software.
This type is enforced to be 16-bits wide and maintains no state other than the raw IEEE754 binary16 bits so that it can passed to code that checks a type’s size and used for halide_buffer_t allocation.
Constructors
-
explicit float16_t(float value)#
Construct from a float, double, or int using round-to-nearest-ties-to-even.
Out-of-range values become +/- infinity.
-
explicit float16_t(double value)#
Construct from a float, double, or int using round-to-nearest-ties-to-even.
Out-of-range values become +/- infinity.
-
explicit float16_t(int value)#
Construct from a float, double, or int using round-to-nearest-ties-to-even.
Out-of-range values become +/- infinity.
-
explicit float16_t(int64_t value)#
Construct from a float, double, or int using round-to-nearest-ties-to-even.
Out-of-range values become +/- infinity.
-
explicit float16_t(uint64_t value)#
Construct from a float, double, or int using round-to-nearest-ties-to-even.
Out-of-range values become +/- infinity.
-
explicit float16_t(float value)#