[libc-commits] [PATCH] D106105: [libc] Fix typos in x86_64/FEnv.h

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


mcgrathr created this revision.
mcgrathr added a reviewer: sivachandra.
Herald added subscribers: libc-commits, ecnelises, tschuett.
Herald added a project: libc-project.
mcgrathr requested review of this revision.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D106105

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


Index: libc/utils/FPUtil/x86_64/FEnv.h
===================================================================
--- libc/utils/FPUtil/x86_64/FEnv.h
+++ libc/utils/FPUtil/x86_64/FEnv.h
@@ -66,7 +66,7 @@
   // 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 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) |


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106105.359141.patch
Type: text/x-patch
Size: 1069 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20210715/9b250755/attachment.bin>


More information about the libc-commits mailing list