[libc-commits] [libc] 8f053ea - [libc] Fix typos in x86_64/FEnv.h

Roland McGrath via libc-commits libc-commits at lists.llvm.org
Thu Jul 15 15:21:17 PDT 2021


Author: Roland McGrath
Date: 2021-07-15T15:21:07-07:00
New Revision: 8f053eadbe2712686a917cb703645089cec72d08

URL: https://github.com/llvm/llvm-project/commit/8f053eadbe2712686a917cb703645089cec72d08
DIFF: https://github.com/llvm/llvm-project/commit/8f053eadbe2712686a917cb703645089cec72d08.diff

LOG: [libc] Fix typos in x86_64/FEnv.h

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D106105

Added: 
    

Modified: 
    libc/utils/FPUtil/x86_64/FEnv.h

Removed: 
    


################################################################################
diff  --git a/libc/utils/FPUtil/x86_64/FEnv.h b/libc/utils/FPUtil/x86_64/FEnv.h
index 47e9dce7508e1..6718ef5f03a1a 100644
--- a/libc/utils/FPUtil/x86_64/FEnv.h
+++ b/libc/utils/FPUtil/x86_64/FEnv.h
@@ -66,7 +66,7 @@ static inline uint16_t getStatusValueForExcept(int excepts) {
   // bit flags in the control registers.
   return (excepts & FE_INVALID ? ExceptionFlags::Invalid : 0) |
 #ifdef __FE_DENORM
-         (excepts & __FE_DENORM ? ExceptionFalgs::Denormal : 0) |
+         (excepts & __FE_DENORM ? ExceptionFlags::Denormal : 0) |
 #endif // __FE_DENORM
          (excepts & FE_DIVBYZERO ? ExceptionFlags::DivByZero : 0) |
          (excepts & FE_OVERFLOW ? ExceptionFlags::Overflow : 0) |
@@ -77,7 +77,7 @@ static inline uint16_t getStatusValueForExcept(int excepts) {
 static inline int exceptionStatusToMacro(uint16_t status) {
   return (status & ExceptionFlags::Invalid ? FE_INVALID : 0) |
 #ifdef __FE_DENORM
-         (status & ExceptionFalgs::Denormal ? __FE_DENORM : 0) |
+         (status & ExceptionFlags::Denormal ? __FE_DENORM : 0) |
 #endif // __FE_DENORM
          (status & ExceptionFlags::DivByZero ? FE_DIVBYZERO : 0) |
          (status & ExceptionFlags::Overflow ? FE_OVERFLOW : 0) |


        


More information about the libc-commits mailing list