[libc-commits] [PATCH] D105561: [libc] Creating a struct that captures floating point encoding and manually arranges it sequentially in memory

Hedin GarcĂ­a via Phabricator via libc-commits libc-commits at lists.llvm.org
Thu Jul 8 14:11:42 PDT 2021


hedingarcia updated this revision to Diff 357356.
hedingarcia retitled this revision from "[libc] Creating a struct that captures floating point encoding and manually arranges it sequentially in memory " to "[libc] Creating a struct that captures floating point encoding and manually arranges it sequentially in memory".
hedingarcia added a comment.

[libc] Fix of the patch, refactored FPBits.h to have template structs

Made one template struct for MantissaWidth, one for ExponentWidth, and another for FPUIntType.
Removed namespaced calls, comments and changed variable name valueFP to bits in FPBits.h and LongDoubleBitsX86.h.
Changed the return data type of getSign() from bool to uint8_t.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D105561/new/

https://reviews.llvm.org/D105561

Files:
  libc/test/src/math/LdExpTest.h
  libc/test/src/math/NextAfterTest.h
  libc/test/src/math/RoundToIntegerTest.h
  libc/test/src/math/SqrtTest.h
  libc/utils/FPUtil/BasicOperations.h
  libc/utils/FPUtil/DivisionAndRemainderOperations.h
  libc/utils/FPUtil/FPBits.h
  libc/utils/FPUtil/Hypot.h
  libc/utils/FPUtil/LongDoubleBitsX86.h
  libc/utils/FPUtil/ManipulationFunctions.h
  libc/utils/FPUtil/NearestIntegerOperations.h
  libc/utils/FPUtil/NextAfterLongDoubleX86.h
  libc/utils/FPUtil/NormalFloat.h
  libc/utils/FPUtil/Sqrt.h
  libc/utils/FPUtil/SqrtLongDoubleX86.h
  libc/utils/FPUtil/TestHelpers.cpp
  libc/utils/FPUtil/generic/FMA.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105561.357356.patch
Type: text/x-patch
Size: 42083 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20210708/f28a9c4b/attachment-0001.bin>


More information about the libc-commits mailing list