[all-commits] [llvm/llvm-project] 1a1264: [libc++][math] Add `constexpr` for `std::signbit()...

Robin Caloudis via All-commits all-commits at lists.llvm.org
Thu Sep 5 06:44:38 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1a1264726db275d4b207c5bc640e2779dd484478
      https://github.com/llvm/llvm-project/commit/1a1264726db275d4b207c5bc640e2779dd484478
  Author: Robin Caloudis <robin.caloudis at gmx.de>
  Date:   2024-09-05 (Thu, 05 Sep 2024)

  Changed paths:
    M libcxx/include/__math/traits.h
    M libcxx/test/libcxx/numerics/c.math/constexpr-cxx23-clang.pass.cpp
    M libcxx/test/libcxx/numerics/c.math/constexpr-cxx23-gcc.pass.cpp
    A libcxx/test/std/numerics/c.math/signbit.pass.cpp

  Log Message:
  -----------
  [libc++][math] Add `constexpr` for `std::signbit()` (#105946)

## Why
Since 18th of August, the floating point comparison builtin
``__builtin_signbit`` is available in Clang as constant expression
(https://github.com/llvm/llvm-project/pull/94118).

## What
* Implement `constexpr` for `std::signbit()` as defined by
[P0533R9](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2021/p0533r9.pdf)
(new C++23 feature)
* Restrict execution of tests to tip-of-trunk Clang as builtin is not
yet available (note that builtin is available in GCC)



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list