Unverified Commit afb0a939 authored by Kiriti Ponduri's avatar Kiriti Ponduri Committed by GitHub
Browse files

[libc][math] Qualify canonicalize functions to constexpr (#195630)

parent 5f600666
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@ namespace LIBC_NAMESPACE_DECL {

namespace math {

LIBC_INLINE int canonicalize(double *cx, const double *x) {
LIBC_INLINE constexpr int canonicalize(double *cx, const double *x) {
  return fputil::canonicalize(*cx, *x);
}

+1 −1
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@ namespace LIBC_NAMESPACE_DECL {

namespace math {

LIBC_INLINE int canonicalizebf16(bfloat16 *cx, const bfloat16 *x) {
LIBC_INLINE constexpr int canonicalizebf16(bfloat16 *cx, const bfloat16 *x) {
  return fputil::canonicalize(*cx, *x);
}

+1 −1
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@ namespace LIBC_NAMESPACE_DECL {

namespace math {

LIBC_INLINE int canonicalizef(float *cx, const float *x) {
LIBC_INLINE constexpr int canonicalizef(float *cx, const float *x) {
  return fputil::canonicalize(*cx, *x);
}

+1 −1
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@ namespace LIBC_NAMESPACE_DECL {

namespace math {

LIBC_INLINE int canonicalizef128(float128 *cx, const float128 *x) {
LIBC_INLINE constexpr int canonicalizef128(float128 *cx, const float128 *x) {
  return fputil::canonicalize(*cx, *x);
}

+1 −1
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@ namespace LIBC_NAMESPACE_DECL {

namespace math {

LIBC_INLINE int canonicalizef16(float16 *cx, const float16 *x) {
LIBC_INLINE constexpr int canonicalizef16(float16 *cx, const float16 *x) {
  return fputil::canonicalize(*cx, *x);
}

Loading