diff options
author | Jerry Zhao <jerryz123@berkeley.edu> | 2023-11-19 15:35:20 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-19 15:35:20 -0800 |
commit | 080c31c72d5c3fd813584ea990e8a3aa10e902eb (patch) | |
tree | d1433c06f6081bbabbcf5f251e543de959377c32 | |
parent | eb498c55bab0f49c3903f69524e2674abe71c26b (diff) | |
parent | 71a351956a780142876bf56904de01779477f35f (diff) | |
download | berkeley-softfloat-3-080c31c72d5c3fd813584ea990e8a3aa10e902eb.zip berkeley-softfloat-3-080c31c72d5c3fd813584ea990e8a3aa10e902eb.tar.gz berkeley-softfloat-3-080c31c72d5c3fd813584ea990e8a3aa10e902eb.tar.bz2 |
Merge pull request #22 from midnighter95/master
Add typedef for exception flags enumeration
-rw-r--r-- | source/include/softfloat.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/include/softfloat.h b/source/include/softfloat.h index c1757b8..bf5014b 100644 --- a/source/include/softfloat.h +++ b/source/include/softfloat.h @@ -81,13 +81,13 @@ enum { | Software floating-point exception flags. *----------------------------------------------------------------------------*/ extern THREAD_LOCAL uint_fast8_t softfloat_exceptionFlags; -enum { +typedef enum { softfloat_flag_inexact = 1, softfloat_flag_underflow = 2, softfloat_flag_overflow = 4, softfloat_flag_infinite = 8, softfloat_flag_invalid = 16 -}; +} exceptionFlag_t; /*---------------------------------------------------------------------------- | Routine to raise any or all of the software floating-point exception flags. |