[PATCH] D26817: [APFloat] Implement PPCDoubleDouble add and subtract.

Tim Shen via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 17 13:50:43 PST 2016


timshen created this revision.
timshen added reviewers: hfinkel, kbarton, echristo, iteratee.
timshen added a subscriber: llvm-commits.
Herald added a subscriber: mehdi_amini.

I looked at libgcc's implementation (which is based on the paper,
Software for Doubled-Precision Floating-Point Computations", by Seppo Linnainmaa,
ACM TOMS vol 7 no 3, September 1981, pages 272-283.) and made it generic to
arbitrary IEEE floats.

I'm not entirely sure how to detect overflow and underflow, so I put a TODO there.


https://reviews.llvm.org/D26817

Files:
  llvm/include/llvm/ADT/APFloat.h
  llvm/lib/Support/APFloat.cpp
  llvm/unittests/ADT/APFloatTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26817.78419.patch
Type: text/x-patch
Size: 16903 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161117/becc06cd/attachment.bin>


More information about the llvm-commits mailing list