[all-commits] [llvm/llvm-project] c599b8: [libc][NFC] Decouple FP properties from C++ types ...

Guillaume Chatelet via All-commits all-commits at lists.llvm.org
Mon Nov 27 08:06:03 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c599b8eec0c4f134afcd28ac3baf6fc7b0b36901
      https://github.com/llvm/llvm-project/commit/c599b8eec0c4f134afcd28ac3baf6fc7b0b36901
  Author: Guillaume Chatelet <gchatelet at google.com>
  Date:   2023-11-27 (Mon, 27 Nov 2023)

  Changed paths:
    M libc/src/__support/FPUtil/FloatProperties.h
    M libc/src/__support/FPUtil/dyadic_float.h

  Log Message:
  -----------
  [libc][NFC] Decouple FP properties from C++ types (#73517)

We simplify the floating point properties by splitting concerns:
 - We define all distinct floating point formats in the `FPType` enum.
 - We map them to properties via the `FPProperties` trait.
- We map from C++ type to `FPType` in the `getFPType` function so logic
is easier to understand and extend.




More information about the All-commits mailing list