Skip to content

P0533R9: constexpr for <cmath> and <cstdlib> #105174

Description

@ldionne

Link: https://wg21.link/P0533R9

Absolute values

Integer division

Manipulation functions

  • frexp, frexpf, frexpl
  • ilogb, ilogbf, ilogbl
  • ldexp, ldexpf, ldexpl
  • logb, logbf, logbl
  • modf, modff, modfl
  • scalbn, scalbnf, scalbnl
  • scalbln, scalblnf, scalblnl

Rounding functions

  • ceil, ceilf, ceill
  • floor, floorf, floorl
  • round, roundf, roundl
  • lround, lroundf, lroundl
  • llround, llroundf, llroundl
  • trunc, truncf, truncl

Remainder / difference functions

  • fmod, fmodf, fmodl
  • remainder, remainderf, remainderl
  • remquo, remquof, remquol
  • fdim, fdimf, fdiml

Sign / nearest-value functions

  • copysign, copysignf, copysignl
  • nextafter, nextafterf, nextafterl
  • nexttoward, nexttowardf, nexttowardl

Min / max / fma

  • fmax, fmaxf, fmaxl
  • fmin, fminf, fminl
  • fma, fmaf, fmal

Classification / comparison functions

BEGIN-RST-NOTES
``isfinite``, ``isinf``, ``isnan`` and ``isnormal`` are implemented
END-RST-NOTES

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    c++23constexprAnything related to constant evaluationlibc++libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.wg21-paperIssues representing the implementation of a WG21 paper

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions