Revert "[libc][NFC] Implement `FPBits` in terms of `FloatProperties` to reduce clutte...
commita9af317fbecae00508b3f8c752af3dbcc06e2fcb
authorGuillaume Chatelet <gchatelet@google.com>
Wed, 13 Dec 2023 08:55:27 +0000 (13 09:55 +0100)
committerGitHub <noreply@github.com>
Wed, 13 Dec 2023 08:55:27 +0000 (13 09:55 +0100)
tree73e1e03ac28c22586de15822ef614fb37ecf0a4a
parent5b32740631252dd38f41b818a12b28880b02c3b4
Revert "[libc][NFC] Implement `FPBits` in terms of `FloatProperties` to reduce clutter" (#75304)

Reverts llvm/llvm-project#75196

GCC complains about change of meaning for `FPBits`
```
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/src/__support/FPUtil/generic/FMod.h:188:9: error: declaration of ‘using FPBits = struct __llvm_libc_18_0_0_git::fputil::FPBits<T>’ changes meaning of ‘FPBits’ [-fpermissive]
  188 |   using FPBits = FPBits<T>;
      |         ^~~~~~
```

I'll reland with a different name.
17 files changed:
libc/src/__support/FPUtil/FPBits.h
libc/src/__support/FPUtil/Hypot.h
libc/src/__support/FPUtil/generic/FMod.h
libc/src/__support/FPUtil/x86_64/LongDoubleBits.h
libc/src/__support/str_to_float.h
libc/src/math/generic/acoshf.cpp
libc/src/math/generic/asinhf.cpp
libc/src/math/generic/atanhf.cpp
libc/src/math/generic/erff.cpp
libc/src/math/generic/explogxf.h
libc/src/math/generic/inv_trigf_utils.h
libc/src/math/generic/log.cpp
libc/src/math/generic/log10.cpp
libc/src/math/generic/log1p.cpp
libc/src/math/generic/log2.cpp
libc/src/math/generic/sinhf.cpp
libc/src/math/generic/tanhf.cpp