From 9785699678d30a498b2b5810d5d3c172563f2557 Mon Sep 17 00:00:00 2001 From: "Michael R. Crusoe" Date: Wed, 18 Oct 2023 13:43:32 +0200 Subject: [PATCH] cdfnorminv{,f}: add bounds to constant arrays to satisfy clang-16 --- simde/simde-math.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/simde/simde-math.h b/simde/simde-math.h index ab05efd13..02de568dc 100644 --- a/simde/simde-math.h +++ b/simde/simde-math.h @@ -1514,7 +1514,7 @@ simde_math_fpclass(double v, const int imm8) { static HEDLEY_INLINE double simde_math_cdfnorminv(double p) { - static const double a[] = { + static const double a[6] = { -3.969683028665376e+01, 2.209460984245205e+02, -2.759285104469687e+02, @@ -1523,7 +1523,7 @@ simde_math_fpclass(double v, const int imm8) { 2.506628277459239e+00 }; - static const double b[] = { + static const double b[5] = { -5.447609879822406e+01, 1.615858368580409e+02, -1.556989798598866e+02, @@ -1531,7 +1531,7 @@ simde_math_fpclass(double v, const int imm8) { -1.328068155288572e+01 }; - static const double c[] = { + static const double c[6] = { -7.784894002430293e-03, -3.223964580411365e-01, -2.400758277161838e+00, @@ -1540,7 +1540,7 @@ simde_math_fpclass(double v, const int imm8) { 2.938163982698783e+00 }; - static const double d[] = { + static const double d[4] = { 7.784695709041462e-03, 3.224671290700398e-01, 2.445134137142996e+00, @@ -1581,7 +1581,7 @@ simde_math_fpclass(double v, const int imm8) { static HEDLEY_INLINE float simde_math_cdfnorminvf(float p) { - static const float a[] = { + static const float a[6] = { -3.969683028665376e+01f, 2.209460984245205e+02f, -2.759285104469687e+02f, @@ -1589,14 +1589,14 @@ simde_math_fpclass(double v, const int imm8) { -3.066479806614716e+01f, 2.506628277459239e+00f }; - static const float b[] = { + static const float b[5] = { -5.447609879822406e+01f, 1.615858368580409e+02f, -1.556989798598866e+02f, 6.680131188771972e+01f, -1.328068155288572e+01f }; - static const float c[] = { + static const float c[6] = { -7.784894002430293e-03f, -3.223964580411365e-01f, -2.400758277161838e+00f, @@ -1604,7 +1604,7 @@ simde_math_fpclass(double v, const int imm8) { 4.374664141464968e+00f, 2.938163982698783e+00f }; - static const float d[] = { + static const float d[4] = { 7.784695709041462e-03f, 3.224671290700398e-01f, 2.445134137142996e+00f,