diff options
author | Jerry Zhao <jerryz123@berkeley.edu> | 2023-10-13 15:23:50 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-13 15:23:50 -0700 |
commit | eb498c55bab0f49c3903f69524e2674abe71c26b (patch) | |
tree | be448123945308a8bc01e831adb0c83b640aa979 /source/include/softfloat.h | |
parent | 5c06db33fc1e2130f67c045327b0ec949032df1d (diff) | |
parent | bef5a34e1b2ef862e2c5cc0ed4f1ab6e92d01af1 (diff) | |
download | berkeley-softfloat-3-eb498c55bab0f49c3903f69524e2674abe71c26b.zip berkeley-softfloat-3-eb498c55bab0f49c3903f69524e2674abe71c26b.tar.gz berkeley-softfloat-3-eb498c55bab0f49c3903f69524e2674abe71c26b.tar.bz2 |
Merge pull request #21 from nibrunieAtSi5/bf16-support
[#18] Adding minimal BFloat16 support
Diffstat (limited to 'source/include/softfloat.h')
-rw-r--r-- | source/include/softfloat.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/include/softfloat.h b/source/include/softfloat.h index 9ed17c1..c1757b8 100644 --- a/source/include/softfloat.h +++ b/source/include/softfloat.h @@ -170,6 +170,13 @@ bool f16_lt_quiet( float16_t, float16_t ); bool f16_isSignalingNaN( float16_t ); /*---------------------------------------------------------------------------- +| 16-bit (brain float 16) floating-point operations. +*----------------------------------------------------------------------------*/ +float32_t bf16_to_f32( bfloat16_t ); +bfloat16_t f32_to_bf16( float32_t ); +bool bf16_isSignalingNaN( bfloat16_t ); + +/*---------------------------------------------------------------------------- | 32-bit (single-precision) floating-point operations. *----------------------------------------------------------------------------*/ uint_fast32_t f32_to_ui32( float32_t, uint_fast8_t, bool ); |