From 6f98dcadcbee0d09cf7f29b0b8f2981c58e416f5 Mon Sep 17 00:00:00 2001 From: sanjanadubariya Date: Fri, 20 Mar 2026 17:02:36 +0530 Subject: [PATCH] benchmark: replace static allocation with dynamic allocation in math/base/special Modified C benchmarks to use heap allocation (malloc/free) instead of stack-allocated arrays. Relates to #8643. --- .../base/special/abs/benchmark/c/benchmark.c | 2 +- .../abs/benchmark/c/cephes/benchmark.c | 2 +- .../abs/benchmark/c/native/benchmark.c | 2 +- .../base/special/abs2/benchmark/c/benchmark.c | 8 +- .../abs2/benchmark/c/native/benchmark.c | 8 +- .../special/abs2f/benchmark/c/benchmark.c | 8 +- .../abs2f/benchmark/c/native/benchmark.c | 8 +- .../base/special/absf/benchmark/c/benchmark.c | 8 +- .../absf/benchmark/c/cephes/benchmark.c | 8 +- .../absf/benchmark/c/native/benchmark.c | 8 +- .../benchmark/c/native/benchmark.c | 8 +- .../base/special/acos/benchmark/c/benchmark.c | 8 +- .../acos/benchmark/c/cephes/benchmark.c | 8 +- .../acos/benchmark/c/native/benchmark.c | 8 +- .../acosd/benchmark/c/native/benchmark.c | 8 +- .../acosdf/benchmark/c/native/benchmark.c | 8 +- .../acosf/benchmark/c/native/benchmark.c | 8 +- .../special/acosh/benchmark/c/benchmark.c | 8 +- .../acosh/benchmark/c/cephes/benchmark.c | 8 +- .../acosh/benchmark/c/native/benchmark.c | 8 +- .../special/acoshf/benchmark/c/benchmark.c | 8 +- .../acoshf/benchmark/c/native/benchmark.c | 8 +- .../base/special/acot/benchmark/c/benchmark.c | 8 +- .../acot/benchmark/c/native/benchmark.c | 8 +- .../acotd/benchmark/c/native/benchmark.c | 8 +- .../acotdf/benchmark/c/native/benchmark.c | 8 +- .../acotf/benchmark/c/native/benchmark.c | 8 +- .../special/acoth/benchmark/c/benchmark.c | 8 +- .../acoth/benchmark/c/native/benchmark.c | 8 +- .../special/acothf/benchmark/c/benchmark.c | 8 +- .../acothf/benchmark/c/native/benchmark.c | 8 +- .../special/acovercos/benchmark/c/benchmark.c | 8 +- .../acovercos/benchmark/c/native/benchmark.c | 8 +- .../acovercosf/benchmark/c/native/benchmark.c | 8 +- .../special/acoversin/benchmark/c/benchmark.c | 8 +- .../acoversin/benchmark/c/native/benchmark.c | 8 +- .../acoversinf/benchmark/c/native/benchmark.c | 8 +- .../acsc/benchmark/c/native/benchmark.c | 8 +- .../acscd/benchmark/c/native/benchmark.c | 8 +- .../acscdf/benchmark/c/native/benchmark.c | 8 +- .../acscf/benchmark/c/native/benchmark.c | 8 +- .../acsch/benchmark/c/native/benchmark.c | 8 +- .../special/ahavercos/benchmark/c/benchmark.c | 8 +- .../ahavercos/benchmark/c/native/benchmark.c | 8 +- .../ahavercosf/benchmark/c/benchmark.c | 8 +- .../ahavercosf/benchmark/c/native/benchmark.c | 8 +- .../special/ahaversin/benchmark/c/benchmark.c | 8 +- .../ahaversin/benchmark/c/native/benchmark.c | 8 +- .../ahaversinf/benchmark/c/benchmark.c | 8 +- .../ahaversinf/benchmark/c/native/benchmark.c | 8 +- .../asec/benchmark/c/native/benchmark.c | 8 +- .../asecd/benchmark/c/native/benchmark.c | 2 +- .../asecdf/benchmark/c/native/benchmark.c | 2 +- .../asecf/benchmark/c/native/benchmark.c | 2 +- .../special/asech/benchmark/c/benchmark.c | 2 +- .../asech/benchmark/c/native/benchmark.c | 2 +- .../base/special/asin/benchmark/c/benchmark.c | 2 +- .../asin/benchmark/c/cephes/benchmark.c | 2 +- .../asin/benchmark/c/native/benchmark.c | 2 +- .../asind/benchmark/c/native/benchmark.c | 2 +- .../asindf/benchmark/c/native/benchmark.c | 2 +- .../asinf/benchmark/c/native/benchmark.c | 2 +- .../special/asinh/benchmark/c/benchmark.c | 2 +- .../asinh/benchmark/c/cephes/benchmark.c | 2 +- .../asinh/benchmark/c/native/benchmark.c | 2 +- .../asinhf/benchmark/c/native/benchmark.c | 8 +- .../base/special/atan/benchmark/c/benchmark.c | 2 +- .../atan/benchmark/c/cephes/benchmark.c | 2 +- .../atan/benchmark/c/native/benchmark.c | 2 +- .../special/atan2/benchmark/c/benchmark.c | 2 +- .../atan2/benchmark/c/cephes/benchmark.c | 2 +- .../atan2/benchmark/c/native/benchmark.c | 2 +- .../atan2d/benchmark/c/native/benchmark.c | 14 +- .../special/atan2f/benchmark/c/benchmark.c | 14 +- .../atan2f/benchmark/c/cephes/benchmark.c | 14 +- .../atan2f/benchmark/c/native/benchmark.c | 14 +- .../atand/benchmark/c/native/benchmark.c | 2 +- .../atandf/benchmark/c/native/benchmark.c | 8 +- .../atanf/benchmark/c/native/benchmark.c | 2 +- .../special/atanh/benchmark/c/benchmark.c | 2 +- .../atanh/benchmark/c/cephes/benchmark.c | 2 +- .../atanh/benchmark/c/native/benchmark.c | 2 +- .../special/atanhf/benchmark/c/benchmark.c | 8 +- .../atanhf/benchmark/c/native/benchmark.c | 8 +- .../special/avercos/benchmark/c/benchmark.c | 2 +- .../avercos/benchmark/c/native/benchmark.c | 2 +- .../avercosf/benchmark/c/native/benchmark.c | 8 +- .../special/aversin/benchmark/c/benchmark.c | 2 +- .../aversin/benchmark/c/native/benchmark.c | 2 +- .../aversinf/benchmark/c/native/benchmark.c | 8 +- .../bernoulli/benchmark/c/native/benchmark.c | 8 +- .../bernoullif/benchmark/c/native/benchmark.c | 8 +- .../special/besselj0/benchmark/c/benchmark.c | 8 +- .../besselj0/benchmark/c/cephes/benchmark.c | 8 +- .../besselj0/benchmark/c/native/benchmark.c | 8 +- .../special/besselj1/benchmark/c/benchmark.c | 8 +- .../besselj1/benchmark/c/cephes/benchmark.c | 8 +- .../besselj1/benchmark/c/native/benchmark.c | 8 +- .../special/bessely0/benchmark/c/benchmark.c | 8 +- .../bessely0/benchmark/c/cephes/benchmark.c | 8 +- .../bessely0/benchmark/c/native/benchmark.c | 8 +- .../special/bessely1/benchmark/c/benchmark.c | 8 +- .../bessely1/benchmark/c/cephes/benchmark.c | 8 +- .../bessely1/benchmark/c/native/benchmark.c | 8 +- .../beta/benchmark/c/cephes/benchmark.c | 14 +- .../beta/benchmark/c/native/benchmark.c | 14 +- .../betainc/benchmark/c/cephes/benchmark.c | 20 ++- .../betaincinv/benchmark/c/cephes/benchmark.c | 20 ++- .../betaln/benchmark/c/native/benchmark.c | 14 +- .../special/binet/benchmark/c/benchmark.c | 8 +- .../binet/benchmark/c/native/benchmark.c | 8 +- .../binomcoef/benchmark/c/native/benchmark.c | 14 +- .../binomcoeff/benchmark/c/native/benchmark.c | 14 +- .../benchmark/c/native/benchmark.c | 14 +- .../boxcox/benchmark/c/native/benchmark.c | 14 +- .../boxcox1p/benchmark/c/native/benchmark.c | 14 +- .../benchmark/c/native/benchmark.c | 14 +- .../boxcoxinv/benchmark/c/native/benchmark.c | 14 +- .../base/special/cabs/benchmark/c/benchmark.c | 2 +- .../cabs/benchmark/c/native/benchmark.c | 2 +- .../special/cabs2/benchmark/c/benchmark.c | 2 +- .../cabs2/benchmark/c/native/benchmark.c | 2 +- .../special/cabs2f/benchmark/c/benchmark.c | 2 +- .../cabs2f/benchmark/c/native/benchmark.c | 2 +- .../special/cabsf/benchmark/c/benchmark.c | 2 +- .../cabsf/benchmark/c/native/benchmark.c | 14 +- .../base/special/cbrt/benchmark/c/benchmark.c | 8 +- .../cbrt/benchmark/c/cephes/benchmark.c | 8 +- .../cbrt/benchmark/c/native/benchmark.c | 8 +- .../special/cbrtf/benchmark/c/benchmark.c | 8 +- .../cbrtf/benchmark/c/native/benchmark.c | 8 +- .../special/cceil/benchmark/c/benchmark.c | 8 +- .../cceil/benchmark/c/native/benchmark.c | 8 +- .../special/cceilf/benchmark/c/benchmark.c | 8 +- .../cceilf/benchmark/c/native/benchmark.c | 8 +- .../special/cceiln/benchmark/c/benchmark.c | 2 +- .../cceiln/benchmark/c/native/benchmark.c | 2 +- .../base/special/ccis/benchmark/c/benchmark.c | 14 +- .../ccis/benchmark/c/native/benchmark.c | 14 +- .../base/special/ceil/benchmark/c/benchmark.c | 8 +- .../ceil/benchmark/c/cephes/benchmark.c | 8 +- .../ceil/benchmark/c/native/benchmark.c | 8 +- .../ceil10/benchmark/c/native/benchmark.c | 8 +- .../ceil10/benchmark/c/native/sedLBkAfo | 140 ++++++++++++++++++ .../ceil2/benchmark/c/native/benchmark.c | 8 +- .../ceilb/benchmark/c/native/benchmark.c | 8 +- .../special/ceilf/benchmark/c/benchmark.c | 8 +- .../ceilf/benchmark/c/native/benchmark.c | 8 +- .../ceiln/benchmark/c/native/benchmark.c | 8 +- .../ceilsd/benchmark/c/native/benchmark.c | 8 +- .../base/special/cexp/benchmark/c/benchmark.c | 14 +- .../cexp/benchmark/c/native/benchmark.c | 8 +- .../cflipsign/benchmark/c/native/benchmark.c | 8 +- .../cflipsignf/benchmark/c/native/benchmark.c | 8 +- .../special/cfloor/benchmark/c/benchmark.c | 14 +- .../cfloorf/benchmark/c/native/benchmark.c | 14 +- .../cfloorn/benchmark/c/native/benchmark.c | 8 +- .../base/special/cinv/benchmark/c/benchmark.c | 14 +- .../cinv/benchmark/c/native/benchmark.c | 8 +- .../special/cinvf/benchmark/c/benchmark.c | 14 +- .../cinvf/benchmark/c/native/benchmark.c | 14 +- .../special/clamp/benchmark/c/benchmark.c | 8 +- .../clamp/benchmark/c/native/benchmark.c | 8 +- .../special/clampf/benchmark/c/benchmark.c | 8 +- .../clampf/benchmark/c/native/benchmark.c | 8 +- .../special/copysign/benchmark/c/benchmark.c | 14 +- .../copysign/benchmark/c/native/benchmark.c | 14 +- .../special/copysignf/benchmark/c/benchmark.c | 14 +- .../copysignf/benchmark/c/native/benchmark.c | 14 +- .../base/special/cos/benchmark/c/benchmark.c | 8 +- .../cos/benchmark/c/cephes/benchmark.c | 8 +- .../cos/benchmark/c/native/benchmark.c | 8 +- .../cosd/benchmark/c/native/benchmark.c | 8 +- .../cosdf/benchmark/c/native/benchmark.c | 8 +- .../base/special/cosf/benchmark/c/benchmark.c | 8 +- .../cosf/benchmark/c/cephes/benchmark.c | 8 +- .../cosf/benchmark/c/native/benchmark.c | 8 +- .../base/special/cosh/benchmark/c/benchmark.c | 8 +- .../cosh/benchmark/c/cephes/benchmark.c | 8 +- .../cosh/benchmark/c/native/benchmark.c | 8 +- .../special/coshf/benchmark/c/benchmark.c | 8 +- .../coshf/benchmark/c/cephes/benchmark.c | 8 +- .../coshf/benchmark/c/native/benchmark.c | 8 +- .../cosm1/benchmark/c/cephes/benchmark.c | 8 +- .../cosm1/benchmark/c/native/benchmark.c | 8 +- .../cosm1f/benchmark/c/native/benchmark.c | 8 +- .../cospi/benchmark/c/native/benchmark.c | 8 +- .../cospif/benchmark/c/native/benchmark.c | 8 +- .../cot/benchmark/c/native/benchmark.c | 8 +- .../cotd/benchmark/c/native/benchmark.c | 8 +- .../cotdf/benchmark/c/native/benchmark.c | 8 +- .../cotf/benchmark/c/native/benchmark.c | 8 +- .../coth/benchmark/c/native/benchmark.c | 8 +- .../special/covercos/benchmark/c/benchmark.c | 8 +- .../covercos/benchmark/c/native/benchmark.c | 8 +- .../special/covercosf/benchmark/c/benchmark.c | 8 +- .../covercosf/benchmark/c/native/benchmark.c | 8 +- .../special/coversin/benchmark/c/benchmark.c | 8 +- .../coversin/benchmark/c/native/benchmark.c | 8 +- .../special/coversinf/benchmark/c/benchmark.c | 8 +- .../coversinf/benchmark/c/native/benchmark.c | 8 +- .../special/cphase/benchmark/c/benchmark.c | 14 +- .../cphase/benchmark/c/native/benchmark.c | 14 +- .../special/cphasef/benchmark/c/benchmark.c | 14 +- .../cphasef/benchmark/c/native/benchmark.c | 14 +- .../cpolar/benchmark/c/native/benchmark.c | 2 +- .../cpolarf/benchmark/c/native/benchmark.c | 2 +- .../special/cround/benchmark/c/benchmark.c | 14 +- .../cround/benchmark/c/native/benchmark.c | 8 +- .../special/croundf/benchmark/c/benchmark.c | 14 +- .../croundf/benchmark/c/native/benchmark.c | 8 +- .../croundn/benchmark/c/native/benchmark.c | 2 +- .../csc/benchmark/c/native/benchmark.c | 8 +- .../cscd/benchmark/c/native/benchmark.c | 8 +- .../cscdf/benchmark/c/native/benchmark.c | 8 +- .../cscf/benchmark/c/native/benchmark.c | 8 +- .../csch/benchmark/c/native/benchmark.c | 8 +- .../csignum/benchmark/c/native/benchmark.c | 2 +- .../csignumf/benchmark/c/native/benchmark.c | 2 +- .../special/deg2rad/benchmark/c/benchmark.c | 2 +- .../deg2rad/benchmark/c/native/benchmark.c | 2 +- .../special/deg2radf/benchmark/c/benchmark.c | 2 +- .../deg2radf/benchmark/c/native/benchmark.c | 2 +- .../digamma/benchmark/c/cephes/benchmark.c | 2 +- .../digamma/benchmark/c/native/benchmark.c | 2 +- .../dirac-delta/benchmark/c/benchmark.c | 2 +- .../benchmark/c/native/benchmark.c | 2 +- .../dirac-deltaf/benchmark/c/benchmark.c | 2 +- .../benchmark/c/native/benchmark.c | 8 +- .../benchmark/c/native/benchmark.c | 8 +- .../ellipe/benchmark/c/native/benchmark.c | 2 +- .../ellipj/benchmark/c/native/benchmark.c | 8 +- .../ellipk/benchmark/c/native/benchmark.c | 2 +- .../base/special/erf/benchmark/c/benchmark.c | 8 +- .../erf/benchmark/c/cephes/benchmark.c | 8 +- .../erf/benchmark/c/native/benchmark.c | 8 +- .../base/special/erfc/benchmark/c/benchmark.c | 8 +- .../erfc/benchmark/c/cephes/benchmark.c | 8 +- .../erfc/benchmark/c/native/benchmark.c | 8 +- .../erfcinv/benchmark/c/native/benchmark.c | 8 +- .../erfcx/benchmark/c/native/benchmark.c | 8 +- .../erfinv/benchmark/c/native/benchmark.c | 8 +- .../base/special/exp/benchmark/c/benchmark.c | 8 +- .../exp/benchmark/c/cephes/benchmark.c | 8 +- .../exp/benchmark/c/native/benchmark.c | 8 +- .../exp10/benchmark/c/cephes/benchmark.c | 2 +- .../exp10/benchmark/c/native/benchmark.c | 2 +- .../base/special/exp2/benchmark/c/benchmark.c | 8 +- .../exp2/benchmark/c/cephes/benchmark.c | 8 +- .../exp2/benchmark/c/native/benchmark.c | 8 +- .../special/expit/benchmark/c/benchmark.c | 2 +- .../expit/benchmark/c/native/benchmark.c | 2 +- .../special/expm1/benchmark/c/benchmark.c | 2 +- .../expm1/benchmark/c/cephes/benchmark.c | 2 +- .../expm1/benchmark/c/native/benchmark.c | 2 +- .../expm1rel/benchmark/c/native/benchmark.c | 2 +- .../factorial/benchmark/c/cephes/benchmark.c | 2 +- .../factorial/benchmark/c/native/benchmark.c | 2 +- .../factorial2/benchmark/c/native/benchmark.c | 2 +- .../benchmark/c/native/benchmark.c | 8 +- .../factorialln/benchmark/c/benchmark.c | 2 +- .../benchmark/c/native/benchmark.c | 2 +- .../benchmark/c/native/benchmark.c | 8 +- .../benchmark/c/native/benchmark.c | 8 +- .../fast/abs/benchmark/c/native/benchmark.c | 8 +- .../fast/absf/benchmark/c/native/benchmark.c | 8 +- .../fast/acosh/benchmark/c/native/benchmark.c | 8 +- .../benchmark/c/native/benchmark.c | 2 +- .../fast/asinh/benchmark/c/native/benchmark.c | 8 +- .../fast/atanh/benchmark/c/native/benchmark.c | 8 +- .../atanhf/benchmark/c/native/benchmark.c | 4 +- .../fast/hypot/benchmark/c/native/benchmark.c | 8 +- .../hypotf/benchmark/c/native/benchmark.c | 2 +- .../fast/max/benchmark/c/native/benchmark.c | 8 +- .../fast/maxf/benchmark/c/native/benchmark.c | 2 +- .../fast/min/benchmark/c/native/benchmark.c | 8 +- .../fast/minf/benchmark/c/native/benchmark.c | 2 +- .../pow-int/benchmark/c/native/benchmark.c | 2 +- .../benchmark/c/native/benchmark.c | 2 +- .../benchmark/c/native/benchmark.c | 2 +- .../fibonacci-index/benchmark/c/benchmark.c | 2 +- .../benchmark/c/native/benchmark.c | 8 +- .../fibonacci-indexf/benchmark/c/benchmark.c | 2 +- .../benchmark/c/native/benchmark.c | 2 +- .../special/fibonacci/benchmark/c/benchmark.c | 2 +- .../fibonacci/benchmark/c/native/benchmark.c | 8 +- .../fibonaccif/benchmark/c/benchmark.c | 2 +- .../fibonaccif/benchmark/c/native/benchmark.c | 2 +- .../flipsign/benchmark/c/native/benchmark.c | 8 +- .../flipsignf/benchmark/c/native/benchmark.c | 2 +- .../special/floor/benchmark/c/benchmark.c | 8 +- .../floor/benchmark/c/cephes/benchmark.c | 8 +- .../floor/benchmark/c/native/benchmark.c | 8 +- .../floor10/benchmark/c/native/benchmark.c | 8 +- .../floor2/benchmark/c/native/benchmark.c | 8 +- .../floor2f/benchmark/c/native/benchmark.c | 2 +- .../floorb/benchmark/c/native/benchmark.c | 8 +- .../special/floorf/benchmark/c/benchmark.c | 2 +- .../floorf/benchmark/c/cephes/benchmark.c | 2 +- .../floorf/benchmark/c/native/benchmark.c | 2 +- .../floorn/benchmark/c/native/benchmark.c | 8 +- .../floornf/benchmark/c/native/benchmark.c | 2 +- .../floorsd/benchmark/c/native/benchmark.c | 8 +- .../fmod/benchmark/c/native/benchmark.c | 8 +- .../fmodf/benchmark/c/native/benchmark.c | 2 +- .../fresnel/benchmark/c/cephes/benchmark.c | 4 +- .../fresnel/benchmark/c/native/benchmark.c | 2 +- .../fresnelc/benchmark/c/cephes/benchmark.c | 4 +- .../fresnelc/benchmark/c/native/benchmark.c | 2 +- .../fresnels/benchmark/c/cephes/benchmark.c | 4 +- .../fresnels/benchmark/c/native/benchmark.c | 2 +- .../special/frexp/benchmark/c/benchmark.c | 2 +- .../frexp/benchmark/c/cephes/benchmark.c | 3 +- .../frexp/benchmark/c/native/benchmark.c | 2 +- .../special/frexpf/benchmark/c/benchmark.c | 2 +- .../frexpf/benchmark/c/cephes/benchmark.c | 3 +- .../frexpf/benchmark/c/native/benchmark.c | 2 +- .../benchmark/c/native/benchmark.c | 8 +- .../benchmark/c/native/benchmark.c | 8 +- .../benchmark/c/native/benchmark.c | 2 +- .../benchmark/c/native/benchmark.c | 8 +- .../special/gamma/benchmark/c/benchmark.c | 8 +- .../gamma/benchmark/c/cephes/benchmark.c | 8 +- .../gamma/benchmark/c/native/benchmark.c | 8 +- .../gamma1pm1/benchmark/c/native/benchmark.c | 8 +- .../gammainc/benchmark/c/cephes/benchmark.c | 16 +- .../gammainc/benchmark/c/native/benchmark.c | 8 +- .../benchmark/c/cephes/benchmark.c | 8 +- .../special/gammaln/benchmark/c/benchmark.c | 8 +- .../gammaln/benchmark/c/cephes/benchmark.c | 8 +- .../gammaln/benchmark/c/native/benchmark.c | 8 +- .../gammasgn/benchmark/c/native/benchmark.c | 8 +- .../gammasgnf/benchmark/c/native/benchmark.c | 2 +- .../gcd/benchmark/c/native/benchmark.c | 2 +- .../gcdf/benchmark/c/native/benchmark.c | 2 +- .../hacovercos/benchmark/c/benchmark.c | 8 +- .../hacovercos/benchmark/c/native/benchmark.c | 8 +- .../hacovercosf/benchmark/c/benchmark.c | 2 +- .../benchmark/c/native/benchmark.c | 2 +- .../hacoversin/benchmark/c/benchmark.c | 8 +- .../hacoversin/benchmark/c/native/benchmark.c | 8 +- .../hacoversinf/benchmark/c/benchmark.c | 2 +- .../benchmark/c/native/benchmark.c | 2 +- .../special/havercos/benchmark/c/benchmark.c | 8 +- .../havercos/benchmark/c/native/benchmark.c | 8 +- .../special/havercosf/benchmark/c/benchmark.c | 2 +- .../havercosf/benchmark/c/native/benchmark.c | 2 +- .../special/haversin/benchmark/c/benchmark.c | 8 +- .../haversin/benchmark/c/native/benchmark.c | 8 +- .../special/haversinf/benchmark/c/benchmark.c | 2 +- .../haversinf/benchmark/c/native/benchmark.c | 2 +- .../special/heaviside/benchmark/c/benchmark.c | 8 +- .../heaviside/benchmark/c/native/benchmark.c | 8 +- .../heavisidef/benchmark/c/benchmark.c | 2 +- .../heavisidef/benchmark/c/native/benchmark.c | 2 +- .../special/hyp2f1/benchmark/c/benchmark.c | 8 +- .../special/hypot/benchmark/c/benchmark.c | 2 +- .../hypot/benchmark/c/native/benchmark.c | 8 +- .../special/hypotf/benchmark/c/benchmark.c | 2 +- .../hypotf/benchmark/c/native/benchmark.c | 2 +- .../base/special/inv/benchmark/c/benchmark.c | 8 +- .../inv/benchmark/c/native/benchmark.c | 8 +- .../base/special/invf/benchmark/c/benchmark.c | 2 +- .../invf/benchmark/c/native/benchmark.c | 2 +- .../kernel-cos/benchmark/c/native/benchmark.c | 2 +- .../benchmark/c/native/benchmark.c | 8 +- .../benchmark/c/native/benchmark.c | 2 +- .../benchmark/c/native/benchmark.c | 2 +- .../kernel-sin/benchmark/c/native/benchmark.c | 2 +- .../benchmark/c/native/benchmark.c | 8 +- .../benchmark/c/native/benchmark.c | 8 +- .../benchmark/c/native/benchmark.c | 8 +- .../kernel-tan/benchmark/c/native/benchmark.c | 8 +- .../benchmark/c/native/benchmark.c | 8 +- .../kronecker-delta/benchmark/c/benchmark.c | 2 +- .../benchmark/c/native/benchmark.c | 2 +- .../kronecker-deltaf/benchmark/c/benchmark.c | 2 +- .../benchmark/c/native/benchmark.c | 2 +- .../labs/benchmark/c/native/benchmark.c | 2 +- .../lcm/benchmark/c/native/benchmark.c | 8 +- .../lcmf/benchmark/c/native/benchmark.c | 8 +- .../special/ldexp/benchmark/c/benchmark.c | 8 +- .../ldexp/benchmark/c/cephes/benchmark.c | 8 +- .../ldexp/benchmark/c/native/benchmark.c | 8 +- .../ldexpf/benchmark/c/native/benchmark.c | 8 +- .../base/special/ln/benchmark/c/benchmark.c | 5 +- .../special/ln/benchmark/c/cephes/benchmark.c | 5 +- .../special/ln/benchmark/c/native/benchmark.c | 5 +- .../lnf/benchmark/c/native/benchmark.c | 5 +- .../special/lnf/benchmark/c/native/sedtqFxPz | 137 +++++++++++++++++ .../base/special/log/benchmark/c/benchmark.c | 2 +- .../log/benchmark/c/native/benchmark.c | 2 +- .../special/log10/benchmark/c/benchmark.c | 5 +- .../log10/benchmark/c/cephes/benchmark.c | 5 +- .../log10/benchmark/c/native/benchmark.c | 5 +- .../special/log1mexp/benchmark/c/benchmark.c | 5 +- .../log1mexp/benchmark/c/native/benchmark.c | 5 +- .../special/log1p/benchmark/c/benchmark.c | 5 +- .../log1p/benchmark/c/cephes/benchmark.c | 5 +- .../log1p/benchmark/c/native/benchmark.c | 5 +- .../special/log1pexp/benchmark/c/benchmark.c | 5 +- .../log1pexp/benchmark/c/native/benchmark.c | 5 +- .../log1pf/benchmark/c/native/benchmark.c | 5 +- .../special/log1pmx/benchmark/c/benchmark.c | 5 +- .../log1pmx/benchmark/c/native/benchmark.c | 5 +- .../base/special/log2/benchmark/c/benchmark.c | 5 +- .../log2/benchmark/c/cephes/benchmark.c | 5 +- .../log2/benchmark/c/native/benchmark.c | 5 +- .../special/logaddexp/benchmark/c/benchmark.c | 8 +- .../logaddexp/benchmark/c/native/benchmark.c | 8 +- .../logf/benchmark/c/native/benchmark.c | 8 +- .../special/logit/benchmark/c/benchmark.c | 2 +- .../logit/benchmark/c/native/benchmark.c | 2 +- .../special/logitf/benchmark/c/benchmark.c | 5 +- .../logitf/benchmark/c/native/benchmark.c | 5 +- .../special/lucas/benchmark/c/benchmark.c | 2 +- .../lucas/benchmark/c/native/benchmark.c | 2 +- .../special/lucasf/benchmark/c/benchmark.c | 5 +- .../lucasf/benchmark/c/native/benchmark.c | 5 +- .../base/special/max/benchmark/c/benchmark.c | 8 +- .../max/benchmark/c/native/benchmark.c | 8 +- .../special/maxabs/benchmark/c/benchmark.c | 8 +- .../maxabs/benchmark/c/native/benchmark.c | 8 +- .../maxabsf/benchmark/c/native/benchmark.c | 8 +- .../special/maxabsn/benchmark/c/benchmark.c | 8 +- .../maxf/benchmark/c/native/benchmark.c | 8 +- .../base/special/maxn/benchmark/c/benchmark.c | 8 +- .../base/special/min/benchmark/c/benchmark.c | 8 +- .../min/benchmark/c/native/benchmark.c | 8 +- .../special/minabs/benchmark/c/benchmark.c | 8 +- .../minabs/benchmark/c/native/benchmark.c | 9 +- .../minabsf/benchmark/c/native/benchmark.c | 8 +- .../special/minabsn/benchmark/c/benchmark.c | 8 +- .../minf/benchmark/c/native/benchmark.c | 8 +- .../minmax/benchmark/c/native/benchmark.c | 8 +- .../minmaxabs/benchmark/c/native/benchmark.c | 8 +- .../minmaxabsf/benchmark/c/native/benchmark.c | 8 +- .../minmaxf/benchmark/c/native/benchmark.c | 9 +- .../base/special/minn/benchmark/c/benchmark.c | 8 +- .../base/special/modf/benchmark/c/benchmark.c | 5 +- .../modf/benchmark/c/native/benchmark.c | 5 +- .../special/modff/benchmark/c/benchmark.c | 5 +- .../modff/benchmark/c/native/benchmark.c | 6 +- .../nanmax/benchmark/c/native/benchmark.c | 10 +- .../nanmaxf/benchmark/c/native/benchmark.c | 10 +- .../nanmin/benchmark/c/native/benchmark.c | 10 +- .../nanminf/benchmark/c/native/benchmark.c | 10 +- .../negafibonacci/benchmark/c/benchmark.c | 6 +- .../benchmark/c/native/benchmark.c | 6 +- .../negafibonaccif/benchmark/c/benchmark.c | 6 +- .../benchmark/c/native/benchmark.c | 7 +- .../special/negalucas/benchmark/c/benchmark.c | 6 +- .../negalucas/benchmark/c/native/benchmark.c | 6 +- .../negalucasf/benchmark/c/benchmark.c | 6 +- .../negalucasf/benchmark/c/native/benchmark.c | 7 +- .../benchmark/c/native/benchmark.c | 6 +- .../benchmark/c/native/benchmark.c | 6 +- .../special/pdiff/benchmark/c/benchmark.c | 10 +- .../pdiff/benchmark/c/native/benchmark.c | 10 +- .../special/pdifff/benchmark/c/benchmark.c | 10 +- .../pdifff/benchmark/c/native/benchmark.c | 10 +- .../base/special/pow/benchmark/c/benchmark.c | 10 +- .../pow/benchmark/c/cephes/benchmark.c | 10 +- .../pow/benchmark/c/native/benchmark.c | 10 +- .../base/special/powf/benchmark/c/benchmark.c | 10 +- .../powf/benchmark/c/native/benchmark.c | 10 +- .../powm1/benchmark/c/native/benchmark.c | 10 +- .../special/rad2deg/benchmark/c/benchmark.c | 6 +- .../rad2deg/benchmark/c/native/benchmark.c | 6 +- .../rad2degf/benchmark/c/native/benchmark.c | 6 +- .../base/special/ramp/benchmark/c/benchmark.c | 6 +- .../ramp/benchmark/c/native/benchmark.c | 7 +- .../special/rampf/benchmark/c/benchmark.c | 6 +- .../rampf/benchmark/c/native/benchmark.c | 6 +- .../special/rcbrt/benchmark/c/benchmark.c | 6 +- .../rcbrt/benchmark/c/cephes/benchmark.c | 6 +- .../rcbrt/benchmark/c/native/benchmark.c | 6 +- .../rcbrtf/benchmark/c/native/benchmark.c | 6 +- .../rempio2/benchmark/c/native/benchmark.c | 6 +- .../rempio2f/benchmark/c/native/benchmark.c | 6 +- .../benchmark/c/cephes/benchmark.c | 2 +- .../benchmark/c/native/benchmark.c | 6 +- .../benchmark/c/native/benchmark.c | 9 +- .../benchmark/c/native/benchmark.c | 6 +- .../special/round/benchmark/c/benchmark.c | 8 +- .../round/benchmark/c/cephes/benchmark.c | 6 +- .../round/benchmark/c/native/benchmark.c | 6 +- .../round10/benchmark/c/native/benchmark.c | 6 +- .../round2/benchmark/c/native/benchmark.c | 6 +- .../roundb/benchmark/c/native/benchmark.c | 6 +- .../roundf/benchmark/c/native/benchmark.c | 11 +- .../roundn/benchmark/c/native/benchmark.c | 11 +- .../roundnf/benchmark/c/native/benchmark.c | 10 +- .../roundsd/benchmark/c/native/benchmark.c | 6 +- .../special/rsqrt/benchmark/c/benchmark.c | 6 +- .../rsqrt/benchmark/c/cephes/benchmark.c | 11 +- .../rsqrt/benchmark/c/native/benchmark.c | 6 +- .../special/rsqrtf/benchmark/c/benchmark.c | 11 +- .../rsqrtf/benchmark/c/native/benchmark.c | 11 +- .../sec/benchmark/c/native/benchmark.c | 11 +- .../secd/benchmark/c/native/benchmark.c | 11 +- .../secdf/benchmark/c/native/benchmark.c | 11 +- .../secf/benchmark/c/native/benchmark.c | 11 +- .../sech/benchmark/c/native/benchmark.c | 11 +- .../sici/benchmark/c/cephes/benchmark.c | 9 +- .../special/signum/benchmark/c/benchmark.c | 6 +- .../signum/benchmark/c/cephes/benchmark.c | 6 +- .../signum/benchmark/c/native/benchmark.c | 6 +- .../special/signumf/benchmark/c/benchmark.c | 12 +- .../signumf/benchmark/c/native/benchmark.c | 12 +- .../base/special/sin/benchmark/c/benchmark.c | 11 +- .../sin/benchmark/c/cephes/benchmark.c | 12 +- .../sin/benchmark/c/native/benchmark.c | 11 +- .../sinc/benchmark/c/native/benchmark.c | 8 +- .../sincf/benchmark/c/native/benchmark.c | 2 +- .../special/sincos/benchmark/c/benchmark.c | 8 +- .../sincos/benchmark/c/cephes/benchmark.c | 10 +- .../sincos/benchmark/c/native/benchmark.c | 8 +- .../sincosd/benchmark/c/native/benchmark.c | 8 +- .../sincosdf/benchmark/c/native/benchmark.c | 2 +- .../sincosf/benchmark/c/native/benchmark.c | 2 +- .../special/sincospi/benchmark/c/benchmark.c | 8 +- .../sincospi/benchmark/c/native/benchmark.c | 8 +- .../sind/benchmark/c/native/benchmark.c | 8 +- .../sindf/benchmark/c/native/benchmark.c | 2 +- .../base/special/sinf/benchmark/c/benchmark.c | 2 +- .../sinf/benchmark/c/cephes/benchmark.c | 2 +- .../sinf/benchmark/c/native/benchmark.c | 2 +- .../base/special/sinh/benchmark/c/benchmark.c | 8 +- .../sinh/benchmark/c/cephes/benchmark.c | 8 +- .../sinh/benchmark/c/native/benchmark.c | 8 +- .../sinpi/benchmark/c/native/benchmark.c | 8 +- .../sinpif/benchmark/c/native/benchmark.c | 2 +- .../spence/benchmark/c/cephes/benchmark.c | 8 +- .../spence/benchmark/c/native/benchmark.c | 8 +- .../spencef/benchmark/c/native/benchmark.c | 2 +- .../base/special/sqrt/benchmark/c/benchmark.c | 8 +- .../sqrt/benchmark/c/cephes/benchmark.c | 8 +- .../sqrt/benchmark/c/native/benchmark.c | 8 +- .../sqrt1pm1/benchmark/c/native/benchmark.c | 8 +- .../special/sqrtf/benchmark/c/benchmark.c | 2 +- .../sqrtf/benchmark/c/native/benchmark.c | 2 +- .../sqrtpi/benchmark/c/native/benchmark.c | 8 +- .../special/sqrtpif/benchmark/c/benchmark.c | 2 +- .../base/special/tan/benchmark/c/benchmark.c | 8 +- .../tan/benchmark/c/cephes/benchmark.c | 8 +- .../tan/benchmark/c/native/benchmark.c | 8 +- .../tand/benchmark/c/native/benchmark.c | 8 +- .../tandf/benchmark/c/native/benchmark.c | 2 +- .../base/special/tanf/benchmark/c/benchmark.c | 2 +- .../tanf/benchmark/c/cephes/benchmark.c | 2 +- .../tanf/benchmark/c/native/benchmark.c | 2 +- .../base/special/tanh/benchmark/c/benchmark.c | 8 +- .../tanh/benchmark/c/cephes/benchmark.c | 8 +- .../tanh/benchmark/c/native/benchmark.c | 8 +- .../tribonacci/benchmark/c/benchmark.c | 2 +- .../tribonacci/benchmark/c/native/benchmark.c | 8 +- .../tribonaccif/benchmark/c/benchmark.c | 2 +- .../benchmark/c/native/benchmark.c | 2 +- .../trigamma/benchmark/c/native/benchmark.c | 8 +- .../trigammaf/benchmark/c/native/benchmark.c | 2 +- .../special/trunc/benchmark/c/benchmark.c | 8 +- .../trunc/benchmark/c/native/benchmark.c | 8 +- .../trunc10/benchmark/c/native/benchmark.c | 8 +- .../trunc2/benchmark/c/native/benchmark.c | 8 +- .../truncb/benchmark/c/native/benchmark.c | 8 +- .../special/truncf/benchmark/c/benchmark.c | 2 +- .../truncf/benchmark/c/native/benchmark.c | 2 +- .../truncn/benchmark/c/native/benchmark.c | 2 +- .../truncsd/benchmark/c/native/benchmark.c | 8 +- .../special/vercos/benchmark/c/benchmark.c | 8 +- .../vercos/benchmark/c/native/benchmark.c | 8 +- .../special/vercosf/benchmark/c/benchmark.c | 2 +- .../vercosf/benchmark/c/native/benchmark.c | 2 +- .../special/versin/benchmark/c/benchmark.c | 8 +- .../versin/benchmark/c/native/benchmark.c | 8 +- .../special/versinf/benchmark/c/benchmark.c | 2 +- .../versinf/benchmark/c/native/benchmark.c | 2 +- .../base/special/wrap/benchmark/c/benchmark.c | 8 +- .../wrap/benchmark/c/native/benchmark.c | 8 +- .../special/wrapf/benchmark/c/benchmark.c | 2 +- .../wrapf/benchmark/c/native/benchmark.c | 2 +- .../xlog1py/benchmark/c/native/benchmark.c | 8 +- .../xlogy/benchmark/c/native/benchmark.c | 8 +- .../xlogyf/benchmark/c/native/benchmark.c | 2 +- .../base/buffer-ctors/benchmark/benchmark.js | 9 +- 586 files changed, 3027 insertions(+), 1087 deletions(-) create mode 100644 lib/node_modules/@stdlib/math/base/special/ceil10/benchmark/c/native/sedLBkAfo create mode 100644 lib/node_modules/@stdlib/math/base/special/lnf/benchmark/c/native/sedtqFxPz diff --git a/lib/node_modules/@stdlib/math/base/special/abs/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/abs/benchmark/c/benchmark.c index f31e1edd0796..3eaf08ccbabf 100644 --- a/lib/node_modules/@stdlib/math/base/special/abs/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/abs/benchmark/c/benchmark.c @@ -108,7 +108,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/abs/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/abs/benchmark/c/cephes/benchmark.c index a5a202f527f4..ab1e46f9cc37 100644 --- a/lib/node_modules/@stdlib/math/base/special/abs/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/abs/benchmark/c/cephes/benchmark.c @@ -113,7 +113,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/abs/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/abs/benchmark/c/native/benchmark.c index 496ab215da55..ae9ba7f57cbf 100644 --- a/lib/node_modules/@stdlib/math/base/special/abs/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/abs/benchmark/c/native/benchmark.c @@ -109,7 +109,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/abs2/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/abs2/benchmark/c/benchmark.c index 5e2d574466ff..136e97f89103 100644 --- a/lib/node_modules/@stdlib/math/base/special/abs2/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/abs2/benchmark/c/benchmark.c @@ -99,7 +99,10 @@ double abs2( double x ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -121,7 +124,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/abs2/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/abs2/benchmark/c/native/benchmark.c index 2e8e004df0ae..21faa52cfe99 100644 --- a/lib/node_modules/@stdlib/math/base/special/abs2/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/abs2/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/abs2f/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/abs2f/benchmark/c/benchmark.c index 644e0cfc33f3..0010cd44f797 100644 --- a/lib/node_modules/@stdlib/math/base/special/abs2f/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/abs2f/benchmark/c/benchmark.c @@ -99,7 +99,10 @@ float abs2f( float x ) { * @return elapsed time in seconds */ static double benchmark( void ) { - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double t; float y; @@ -121,7 +124,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/abs2f/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/abs2f/benchmark/c/native/benchmark.c index 1153a7e6f904..1d11249f8ea7 100644 --- a/lib/node_modules/@stdlib/math/base/special/abs2f/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/abs2f/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static float rand_float( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double t; float y; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/absf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/absf/benchmark/c/benchmark.c index 33273acf0f82..632bb2edab33 100644 --- a/lib/node_modules/@stdlib/math/base/special/absf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/absf/benchmark/c/benchmark.c @@ -89,7 +89,10 @@ static float rand_float( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double t; float y; @@ -111,7 +114,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/absf/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/absf/benchmark/c/cephes/benchmark.c index 769bfa4e7ea3..50edb6c5b10e 100644 --- a/lib/node_modules/@stdlib/math/base/special/absf/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/absf/benchmark/c/cephes/benchmark.c @@ -94,7 +94,10 @@ static float rand_float( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double t; float y; @@ -116,7 +119,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/absf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/absf/benchmark/c/native/benchmark.c index 316779dcde00..ddd4270796c2 100644 --- a/lib/node_modules/@stdlib/math/base/special/absf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/absf/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static float rand_float( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double t; float y; @@ -113,7 +116,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/absgammalnf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/absgammalnf/benchmark/c/native/benchmark.c index df63104e74ab..b4668fcdd584 100644 --- a/lib/node_modules/@stdlib/math/base/special/absgammalnf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/absgammalnf/benchmark/c/native/benchmark.c @@ -92,7 +92,10 @@ static float random_uniform( const float min, const float max ) { * @return elapsed time in seconds */ static double benchmark( void ) { - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double t; float y; @@ -114,7 +117,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/acos/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/acos/benchmark/c/benchmark.c index 69b01ca7bd06..632887abf1a8 100644 --- a/lib/node_modules/@stdlib/math/base/special/acos/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/acos/benchmark/c/benchmark.c @@ -89,7 +89,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -111,7 +114,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/acos/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/acos/benchmark/c/cephes/benchmark.c index 57a81dd626f4..01d41b2a5f51 100644 --- a/lib/node_modules/@stdlib/math/base/special/acos/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/acos/benchmark/c/cephes/benchmark.c @@ -94,7 +94,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -116,7 +119,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/acos/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/acos/benchmark/c/native/benchmark.c index 48550b071cc1..6e1e567d2a2a 100644 --- a/lib/node_modules/@stdlib/math/base/special/acos/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/acos/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/acosd/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/acosd/benchmark/c/native/benchmark.c index 04a9fce34470..93846dd80639 100644 --- a/lib/node_modules/@stdlib/math/base/special/acosd/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/acosd/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/acosdf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/acosdf/benchmark/c/native/benchmark.c index 1c7cb0035c2c..dff5f22c2072 100644 --- a/lib/node_modules/@stdlib/math/base/special/acosdf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/acosdf/benchmark/c/native/benchmark.c @@ -92,7 +92,10 @@ static float rand_float( void ) { static double benchmark( void ) { double elapsed; double t; - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } float y; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/acosf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/acosf/benchmark/c/native/benchmark.c index 01cd1d134568..3272e9096e63 100644 --- a/lib/node_modules/@stdlib/math/base/special/acosf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/acosf/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static float rand_float( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double t; float y; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/acosh/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/acosh/benchmark/c/benchmark.c index 2768bde67c6e..316616f768b2 100644 --- a/lib/node_modules/@stdlib/math/base/special/acosh/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/acosh/benchmark/c/benchmark.c @@ -89,7 +89,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -111,7 +114,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/acosh/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/acosh/benchmark/c/cephes/benchmark.c index f7483cc039bf..0a1a2f95880d 100644 --- a/lib/node_modules/@stdlib/math/base/special/acosh/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/acosh/benchmark/c/cephes/benchmark.c @@ -94,7 +94,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -116,7 +119,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/acosh/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/acosh/benchmark/c/native/benchmark.c index d357d82908c8..936d03d668cf 100644 --- a/lib/node_modules/@stdlib/math/base/special/acosh/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/acosh/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/acoshf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/acoshf/benchmark/c/benchmark.c index 55513532b8ee..e384d6693e81 100644 --- a/lib/node_modules/@stdlib/math/base/special/acoshf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/acoshf/benchmark/c/benchmark.c @@ -92,7 +92,10 @@ static float random_uniform( const float min, const float max ) { */ static double benchmark( void ) { double elapsed; - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } double t; float y; int i; @@ -113,7 +116,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/acoshf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/acoshf/benchmark/c/native/benchmark.c index efe02a892ebb..e2f1623dc11e 100644 --- a/lib/node_modules/@stdlib/math/base/special/acoshf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/acoshf/benchmark/c/native/benchmark.c @@ -92,7 +92,10 @@ static float random_uniform( const float min, const float max ) { * @return elapsed time in seconds */ static double benchmark( void ) { - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double t; float y; @@ -114,7 +117,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/acot/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/acot/benchmark/c/benchmark.c index d6e025ad079c..1a52e619072a 100644 --- a/lib/node_modules/@stdlib/math/base/special/acot/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/acot/benchmark/c/benchmark.c @@ -89,7 +89,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -111,7 +114,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/acot/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/acot/benchmark/c/native/benchmark.c index 2910654b6aaf..abe07b0f2a5a 100644 --- a/lib/node_modules/@stdlib/math/base/special/acot/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/acot/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/acotd/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/acotd/benchmark/c/native/benchmark.c index 5da93c73ca13..39e955fb9247 100644 --- a/lib/node_modules/@stdlib/math/base/special/acotd/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/acotd/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/acotdf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/acotdf/benchmark/c/native/benchmark.c index 386dd98f889a..2dc7a09145dc 100644 --- a/lib/node_modules/@stdlib/math/base/special/acotdf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/acotdf/benchmark/c/native/benchmark.c @@ -92,7 +92,10 @@ static float rand_float( void ) { static double benchmark( void ) { double elapsed; double t; - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } float y; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/acotf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/acotf/benchmark/c/native/benchmark.c index 67ae0ca26ea1..6f2c9c7a2933 100644 --- a/lib/node_modules/@stdlib/math/base/special/acotf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/acotf/benchmark/c/native/benchmark.c @@ -92,7 +92,10 @@ static float rand_float( void ) { static double benchmark( void ) { double elapsed; double t; - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } float y; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/acoth/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/acoth/benchmark/c/benchmark.c index 1cc88e6f4bdd..4bc57db0f8e1 100644 --- a/lib/node_modules/@stdlib/math/base/special/acoth/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/acoth/benchmark/c/benchmark.c @@ -89,7 +89,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -111,7 +114,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/acoth/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/acoth/benchmark/c/native/benchmark.c index b8b116282649..5732243ebd1c 100644 --- a/lib/node_modules/@stdlib/math/base/special/acoth/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/acoth/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/acothf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/acothf/benchmark/c/benchmark.c index 2b765bffe6b0..546461a30c8e 100644 --- a/lib/node_modules/@stdlib/math/base/special/acothf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/acothf/benchmark/c/benchmark.c @@ -91,7 +91,10 @@ static float random_uniform( const float min, const float max ) { * @return elapsed time in seconds */ static double benchmark( void ) { - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; float y; double t; @@ -113,7 +116,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/acothf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/acothf/benchmark/c/native/benchmark.c index 699830c8591a..e7f8f48cbc35 100644 --- a/lib/node_modules/@stdlib/math/base/special/acothf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/acothf/benchmark/c/native/benchmark.c @@ -92,7 +92,10 @@ static float random_uniform( const float min, const float max ) { * @return elapsed time in seconds */ static double benchmark( void ) { - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double t; float y; @@ -114,7 +117,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/acovercos/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/acovercos/benchmark/c/benchmark.c index 5ef9e989d535..16bfe09ed3a4 100644 --- a/lib/node_modules/@stdlib/math/base/special/acovercos/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/acovercos/benchmark/c/benchmark.c @@ -89,7 +89,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -111,7 +114,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/acovercos/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/acovercos/benchmark/c/native/benchmark.c index 360af2710ffa..0baf7201add8 100644 --- a/lib/node_modules/@stdlib/math/base/special/acovercos/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/acovercos/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/acovercosf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/acovercosf/benchmark/c/native/benchmark.c index 66a3cdb0dd40..7904dbf17ad6 100644 --- a/lib/node_modules/@stdlib/math/base/special/acovercosf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/acovercosf/benchmark/c/native/benchmark.c @@ -92,7 +92,10 @@ static float rand_float( void ) { static double benchmark( void ) { double elapsed; double t; - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } float y; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/acoversin/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/acoversin/benchmark/c/benchmark.c index 51eb03e8c231..ee86016fac15 100644 --- a/lib/node_modules/@stdlib/math/base/special/acoversin/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/acoversin/benchmark/c/benchmark.c @@ -89,7 +89,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -111,7 +114,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/acoversin/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/acoversin/benchmark/c/native/benchmark.c index b7df9a4e70c5..2d90fd506b07 100644 --- a/lib/node_modules/@stdlib/math/base/special/acoversin/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/acoversin/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/acoversinf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/acoversinf/benchmark/c/native/benchmark.c index d1ca105a7fce..b4bf471e3473 100644 --- a/lib/node_modules/@stdlib/math/base/special/acoversinf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/acoversinf/benchmark/c/native/benchmark.c @@ -92,7 +92,10 @@ static float rand_float( void ) { static double benchmark( void ) { double elapsed; double t; - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } float y; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/acsc/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/acsc/benchmark/c/native/benchmark.c index 24497038c478..570e8a4b9497 100644 --- a/lib/node_modules/@stdlib/math/base/special/acsc/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/acsc/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/acscd/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/acscd/benchmark/c/native/benchmark.c index e0ba6e93184f..4412d0b71d53 100644 --- a/lib/node_modules/@stdlib/math/base/special/acscd/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/acscd/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/acscdf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/acscdf/benchmark/c/native/benchmark.c index 10d14d73cf12..6cdbc123c4e0 100644 --- a/lib/node_modules/@stdlib/math/base/special/acscdf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/acscdf/benchmark/c/native/benchmark.c @@ -92,7 +92,10 @@ static float rand_float( void ) { static double benchmark( void ) { double elapsed; double t; - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } float y; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/acscf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/acscf/benchmark/c/native/benchmark.c index e7a18acdbc62..19e86d959cc4 100644 --- a/lib/node_modules/@stdlib/math/base/special/acscf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/acscf/benchmark/c/native/benchmark.c @@ -92,7 +92,10 @@ static float rand_float( void ) { static double benchmark( void ) { double elapsed; double t; - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } float y; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/acsch/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/acsch/benchmark/c/native/benchmark.c index caffcfeee0a1..456c28996e8f 100644 --- a/lib/node_modules/@stdlib/math/base/special/acsch/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/acsch/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/ahavercos/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/ahavercos/benchmark/c/benchmark.c index 5e3ea85a6500..b263a3ea6b0a 100644 --- a/lib/node_modules/@stdlib/math/base/special/ahavercos/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/ahavercos/benchmark/c/benchmark.c @@ -89,7 +89,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -111,7 +114,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/ahavercos/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/ahavercos/benchmark/c/native/benchmark.c index b3457a2b552b..c7bd0d5971a5 100644 --- a/lib/node_modules/@stdlib/math/base/special/ahavercos/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/ahavercos/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/ahavercosf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/ahavercosf/benchmark/c/benchmark.c index fffafb56b37f..833fb7e98184 100644 --- a/lib/node_modules/@stdlib/math/base/special/ahavercosf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/ahavercosf/benchmark/c/benchmark.c @@ -91,7 +91,10 @@ static float rand_float( void ) { static double benchmark( void ) { double elapsed; double t; - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } float y; int i; @@ -111,7 +114,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/ahavercosf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/ahavercosf/benchmark/c/native/benchmark.c index ff664149b451..f0d29577cf6d 100644 --- a/lib/node_modules/@stdlib/math/base/special/ahavercosf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/ahavercosf/benchmark/c/native/benchmark.c @@ -92,7 +92,10 @@ static float rand_float( void ) { static double benchmark( void ) { double elapsed; double t; - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } float y; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/ahaversin/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/ahaversin/benchmark/c/benchmark.c index d36e4cf45265..814f0f0fa5b2 100644 --- a/lib/node_modules/@stdlib/math/base/special/ahaversin/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/ahaversin/benchmark/c/benchmark.c @@ -89,7 +89,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -111,7 +114,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/ahaversin/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/ahaversin/benchmark/c/native/benchmark.c index ef877333e1c7..a36a44e6b33a 100644 --- a/lib/node_modules/@stdlib/math/base/special/ahaversin/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/ahaversin/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/ahaversinf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/ahaversinf/benchmark/c/benchmark.c index 1a325305cc76..3277eb629030 100644 --- a/lib/node_modules/@stdlib/math/base/special/ahaversinf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/ahaversinf/benchmark/c/benchmark.c @@ -91,7 +91,10 @@ static float rand_float( void ) { static double benchmark( void ) { double elapsed; double t; - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } float y; int i; @@ -111,7 +114,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/ahaversinf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/ahaversinf/benchmark/c/native/benchmark.c index 55eebfcc587b..72d44f706392 100644 --- a/lib/node_modules/@stdlib/math/base/special/ahaversinf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/ahaversinf/benchmark/c/native/benchmark.c @@ -92,7 +92,10 @@ static float rand_float( void ) { static double benchmark( void ) { double elapsed; double t; - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } float y; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/asec/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/asec/benchmark/c/native/benchmark.c index f4b94e9089fe..102178f049e9 100644 --- a/lib/node_modules/@stdlib/math/base/special/asec/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/asec/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/asecd/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/asecd/benchmark/c/native/benchmark.c index d8329df5bb70..6ff729cf9f00 100644 --- a/lib/node_modules/@stdlib/math/base/special/asecd/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/asecd/benchmark/c/native/benchmark.c @@ -109,7 +109,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/asecdf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/asecdf/benchmark/c/native/benchmark.c index 04e0b333c682..b3e78289d1fd 100644 --- a/lib/node_modules/@stdlib/math/base/special/asecdf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/asecdf/benchmark/c/native/benchmark.c @@ -109,7 +109,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/asecf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/asecf/benchmark/c/native/benchmark.c index a94cdf703322..7cdf08d90620 100644 --- a/lib/node_modules/@stdlib/math/base/special/asecf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/asecf/benchmark/c/native/benchmark.c @@ -109,7 +109,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/asech/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/asech/benchmark/c/benchmark.c index b851d047ea39..fb17f74f5c75 100644 --- a/lib/node_modules/@stdlib/math/base/special/asech/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/asech/benchmark/c/benchmark.c @@ -108,7 +108,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/asech/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/asech/benchmark/c/native/benchmark.c index 61a453a1d9cd..a14e24e9fb58 100644 --- a/lib/node_modules/@stdlib/math/base/special/asech/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/asech/benchmark/c/native/benchmark.c @@ -109,7 +109,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/asin/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/asin/benchmark/c/benchmark.c index da5afc82dc2b..09ba0ff9fc46 100644 --- a/lib/node_modules/@stdlib/math/base/special/asin/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/asin/benchmark/c/benchmark.c @@ -108,7 +108,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/asin/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/asin/benchmark/c/cephes/benchmark.c index a363ce9ec060..e536e59ab8d5 100644 --- a/lib/node_modules/@stdlib/math/base/special/asin/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/asin/benchmark/c/cephes/benchmark.c @@ -113,7 +113,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/asin/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/asin/benchmark/c/native/benchmark.c index b219525b7bc1..4ba6ab461639 100644 --- a/lib/node_modules/@stdlib/math/base/special/asin/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/asin/benchmark/c/native/benchmark.c @@ -109,7 +109,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/asind/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/asind/benchmark/c/native/benchmark.c index 99c75b0fc094..08aef422c272 100644 --- a/lib/node_modules/@stdlib/math/base/special/asind/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/asind/benchmark/c/native/benchmark.c @@ -109,7 +109,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/asindf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/asindf/benchmark/c/native/benchmark.c index 25b6bf38f62b..34b1eb0664fe 100644 --- a/lib/node_modules/@stdlib/math/base/special/asindf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/asindf/benchmark/c/native/benchmark.c @@ -109,7 +109,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/asinf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/asinf/benchmark/c/native/benchmark.c index fef91fd2f24d..0e6a84e1f5e9 100644 --- a/lib/node_modules/@stdlib/math/base/special/asinf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/asinf/benchmark/c/native/benchmark.c @@ -109,7 +109,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/asinh/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/asinh/benchmark/c/benchmark.c index 305fad72ed7a..78ac7e74ed45 100644 --- a/lib/node_modules/@stdlib/math/base/special/asinh/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/asinh/benchmark/c/benchmark.c @@ -108,7 +108,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/asinh/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/asinh/benchmark/c/cephes/benchmark.c index bd8db014f4d4..d98600c7d1b9 100644 --- a/lib/node_modules/@stdlib/math/base/special/asinh/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/asinh/benchmark/c/cephes/benchmark.c @@ -113,7 +113,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/asinh/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/asinh/benchmark/c/native/benchmark.c index 0365413b2c9f..403ca654a839 100644 --- a/lib/node_modules/@stdlib/math/base/special/asinh/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/asinh/benchmark/c/native/benchmark.c @@ -109,7 +109,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/asinhf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/asinhf/benchmark/c/native/benchmark.c index 970fbcfc7a6c..068ff8cc8e01 100644 --- a/lib/node_modules/@stdlib/math/base/special/asinhf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/asinhf/benchmark/c/native/benchmark.c @@ -92,7 +92,10 @@ static float random_uniform( const float min, const float max ) { * @return elapsed time in seconds */ static double benchmark( void ) { - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double t; float y; @@ -114,7 +117,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/atan/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/atan/benchmark/c/benchmark.c index 1973e2590429..a31e6b17fdda 100644 --- a/lib/node_modules/@stdlib/math/base/special/atan/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/atan/benchmark/c/benchmark.c @@ -108,7 +108,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/atan/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/atan/benchmark/c/cephes/benchmark.c index 13aed0118265..253c74e09048 100644 --- a/lib/node_modules/@stdlib/math/base/special/atan/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/atan/benchmark/c/cephes/benchmark.c @@ -113,7 +113,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/atan/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/atan/benchmark/c/native/benchmark.c index d466345e5658..8864c661ce78 100644 --- a/lib/node_modules/@stdlib/math/base/special/atan/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/atan/benchmark/c/native/benchmark.c @@ -109,7 +109,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/atan2/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/atan2/benchmark/c/benchmark.c index 145d35b89f78..15a206bd78c9 100644 --- a/lib/node_modules/@stdlib/math/base/special/atan2/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/atan2/benchmark/c/benchmark.c @@ -110,7 +110,7 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/atan2/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/atan2/benchmark/c/cephes/benchmark.c index 14fcb5ae0df5..a43827fa749c 100644 --- a/lib/node_modules/@stdlib/math/base/special/atan2/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/atan2/benchmark/c/cephes/benchmark.c @@ -115,7 +115,7 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/atan2/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/atan2/benchmark/c/native/benchmark.c index 06f31f4622c6..9a53b4b10043 100755 --- a/lib/node_modules/@stdlib/math/base/special/atan2/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/atan2/benchmark/c/native/benchmark.c @@ -111,7 +111,7 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/atan2d/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/atan2d/benchmark/c/native/benchmark.c index 2cc05d7598cb..499a9d8c3ea8 100755 --- a/lib/node_modules/@stdlib/math/base/special/atan2d/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/atan2d/benchmark/c/native/benchmark.c @@ -90,8 +90,14 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; - double y[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } + double *y = (double *)malloc( 100 * sizeof(double) ); + if ( y == NULL ) { + return 0.0; + } double elapsed; double z; double t; @@ -114,7 +120,9 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/atan2f/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/atan2f/benchmark/c/benchmark.c index c014221e4ba0..105a57fe7340 100644 --- a/lib/node_modules/@stdlib/math/base/special/atan2f/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/atan2f/benchmark/c/benchmark.c @@ -90,8 +90,14 @@ static float rand_float( void ) { */ static double benchmark( void ) { double elapsed; - float x[ 100 ]; - float y[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } + float *y = (float *)malloc( 100 * sizeof(float) ); + if ( y == NULL ) { + return 0.0; + } double t; float z; int i; @@ -113,7 +119,9 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/atan2f/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/atan2f/benchmark/c/cephes/benchmark.c index d99dd2e4cf0c..52ae2214ec4b 100644 --- a/lib/node_modules/@stdlib/math/base/special/atan2f/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/atan2f/benchmark/c/cephes/benchmark.c @@ -95,8 +95,14 @@ static float rand_float( void ) { */ static double benchmark( void ) { double elapsed; - float x[ 100 ]; - float y[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } + float *y = (float *)malloc( 100 * sizeof(float) ); + if ( y == NULL ) { + return 0.0; + } double t; float z; int i; @@ -118,7 +124,9 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/atan2f/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/atan2f/benchmark/c/native/benchmark.c index 26ac78bfd872..b3191b52c9fb 100755 --- a/lib/node_modules/@stdlib/math/base/special/atan2f/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/atan2f/benchmark/c/native/benchmark.c @@ -91,8 +91,14 @@ static float rand_float( void ) { */ static double benchmark( void ) { double elapsed; - float x[ 100 ]; - float y[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } + float *y = (float *)malloc( 100 * sizeof(float) ); + if ( y == NULL ) { + return 0.0; + } double t; float z; int i; @@ -114,7 +120,9 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/atand/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/atand/benchmark/c/native/benchmark.c index 0b32ddda0dc7..7b6e2ea7944d 100644 --- a/lib/node_modules/@stdlib/math/base/special/atand/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/atand/benchmark/c/native/benchmark.c @@ -109,7 +109,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/atandf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/atandf/benchmark/c/native/benchmark.c index dab5e69793b9..fca88b3611d0 100644 --- a/lib/node_modules/@stdlib/math/base/special/atandf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/atandf/benchmark/c/native/benchmark.c @@ -92,7 +92,10 @@ static float rand_float( void ) { static double benchmark( void ) { double elapsed; double t; - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } float y; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/atanf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/atanf/benchmark/c/native/benchmark.c index d44b4655a7f8..aeecb8beb74c 100644 --- a/lib/node_modules/@stdlib/math/base/special/atanf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/atanf/benchmark/c/native/benchmark.c @@ -109,7 +109,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/atanh/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/atanh/benchmark/c/benchmark.c index 36154e8622f3..025cb1d35eae 100644 --- a/lib/node_modules/@stdlib/math/base/special/atanh/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/atanh/benchmark/c/benchmark.c @@ -108,7 +108,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/atanh/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/atanh/benchmark/c/cephes/benchmark.c index 8addae5d6bfb..4d93e337c7e9 100644 --- a/lib/node_modules/@stdlib/math/base/special/atanh/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/atanh/benchmark/c/cephes/benchmark.c @@ -113,7 +113,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/atanh/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/atanh/benchmark/c/native/benchmark.c index fdff45d2e679..23ceef0bf029 100644 --- a/lib/node_modules/@stdlib/math/base/special/atanh/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/atanh/benchmark/c/native/benchmark.c @@ -109,7 +109,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/atanhf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/atanhf/benchmark/c/benchmark.c index f69145cb7662..b590e4599347 100644 --- a/lib/node_modules/@stdlib/math/base/special/atanhf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/atanhf/benchmark/c/benchmark.c @@ -91,7 +91,10 @@ static float random_uniform( const float min, const float max ) { * @return elapsed time in seconds */ static double benchmark( void ) { - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double t; float y; @@ -113,7 +116,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/atanhf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/atanhf/benchmark/c/native/benchmark.c index cde8641eb5ed..c5f4599a609f 100644 --- a/lib/node_modules/@stdlib/math/base/special/atanhf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/atanhf/benchmark/c/native/benchmark.c @@ -92,7 +92,10 @@ static float random_uniform( const float min, const float max ) { * @return elapsed time in seconds */ static double benchmark( void ) { - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double t; float y; @@ -114,7 +117,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/avercos/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/avercos/benchmark/c/benchmark.c index e8964e0cf0d9..e1d330d7c4d1 100644 --- a/lib/node_modules/@stdlib/math/base/special/avercos/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/avercos/benchmark/c/benchmark.c @@ -108,7 +108,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/avercos/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/avercos/benchmark/c/native/benchmark.c index 463ad52e45fd..6de3a8a34f6e 100644 --- a/lib/node_modules/@stdlib/math/base/special/avercos/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/avercos/benchmark/c/native/benchmark.c @@ -109,7 +109,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/avercosf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/avercosf/benchmark/c/native/benchmark.c index dd3eb9f2205c..356467de23d0 100644 --- a/lib/node_modules/@stdlib/math/base/special/avercosf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/avercosf/benchmark/c/native/benchmark.c @@ -92,7 +92,10 @@ static float rand_float( void ) { static double benchmark( void ) { double elapsed; double t; - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } float y; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/aversin/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/aversin/benchmark/c/benchmark.c index 0fcfdb6f0940..103073858eaa 100644 --- a/lib/node_modules/@stdlib/math/base/special/aversin/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/aversin/benchmark/c/benchmark.c @@ -108,7 +108,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/aversin/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/aversin/benchmark/c/native/benchmark.c index 32f8063c29b7..53ba413f711e 100644 --- a/lib/node_modules/@stdlib/math/base/special/aversin/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/aversin/benchmark/c/native/benchmark.c @@ -109,7 +109,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/aversinf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/aversinf/benchmark/c/native/benchmark.c index 8a51b45a1faa..678ef9924c7d 100644 --- a/lib/node_modules/@stdlib/math/base/special/aversinf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/aversinf/benchmark/c/native/benchmark.c @@ -92,7 +92,10 @@ static float rand_float( void ) { static double benchmark( void ) { double elapsed; double t; - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } float y; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/bernoulli/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/bernoulli/benchmark/c/native/benchmark.c index 635529b07de6..403a0d103eef 100644 --- a/lib/node_modules/@stdlib/math/base/special/bernoulli/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/bernoulli/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/bernoullif/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/bernoullif/benchmark/c/native/benchmark.c index 980efab6d3ca..619cd061d75b 100644 --- a/lib/node_modules/@stdlib/math/base/special/bernoullif/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/bernoullif/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static float rand_float( void ) { */ static double benchmark( void ) { double elapsed; - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } double t; float y; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/besselj0/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/besselj0/benchmark/c/benchmark.c index d743fb9b1500..feaaf1af7680 100644 --- a/lib/node_modules/@stdlib/math/base/special/besselj0/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/besselj0/benchmark/c/benchmark.c @@ -100,7 +100,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -122,7 +125,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/besselj0/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/besselj0/benchmark/c/cephes/benchmark.c index 66a80b9135ef..f1f8d4d6697b 100644 --- a/lib/node_modules/@stdlib/math/base/special/besselj0/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/besselj0/benchmark/c/cephes/benchmark.c @@ -94,7 +94,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -116,7 +119,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/besselj0/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/besselj0/benchmark/c/native/benchmark.c index d0f7d405c547..9b8b04615d84 100644 --- a/lib/node_modules/@stdlib/math/base/special/besselj0/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/besselj0/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/besselj1/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/besselj1/benchmark/c/benchmark.c index e3cd97a7ae37..d316142cf387 100644 --- a/lib/node_modules/@stdlib/math/base/special/besselj1/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/besselj1/benchmark/c/benchmark.c @@ -100,7 +100,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -122,7 +125,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/besselj1/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/besselj1/benchmark/c/cephes/benchmark.c index 73b74fd765cc..7a90b0bee1c1 100644 --- a/lib/node_modules/@stdlib/math/base/special/besselj1/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/besselj1/benchmark/c/cephes/benchmark.c @@ -94,7 +94,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -116,7 +119,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/besselj1/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/besselj1/benchmark/c/native/benchmark.c index 9194bb2d406b..2c1a02c11138 100644 --- a/lib/node_modules/@stdlib/math/base/special/besselj1/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/besselj1/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/bessely0/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/bessely0/benchmark/c/benchmark.c index a43fa80b942b..fc53f23e7749 100644 --- a/lib/node_modules/@stdlib/math/base/special/bessely0/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/bessely0/benchmark/c/benchmark.c @@ -100,7 +100,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -122,7 +125,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/bessely0/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/bessely0/benchmark/c/cephes/benchmark.c index dfae9da6bfd9..84fff505a75b 100644 --- a/lib/node_modules/@stdlib/math/base/special/bessely0/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/bessely0/benchmark/c/cephes/benchmark.c @@ -94,7 +94,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -116,7 +119,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/bessely0/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/bessely0/benchmark/c/native/benchmark.c index 09dde22587ff..c22e7f281f5b 100644 --- a/lib/node_modules/@stdlib/math/base/special/bessely0/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/bessely0/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/bessely1/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/bessely1/benchmark/c/benchmark.c index 77072dac01b8..6aca7996ed0d 100644 --- a/lib/node_modules/@stdlib/math/base/special/bessely1/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/bessely1/benchmark/c/benchmark.c @@ -100,7 +100,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -122,7 +125,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/bessely1/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/bessely1/benchmark/c/cephes/benchmark.c index df5362df8822..04cfe62d40cb 100644 --- a/lib/node_modules/@stdlib/math/base/special/bessely1/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/bessely1/benchmark/c/cephes/benchmark.c @@ -94,7 +94,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -116,7 +119,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/bessely1/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/bessely1/benchmark/c/native/benchmark.c index c5620f7c78ad..5453b5cbfb53 100644 --- a/lib/node_modules/@stdlib/math/base/special/bessely1/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/bessely1/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/beta/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/beta/benchmark/c/cephes/benchmark.c index 8433414901a4..9ecafcbb8b79 100644 --- a/lib/node_modules/@stdlib/math/base/special/beta/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/beta/benchmark/c/cephes/benchmark.c @@ -94,8 +94,14 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; - double y[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } + double *y = (double *)malloc( 100 * sizeof(double) ); + if ( y == NULL ) { + return 0.0; + } double elapsed; double z; double t; @@ -118,7 +124,9 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/beta/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/beta/benchmark/c/native/benchmark.c index 54bfb839fa4c..5b742f37bea6 100644 --- a/lib/node_modules/@stdlib/math/base/special/beta/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/beta/benchmark/c/native/benchmark.c @@ -90,8 +90,14 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; - double y[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } + double *y = (double *)malloc( 100 * sizeof(double) ); + if ( y == NULL ) { + return 0.0; + } double elapsed; double r; double t; @@ -114,7 +120,9 @@ static double benchmark( void ) { if ( r != r ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/betainc/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/betainc/benchmark/c/cephes/benchmark.c index f805033e383d..7dbb43df7541 100644 --- a/lib/node_modules/@stdlib/math/base/special/betainc/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/betainc/benchmark/c/cephes/benchmark.c @@ -94,9 +94,18 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; - double a[ 100 ]; - double b[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } + double *a = (double *)malloc( 100 * sizeof(double) ); + if ( a == NULL ) { + return 0.0; + } + double *b = (double *)malloc( 100 * sizeof(double) ); + if ( b == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -120,7 +129,10 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( a ); + free( b ); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/betaincinv/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/betaincinv/benchmark/c/cephes/benchmark.c index 9a46ddae5ef0..3b002d46c97b 100644 --- a/lib/node_modules/@stdlib/math/base/special/betaincinv/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/betaincinv/benchmark/c/cephes/benchmark.c @@ -94,9 +94,18 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; - double a[ 100 ]; - double b[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } + double *a = (double *)malloc( 100 * sizeof(double) ); + if ( a == NULL ) { + return 0.0; + } + double *b = (double *)malloc( 100 * sizeof(double) ); + if ( b == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -120,7 +129,10 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( a ); + free( b ); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/betaln/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/betaln/benchmark/c/native/benchmark.c index 00111e64f84e..1325ece0faca 100644 --- a/lib/node_modules/@stdlib/math/base/special/betaln/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/betaln/benchmark/c/native/benchmark.c @@ -90,8 +90,14 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; - double y[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } + double *y = (double *)malloc( 100 * sizeof(double) ); + if ( y == NULL ) { + return 0.0; + } double elapsed; double z; double t; @@ -114,7 +120,9 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/binet/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/binet/benchmark/c/benchmark.c index 4721ed50b60d..9600e4efe9a5 100644 --- a/lib/node_modules/@stdlib/math/base/special/binet/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/binet/benchmark/c/benchmark.c @@ -99,7 +99,10 @@ double binet( double x ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double t; double y; @@ -121,7 +124,8 @@ static double benchmark( void ) { if ( y < 0 ) { printf( "should return a nonnegative number\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/binet/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/binet/benchmark/c/native/benchmark.c index 8f2e01a8dd0a..6401103e4f0a 100644 --- a/lib/node_modules/@stdlib/math/base/special/binet/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/binet/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/binomcoef/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/binomcoef/benchmark/c/native/benchmark.c index d3ebce1b1d2a..f94e413c0e7d 100644 --- a/lib/node_modules/@stdlib/math/base/special/binomcoef/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/binomcoef/benchmark/c/native/benchmark.c @@ -90,8 +90,14 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double n[ 100 ]; - double k[ 100 ]; + double *n = (double *)malloc( 100 * sizeof(double) ); + if ( n == NULL ) { + return 0.0; + } + double *k = (double *)malloc( 100 * sizeof(double) ); + if ( k == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -114,7 +120,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( k ); + free( n ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/binomcoeff/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/binomcoeff/benchmark/c/native/benchmark.c index 4bf89c4614bf..29957bcd8a7f 100644 --- a/lib/node_modules/@stdlib/math/base/special/binomcoeff/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/binomcoeff/benchmark/c/native/benchmark.c @@ -90,8 +90,14 @@ static float rand_float( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - float n[ 100 ]; - float k[ 100 ]; + float *n = (float *)malloc( 100 * sizeof(float) ); + if ( n == NULL ) { + return 0.0; + } + float *k = (float *)malloc( 100 * sizeof(float) ); + if ( k == NULL ) { + return 0.0; + } double elapsed; double t; float y; @@ -114,7 +120,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( k ); + free( n ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/binomcoefln/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/binomcoefln/benchmark/c/native/benchmark.c index 8b714269ed4c..54c27116bb6d 100644 --- a/lib/node_modules/@stdlib/math/base/special/binomcoefln/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/binomcoefln/benchmark/c/native/benchmark.c @@ -90,8 +90,14 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double n[ 100 ]; - double k[ 100 ]; + double *n = (double *)malloc( 100 * sizeof(double) ); + if ( n == NULL ) { + return 0.0; + } + double *k = (double *)malloc( 100 * sizeof(double) ); + if ( k == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -114,7 +120,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( k ); + free( n ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/boxcox/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/boxcox/benchmark/c/native/benchmark.c index 31f0570eebbc..b202a440ae41 100644 --- a/lib/node_modules/@stdlib/math/base/special/boxcox/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/boxcox/benchmark/c/native/benchmark.c @@ -90,8 +90,14 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; - double y[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } + double *y = (double *)malloc( 100 * sizeof(double) ); + if ( y == NULL ) { + return 0.0; + } double elapsed; double r; double t; @@ -114,7 +120,9 @@ static double benchmark( void ) { if ( r != r ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/boxcox1p/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/boxcox1p/benchmark/c/native/benchmark.c index e9482e3367e7..2a89a2523fff 100644 --- a/lib/node_modules/@stdlib/math/base/special/boxcox1p/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/boxcox1p/benchmark/c/native/benchmark.c @@ -90,8 +90,14 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; - double y[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } + double *y = (double *)malloc( 100 * sizeof(double) ); + if ( y == NULL ) { + return 0.0; + } double elapsed; double r; double t; @@ -114,7 +120,9 @@ static double benchmark( void ) { if ( r != r ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/boxcox1pinv/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/boxcox1pinv/benchmark/c/native/benchmark.c index 7bef7430d23e..f1586acd34e2 100644 --- a/lib/node_modules/@stdlib/math/base/special/boxcox1pinv/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/boxcox1pinv/benchmark/c/native/benchmark.c @@ -90,8 +90,14 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; - double y[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } + double *y = (double *)malloc( 100 * sizeof(double) ); + if ( y == NULL ) { + return 0.0; + } double elapsed; double r; double t; @@ -114,7 +120,9 @@ static double benchmark( void ) { if ( r != r ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/boxcoxinv/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/boxcoxinv/benchmark/c/native/benchmark.c index 1130ceaacefe..fca7d8abb704 100644 --- a/lib/node_modules/@stdlib/math/base/special/boxcoxinv/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/boxcoxinv/benchmark/c/native/benchmark.c @@ -90,8 +90,14 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; - double y[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } + double *y = (double *)malloc( 100 * sizeof(double) ); + if ( y == NULL ) { + return 0.0; + } double elapsed; double r; double t; @@ -114,7 +120,9 @@ static double benchmark( void ) { if ( r != r ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cabs/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cabs/benchmark/c/benchmark.c index 21dd59f01c82..ae4fa5e8b6de 100644 --- a/lib/node_modules/@stdlib/math/base/special/cabs/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cabs/benchmark/c/benchmark.c @@ -112,7 +112,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cabs/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cabs/benchmark/c/native/benchmark.c index 4d9dcd645842..4b2abcd05a48 100644 --- a/lib/node_modules/@stdlib/math/base/special/cabs/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cabs/benchmark/c/native/benchmark.c @@ -116,7 +116,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cabs2/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cabs2/benchmark/c/benchmark.c index 4735e525d9e1..ac314ca695f5 100644 --- a/lib/node_modules/@stdlib/math/base/special/cabs2/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cabs2/benchmark/c/benchmark.c @@ -122,7 +122,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cabs2/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cabs2/benchmark/c/native/benchmark.c index 3b7c869545f9..8af8d12f2f58 100644 --- a/lib/node_modules/@stdlib/math/base/special/cabs2/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cabs2/benchmark/c/native/benchmark.c @@ -116,7 +116,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cabs2f/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cabs2f/benchmark/c/benchmark.c index 499af2bb548b..c8883a4f14f2 100644 --- a/lib/node_modules/@stdlib/math/base/special/cabs2f/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cabs2f/benchmark/c/benchmark.c @@ -122,7 +122,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cabs2f/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cabs2f/benchmark/c/native/benchmark.c index ad9152827ae8..adaccea17a2c 100644 --- a/lib/node_modules/@stdlib/math/base/special/cabs2f/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cabs2f/benchmark/c/native/benchmark.c @@ -119,7 +119,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cabsf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cabsf/benchmark/c/benchmark.c index 11edbf3f5125..8ecc761306a1 100644 --- a/lib/node_modules/@stdlib/math/base/special/cabsf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cabsf/benchmark/c/benchmark.c @@ -112,7 +112,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cabsf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cabsf/benchmark/c/native/benchmark.c index ec90e4ea4b1c..ca96517f67c6 100644 --- a/lib/node_modules/@stdlib/math/base/special/cabsf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cabsf/benchmark/c/native/benchmark.c @@ -93,8 +93,14 @@ static float rand_float( void ) { */ static double benchmark( void ) { double elapsed; - float re[ 100 ]; - float im[ 100 ]; + float *re = (float *)malloc( 100 * sizeof(float) ); + if ( re == NULL ) { + return 0.0; + } + float *im = (float *)malloc( 100 * sizeof(float) ); + if ( im == NULL ) { + return 0.0; + } double t; float y; int i; @@ -119,7 +125,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( im ); + free( re ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cbrt/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cbrt/benchmark/c/benchmark.c index ff59a55ce92a..ed1d09ec62a4 100644 --- a/lib/node_modules/@stdlib/math/base/special/cbrt/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cbrt/benchmark/c/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -111,7 +114,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cbrt/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cbrt/benchmark/c/cephes/benchmark.c index 57759fce8ef8..129026525691 100644 --- a/lib/node_modules/@stdlib/math/base/special/cbrt/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cbrt/benchmark/c/cephes/benchmark.c @@ -95,7 +95,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -116,7 +119,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cbrt/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cbrt/benchmark/c/native/benchmark.c index 232f4e14fb3a..3ca66f397338 100644 --- a/lib/node_modules/@stdlib/math/base/special/cbrt/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cbrt/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cbrtf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cbrtf/benchmark/c/benchmark.c index 9b15bbde272d..89078cf74be1 100644 --- a/lib/node_modules/@stdlib/math/base/special/cbrtf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cbrtf/benchmark/c/benchmark.c @@ -90,7 +90,10 @@ static float rand_float( void ) { */ static double benchmark( void ) { double elapsed; - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } float y; double t; int i; @@ -111,7 +114,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cbrtf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cbrtf/benchmark/c/native/benchmark.c index 3a63a8256130..d8f4ee74a6c8 100644 --- a/lib/node_modules/@stdlib/math/base/special/cbrtf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cbrtf/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static float rand_float( void ) { */ static double benchmark( void ) { double elapsed; - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } float y; double t; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cceil/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cceil/benchmark/c/benchmark.c index 6ae60323ad6a..4dbf679d605d 100644 --- a/lib/node_modules/@stdlib/math/base/special/cceil/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cceil/benchmark/c/benchmark.c @@ -93,7 +93,10 @@ static double rand_double( void ) { static double benchmark( void ) { double complex x; double complex y; - double v[ 100 ]; + double *v = (double *)malloc( 100 * sizeof(double) ); + if ( v == NULL ) { + return 0.0; + } double elapsed; double t; int i; @@ -115,7 +118,8 @@ static double benchmark( void ) { if ( cimag( y ) != cimag( y ) ) { printf( "unexpected result\n" ); } - return elapsed; + free( v ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cceil/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cceil/benchmark/c/native/benchmark.c index 458499c77d74..a3df400cd292 100644 --- a/lib/node_modules/@stdlib/math/base/special/cceil/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cceil/benchmark/c/native/benchmark.c @@ -93,7 +93,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double v[ 100 ]; + double *v = (double *)malloc( 100 * sizeof(double) ); + if ( v == NULL ) { + return 0.0; + } double re; double im; double t; @@ -120,7 +123,8 @@ static double benchmark( void ) { if ( im != im ) { printf( "unexpected result\n" ); } - return elapsed; + free( v ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cceilf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cceilf/benchmark/c/benchmark.c index 6cade907a3ea..8d532dd66daa 100644 --- a/lib/node_modules/@stdlib/math/base/special/cceilf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cceilf/benchmark/c/benchmark.c @@ -94,7 +94,10 @@ static double benchmark( void ) { float complex x; float complex y; double elapsed; - float v[ 100 ]; + float *v = (float *)malloc( 100 * sizeof(float) ); + if ( v == NULL ) { + return 0.0; + } double t; int i; @@ -115,7 +118,8 @@ static double benchmark( void ) { if ( cimagf( y ) != cimagf( y ) ) { printf( "unexpected result\n" ); } - return elapsed; + free( v ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cceilf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cceilf/benchmark/c/native/benchmark.c index 907d66074264..c217b79df164 100644 --- a/lib/node_modules/@stdlib/math/base/special/cceilf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cceilf/benchmark/c/native/benchmark.c @@ -93,7 +93,10 @@ static float rand_float( void ) { */ static double benchmark( void ) { double elapsed; - float v[ 100 ]; + float *v = (float *)malloc( 100 * sizeof(float) ); + if ( v == NULL ) { + return 0.0; + } float re; float im; double t; @@ -120,7 +123,8 @@ static double benchmark( void ) { if ( im != im ) { printf( "unexpected result\n" ); } - return elapsed; + free( v ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cceiln/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cceiln/benchmark/c/benchmark.c index 16cd3a5a1325..5297cee333d0 100644 --- a/lib/node_modules/@stdlib/math/base/special/cceiln/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cceiln/benchmark/c/benchmark.c @@ -112,7 +112,7 @@ static double benchmark( void ) { if ( cimag( y ) != cimag( y ) ) { printf( "unexpected result\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cceiln/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cceiln/benchmark/c/native/benchmark.c index 563d392a25e3..99e4bcfa46a8 100644 --- a/lib/node_modules/@stdlib/math/base/special/cceiln/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cceiln/benchmark/c/native/benchmark.c @@ -117,7 +117,7 @@ static double benchmark( void ) { if ( im != im ) { printf( "unexpected result\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/ccis/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/ccis/benchmark/c/benchmark.c index 35e252f391f4..7432357db346 100644 --- a/lib/node_modules/@stdlib/math/base/special/ccis/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/ccis/benchmark/c/benchmark.c @@ -89,8 +89,14 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double re[ 100 ]; - double im[ 100 ]; + double *re = (double *)malloc( 100 * sizeof(double) ); + if ( re == NULL ) { + return 0.0; + } + double *im = (double *)malloc( 100 * sizeof(double) ); + if ( im == NULL ) { + return 0.0; + } double elapsed; double t; int i; @@ -114,7 +120,9 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( im ); + free( re ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/ccis/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/ccis/benchmark/c/native/benchmark.c index ef3fc03fe821..240a181adfd8 100644 --- a/lib/node_modules/@stdlib/math/base/special/ccis/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/ccis/benchmark/c/native/benchmark.c @@ -92,8 +92,14 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double are[ 100 ]; - double aim[ 100 ]; + double *are = (double *)malloc( 100 * sizeof(double) ); + if ( are == NULL ) { + return 0.0; + } + double *aim = (double *)malloc( 100 * sizeof(double) ); + if ( aim == NULL ) { + return 0.0; + } double elapsed; double re; double im; @@ -123,7 +129,9 @@ static double benchmark( void ) { if ( im != im ) { printf( "should not return NaN\n" ); } - return elapsed; + free( aim ); + free( are ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/ceil/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/ceil/benchmark/c/benchmark.c index 2f1f2151074c..9b792dc27dcb 100644 --- a/lib/node_modules/@stdlib/math/base/special/ceil/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/ceil/benchmark/c/benchmark.c @@ -89,7 +89,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -111,7 +114,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/ceil/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/ceil/benchmark/c/cephes/benchmark.c index 5f364daa5bb0..2cb05957fa5a 100644 --- a/lib/node_modules/@stdlib/math/base/special/ceil/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/ceil/benchmark/c/cephes/benchmark.c @@ -94,7 +94,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -116,7 +119,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/ceil/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/ceil/benchmark/c/native/benchmark.c index d5538eee401a..8c4f2dee98a4 100644 --- a/lib/node_modules/@stdlib/math/base/special/ceil/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/ceil/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/ceil10/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/ceil10/benchmark/c/native/benchmark.c index 33b4b48ef6d7..14d5daa8243e 100644 --- a/lib/node_modules/@stdlib/math/base/special/ceil10/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/ceil10/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/ceil10/benchmark/c/native/sedLBkAfo b/lib/node_modules/@stdlib/math/base/special/ceil10/benchmark/c/native/sedLBkAfo new file mode 100644 index 000000000000..e1fc1a7d08c2 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/ceil10/benchmark/c/native/sedLBkAfo @@ -0,0 +1,140 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2024 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +#include "stdlib/math/base/special/ceil10.h" +#include +#include +#include +#include +#include + +#define NAME "ceil10" +#define ITERATIONS 1000000 +#define REPEATS 3 + +/** +* Prints the TAP version. +*/ +static void print_version( void ) { + printf( "TAP version 13\n" ); +} + +/** +* Prints the TAP summary. +* +* @param total total number of tests +* @param passing total number of passing tests +*/ +static void print_summary( int total, int passing ) { + printf( "#\n" ); + printf( "1..%d\n", total ); // TAP plan + printf( "# total %d\n", total ); + printf( "# pass %d\n", passing ); + printf( "#\n" ); + printf( "# ok\n" ); +} + +/** +* Prints benchmarks results. +* +* @param elapsed elapsed time in seconds +*/ +static void print_results( double elapsed ) { + double rate = (double)ITERATIONS / elapsed; + printf( " ---\n" ); + printf( " iterations: %d\n", ITERATIONS ); + printf( " elapsed: %0.9f\n", elapsed ); + printf( " rate: %0.9f\n", rate ); + printf( " ...\n" ); +} + +/** +* Returns a clock time. +* +* @return clock time +*/ +static double tic( void ) { + struct timeval now; + gettimeofday( &now, NULL ); + return (double)now.tv_sec + (double)now.tv_usec/1.0e6; +} + +/** +* Generates a random number on the interval [0,1). +* +* @return random number +*/ +static double rand_double( void ) { + int r = rand(); + return (double)r / ( (double)RAND_MAX + 1.0 ); +} + +/** +* Runs a benchmark. +* +* @return elapsed time in seconds +*/ +static double benchmark( void ) { + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } + double elapsed; + double y; + double t; + int i; + + for ( i = 0; i < 100; i++ ) { + x[ i ] = ( 1.0e7 * rand_double() ) - 5.0e6; + } + + t = tic(); + for ( i = 0; i < ITERATIONS; i++ ) { + y = stdlib_base_ceil10( x[ i%100 ] ); + if ( y != y ) { + printf( "should not return NaN\n" ); + break; + } + } + elapsed = tic() - t; + if ( y != y ) { + printf( "should not return NaN\n" ); + } + free( x ); + return elapsed; +} + +/** +* Main execution sequence. +*/ +int main( void ) { + double elapsed; + int i; + + // Use the current time to seed the random number generator: + srand( time( NULL ) ); + + print_version(); + for ( i = 0; i < REPEATS; i++ ) { + printf( "# c::native::%s\n", NAME ); + elapsed = benchmark(); + print_results( elapsed ); + printf( "ok %d benchmark finished\n", i+1 ); + } + print_summary( REPEATS, REPEATS ); +} diff --git a/lib/node_modules/@stdlib/math/base/special/ceil2/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/ceil2/benchmark/c/native/benchmark.c index c1584df136bd..14aad4abeb7b 100644 --- a/lib/node_modules/@stdlib/math/base/special/ceil2/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/ceil2/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/ceilb/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/ceilb/benchmark/c/native/benchmark.c index 8197a8681513..7ecf8ad5035d 100644 --- a/lib/node_modules/@stdlib/math/base/special/ceilb/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/ceilb/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/ceilf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/ceilf/benchmark/c/benchmark.c index 728b34250515..ac8995411994 100644 --- a/lib/node_modules/@stdlib/math/base/special/ceilf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/ceilf/benchmark/c/benchmark.c @@ -89,7 +89,10 @@ static float rand_float( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; float y; double t; @@ -111,7 +114,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/ceilf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/ceilf/benchmark/c/native/benchmark.c index d956ee75eeb5..924bbafe822e 100644 --- a/lib/node_modules/@stdlib/math/base/special/ceilf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/ceilf/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static float rand_float( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; float y; double t; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/ceiln/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/ceiln/benchmark/c/native/benchmark.c index 99c9cfb69d63..df1a2e0b130d 100644 --- a/lib/node_modules/@stdlib/math/base/special/ceiln/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/ceiln/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/ceilsd/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/ceilsd/benchmark/c/native/benchmark.c index 590e77b6c207..79b905ec2f7b 100644 --- a/lib/node_modules/@stdlib/math/base/special/ceilsd/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/ceilsd/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cexp/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cexp/benchmark/c/benchmark.c index b5d40ee9bf31..fe7b19b5254c 100644 --- a/lib/node_modules/@stdlib/math/base/special/cexp/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cexp/benchmark/c/benchmark.c @@ -89,8 +89,14 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double re[ 100 ]; - double im[ 100 ]; + double *re = (double *)malloc( 100 * sizeof(double) ); + if ( re == NULL ) { + return 0.0; + } + double *im = (double *)malloc( 100 * sizeof(double) ); + if ( im == NULL ) { + return 0.0; + } double elapsed; double t; int i; @@ -114,7 +120,9 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( im ); + free( re ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cexp/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cexp/benchmark/c/native/benchmark.c index c898edb47c7d..4c60a7d1c809 100644 --- a/lib/node_modules/@stdlib/math/base/special/cexp/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cexp/benchmark/c/native/benchmark.c @@ -92,7 +92,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double v[ 100 ]; + double *v = (double *)malloc( 100 * sizeof(double) ); + if ( v == NULL ) { + return 0.0; + } double elapsed; double re; double im; @@ -120,7 +123,8 @@ static double benchmark( void ) { if ( im != im ) { printf( "unexpected result\n" ); } - return elapsed; + free( v ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cflipsign/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cflipsign/benchmark/c/native/benchmark.c index b8bc2322e1d1..34daeea88fd6 100644 --- a/lib/node_modules/@stdlib/math/base/special/cflipsign/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cflipsign/benchmark/c/native/benchmark.c @@ -92,7 +92,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double v[ 100 ]; + double *v = (double *)malloc( 100 * sizeof(double) ); + if ( v == NULL ) { + return 0.0; + } double elapsed; double re; double im; @@ -120,7 +123,8 @@ static double benchmark( void ) { if ( im != im ) { printf( "unexpected result\n" ); } - return elapsed; + free( v ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cflipsignf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cflipsignf/benchmark/c/native/benchmark.c index 865b5a8d99b4..fdf5807dad8c 100644 --- a/lib/node_modules/@stdlib/math/base/special/cflipsignf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cflipsignf/benchmark/c/native/benchmark.c @@ -93,7 +93,10 @@ static float rand_float( void ) { */ static double benchmark( void ) { double elapsed; - float v[ 100 ]; + float *v = (float *)malloc( 100 * sizeof(float) ); + if ( v == NULL ) { + return 0.0; + } double t; float re; float im; @@ -120,7 +123,8 @@ static double benchmark( void ) { if ( im != im ) { printf( "unexpected result\n" ); } - return elapsed; + free( v ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cfloor/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cfloor/benchmark/c/benchmark.c index b9cf18d81742..219e50e6a0a1 100644 --- a/lib/node_modules/@stdlib/math/base/special/cfloor/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cfloor/benchmark/c/benchmark.c @@ -89,8 +89,14 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double re[ 100 ]; - double im[ 100 ]; + double *re = (double *)malloc( 100 * sizeof(double) ); + if ( re == NULL ) { + return 0.0; + } + double *im = (double *)malloc( 100 * sizeof(double) ); + if ( im == NULL ) { + return 0.0; + } double elapsed; double t; int i; @@ -116,7 +122,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( im ); + free( re ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cfloorf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cfloorf/benchmark/c/native/benchmark.c index 8d3de718fd3a..3b29d6de5652 100644 --- a/lib/node_modules/@stdlib/math/base/special/cfloorf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cfloorf/benchmark/c/native/benchmark.c @@ -93,8 +93,14 @@ static float rand_float( void ) { */ static double benchmark( void ) { double elapsed; - float re[ 100 ]; - float im[ 100 ]; + float *re = (float *)malloc( 100 * sizeof(float) ); + if ( re == NULL ) { + return 0.0; + } + float *im = (float *)malloc( 100 * sizeof(float) ); + if ( im == NULL ) { + return 0.0; + } double t; int i; @@ -122,7 +128,9 @@ static double benchmark( void ) { if ( a != a || b != b ) { printf( "should not return NaN\n" ); } - return elapsed; + free( im ); + free( re ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cfloorn/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cfloorn/benchmark/c/native/benchmark.c index 2b82aad1e876..2b3000013a76 100644 --- a/lib/node_modules/@stdlib/math/base/special/cfloorn/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cfloorn/benchmark/c/native/benchmark.c @@ -92,7 +92,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double v[ 100 ]; + double *v = (double *)malloc( 100 * sizeof(double) ); + if ( v == NULL ) { + return 0.0; + } double elapsed; double re; double im; @@ -120,7 +123,8 @@ static double benchmark( void ) { if ( im != im ) { printf( "unexpected result\n" ); } - return elapsed; + free( v ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cinv/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cinv/benchmark/c/benchmark.c index ab2411302814..cb749b5f1286 100644 --- a/lib/node_modules/@stdlib/math/base/special/cinv/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cinv/benchmark/c/benchmark.c @@ -89,8 +89,14 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double re[ 100 ]; - double im[ 100 ]; + double *re = (double *)malloc( 100 * sizeof(double) ); + if ( re == NULL ) { + return 0.0; + } + double *im = (double *)malloc( 100 * sizeof(double) ); + if ( im == NULL ) { + return 0.0; + } double elapsed; double t; int i; @@ -117,7 +123,9 @@ static double benchmark( void ) { if ( z2 != z2 ) { printf( "should not return NaN\n" ); } - return elapsed; + free( im ); + free( re ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cinv/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cinv/benchmark/c/native/benchmark.c index 815f7442f495..d88e149d0c63 100644 --- a/lib/node_modules/@stdlib/math/base/special/cinv/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cinv/benchmark/c/native/benchmark.c @@ -92,7 +92,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double v[ 100 ]; + double *v = (double *)malloc( 100 * sizeof(double) ); + if ( v == NULL ) { + return 0.0; + } double elapsed; double re; double im; @@ -120,7 +123,8 @@ static double benchmark( void ) { if ( im != im ) { printf( "unexpected result\n" ); } - return elapsed; + free( v ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cinvf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cinvf/benchmark/c/benchmark.c index 806a62cc03e8..489828eb76b4 100644 --- a/lib/node_modules/@stdlib/math/base/special/cinvf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cinvf/benchmark/c/benchmark.c @@ -89,8 +89,14 @@ static float rand_float( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - float re[ 100 ]; - float im[ 100 ]; + float *re = (float *)malloc( 100 * sizeof(float) ); + if ( re == NULL ) { + return 0.0; + } + float *im = (float *)malloc( 100 * sizeof(float) ); + if ( im == NULL ) { + return 0.0; + } double elapsed; double t; int i; @@ -117,7 +123,9 @@ static double benchmark( void ) { if ( z2 != z2 ) { printf( "should not return NaN\n" ); } - return elapsed; + free( im ); + free( re ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cinvf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cinvf/benchmark/c/native/benchmark.c index 198134481f4d..96967cffccc0 100644 --- a/lib/node_modules/@stdlib/math/base/special/cinvf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cinvf/benchmark/c/native/benchmark.c @@ -92,8 +92,14 @@ static float rand_float( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - float u[ 100 ]; - float v[ 100 ]; + float *u = (float *)malloc( 100 * sizeof(float) ); + if ( u == NULL ) { + return 0.0; + } + float *v = (float *)malloc( 100 * sizeof(float) ); + if ( v == NULL ) { + return 0.0; + } double elapsed; float re; float im; @@ -122,7 +128,9 @@ static double benchmark( void ) { if ( im != im ) { printf( "unexpected result\n" ); } - return elapsed; + free( u ); + free( v ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/clamp/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/clamp/benchmark/c/benchmark.c index f498f5e3663f..b4c20a6f3967 100644 --- a/lib/node_modules/@stdlib/math/base/special/clamp/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/clamp/benchmark/c/benchmark.c @@ -108,7 +108,10 @@ double clamp( double v, double min, double max ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -129,7 +132,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/clamp/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/clamp/benchmark/c/native/benchmark.c index c68b54ad7f88..398e91b24be6 100644 --- a/lib/node_modules/@stdlib/math/base/special/clamp/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/clamp/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/clampf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/clampf/benchmark/c/benchmark.c index 2c0f4137f93f..0811e76d1fd7 100644 --- a/lib/node_modules/@stdlib/math/base/special/clampf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/clampf/benchmark/c/benchmark.c @@ -109,7 +109,10 @@ float clampf( float v, float min, float max ) { static double benchmark( void ) { double elapsed; double t; - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } float y; int i; @@ -129,7 +132,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/clampf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/clampf/benchmark/c/native/benchmark.c index ac8344d17806..ea50f92179f6 100644 --- a/lib/node_modules/@stdlib/math/base/special/clampf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/clampf/benchmark/c/native/benchmark.c @@ -92,7 +92,10 @@ static float rand_float( void ) { static double benchmark( void ) { double elapsed; double t; - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } float y; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/copysign/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/copysign/benchmark/c/benchmark.c index 3cddef52ac5e..06353cf6de60 100644 --- a/lib/node_modules/@stdlib/math/base/special/copysign/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/copysign/benchmark/c/benchmark.c @@ -90,8 +90,14 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; - double y[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } + double *y = (double *)malloc( 100 * sizeof(double) ); + if ( y == NULL ) { + return 0.0; + } double z; double t; int i; @@ -113,7 +119,9 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/copysign/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/copysign/benchmark/c/native/benchmark.c index ae52ddc5148e..302f14708e73 100644 --- a/lib/node_modules/@stdlib/math/base/special/copysign/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/copysign/benchmark/c/native/benchmark.c @@ -91,8 +91,14 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; - double y[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } + double *y = (double *)malloc( 100 * sizeof(double) ); + if ( y == NULL ) { + return 0.0; + } double z; double t; int i; @@ -114,7 +120,9 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/copysignf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/copysignf/benchmark/c/benchmark.c index 89ca488007b6..798614ef3ef7 100644 --- a/lib/node_modules/@stdlib/math/base/special/copysignf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/copysignf/benchmark/c/benchmark.c @@ -91,8 +91,14 @@ static float rand_float( void ) { static double benchmark( void ) { double elapsed; double t; - float x[ 100 ]; - float y[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } + float *y = (float *)malloc( 100 * sizeof(float) ); + if ( y == NULL ) { + return 0.0; + } float z; int i; @@ -113,7 +119,9 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/copysignf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/copysignf/benchmark/c/native/benchmark.c index 1383599d73cd..72063470ec44 100644 --- a/lib/node_modules/@stdlib/math/base/special/copysignf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/copysignf/benchmark/c/native/benchmark.c @@ -92,8 +92,14 @@ static float rand_float( void ) { static double benchmark( void ) { double elapsed; double t; - float x[ 100 ]; - float y[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } + float *y = (float *)malloc( 100 * sizeof(float) ); + if ( y == NULL ) { + return 0.0; + } float z; int i; @@ -114,7 +120,9 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cos/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cos/benchmark/c/benchmark.c index f29514467e0c..3a0a2b0c4bee 100644 --- a/lib/node_modules/@stdlib/math/base/special/cos/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cos/benchmark/c/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -111,7 +114,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cos/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cos/benchmark/c/cephes/benchmark.c index 18bd8ca252eb..40737d5b8754 100644 --- a/lib/node_modules/@stdlib/math/base/special/cos/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cos/benchmark/c/cephes/benchmark.c @@ -95,7 +95,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -116,7 +119,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cos/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cos/benchmark/c/native/benchmark.c index 29375fcf3e3b..459db0514f36 100644 --- a/lib/node_modules/@stdlib/math/base/special/cos/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cos/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cosd/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cosd/benchmark/c/native/benchmark.c index 54ecef32cb16..dd415c9fae47 100644 --- a/lib/node_modules/@stdlib/math/base/special/cosd/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cosd/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cosdf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cosdf/benchmark/c/native/benchmark.c index 1d2cd2c5b335..085b1fd30d15 100644 --- a/lib/node_modules/@stdlib/math/base/special/cosdf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cosdf/benchmark/c/native/benchmark.c @@ -92,7 +92,10 @@ static float random_uniform( const float min, const float max ) { * @return elapsed time in seconds */ static double benchmark( void ) { - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double t; float y; @@ -114,7 +117,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cosf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cosf/benchmark/c/benchmark.c index c0129b7f5af5..ef5529a0a242 100644 --- a/lib/node_modules/@stdlib/math/base/special/cosf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cosf/benchmark/c/benchmark.c @@ -91,7 +91,10 @@ static float random_uniform( const float min, const float max ) { * @return elapsed time in seconds */ static double benchmark( void ) { - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double t; float y; @@ -113,7 +116,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cosf/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cosf/benchmark/c/cephes/benchmark.c index ec128d9e6fc0..23be2803ccec 100644 --- a/lib/node_modules/@stdlib/math/base/special/cosf/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cosf/benchmark/c/cephes/benchmark.c @@ -96,7 +96,10 @@ static float random_uniform( const float min, const float max ) { * @return elapsed time in seconds */ static double benchmark( void ) { - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double t; float y; @@ -118,7 +121,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cosf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cosf/benchmark/c/native/benchmark.c index 7bb247278b4a..589a743c3360 100644 --- a/lib/node_modules/@stdlib/math/base/special/cosf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cosf/benchmark/c/native/benchmark.c @@ -92,7 +92,10 @@ static float random_uniform( const float min, const float max ) { * @return elapsed time in seconds */ static double benchmark( void ) { - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double t; float y; @@ -114,7 +117,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cosh/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cosh/benchmark/c/benchmark.c index 593d384fe91d..34be8e81c5d4 100644 --- a/lib/node_modules/@stdlib/math/base/special/cosh/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cosh/benchmark/c/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -111,7 +114,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cosh/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cosh/benchmark/c/cephes/benchmark.c index 4c73346f3617..06ae3318a734 100644 --- a/lib/node_modules/@stdlib/math/base/special/cosh/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cosh/benchmark/c/cephes/benchmark.c @@ -95,7 +95,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -116,7 +119,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cosh/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cosh/benchmark/c/native/benchmark.c index dd92efc36eda..587ea45dee71 100644 --- a/lib/node_modules/@stdlib/math/base/special/cosh/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cosh/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/coshf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/coshf/benchmark/c/benchmark.c index 8f5f2562996e..922f3870b81b 100644 --- a/lib/node_modules/@stdlib/math/base/special/coshf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/coshf/benchmark/c/benchmark.c @@ -90,7 +90,10 @@ static float rand_float( void ) { */ static double benchmark( void ) { double elapsed; - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } float y; double t; int i; @@ -111,7 +114,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/coshf/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/coshf/benchmark/c/cephes/benchmark.c index 768c7412a03e..8028b9fa76c7 100644 --- a/lib/node_modules/@stdlib/math/base/special/coshf/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/coshf/benchmark/c/cephes/benchmark.c @@ -95,7 +95,10 @@ static float rand_float( void ) { */ static double benchmark( void ) { double elapsed; - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } float y; double t; int i; @@ -116,7 +119,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/coshf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/coshf/benchmark/c/native/benchmark.c index 6c2aaf266997..e13155b2de9a 100644 --- a/lib/node_modules/@stdlib/math/base/special/coshf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/coshf/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static float rand_float( void ) { */ static double benchmark( void ) { double elapsed; - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } float y; double t; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cosm1/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cosm1/benchmark/c/cephes/benchmark.c index 92941279db68..cc5866fd7ade 100644 --- a/lib/node_modules/@stdlib/math/base/special/cosm1/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cosm1/benchmark/c/cephes/benchmark.c @@ -95,7 +95,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -116,7 +119,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cosm1/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cosm1/benchmark/c/native/benchmark.c index 2b427f8aaf1c..c4f3e447ec85 100644 --- a/lib/node_modules/@stdlib/math/base/special/cosm1/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cosm1/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cosm1f/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cosm1f/benchmark/c/native/benchmark.c index 3ad792f45d70..e6dd347c0957 100644 --- a/lib/node_modules/@stdlib/math/base/special/cosm1f/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cosm1f/benchmark/c/native/benchmark.c @@ -92,7 +92,10 @@ static float random_uniform( const float min, const float max ) { * @return elapsed time in seconds */ static double benchmark( void ) { - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double t; float y; @@ -114,7 +117,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cospi/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cospi/benchmark/c/native/benchmark.c index f56dc02520db..16bfa865dc65 100644 --- a/lib/node_modules/@stdlib/math/base/special/cospi/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cospi/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cospif/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cospif/benchmark/c/native/benchmark.c index d2bb04ca8ec0..9e7878fc641f 100644 --- a/lib/node_modules/@stdlib/math/base/special/cospif/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cospif/benchmark/c/native/benchmark.c @@ -92,7 +92,10 @@ static float random_uniform( const float min, const float max ) { * @return elapsed time in seconds */ static double benchmark( void ) { - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double t; float y; @@ -114,7 +117,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cot/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cot/benchmark/c/native/benchmark.c index a6869bfeecb0..70ad847eaafd 100644 --- a/lib/node_modules/@stdlib/math/base/special/cot/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cot/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cotd/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cotd/benchmark/c/native/benchmark.c index e7c28534c893..01da4ab94c8c 100644 --- a/lib/node_modules/@stdlib/math/base/special/cotd/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cotd/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cotdf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cotdf/benchmark/c/native/benchmark.c index da6e65094361..7ae20036bbaa 100644 --- a/lib/node_modules/@stdlib/math/base/special/cotdf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cotdf/benchmark/c/native/benchmark.c @@ -92,7 +92,10 @@ static float random_uniform( const float min, const float max ) { * @return elapsed time in seconds */ static double benchmark( void ) { - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double t; float y; @@ -114,7 +117,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cotf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cotf/benchmark/c/native/benchmark.c index c178660ab7b1..a43a9e1c6abe 100644 --- a/lib/node_modules/@stdlib/math/base/special/cotf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cotf/benchmark/c/native/benchmark.c @@ -92,7 +92,10 @@ static float random_uniform( const float min, const float max ) { * @return elapsed time in seconds */ static double benchmark( void ) { - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double t; float y; @@ -114,7 +117,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/coth/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/coth/benchmark/c/native/benchmark.c index 84012e33af20..bc87cd99f6b7 100644 --- a/lib/node_modules/@stdlib/math/base/special/coth/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/coth/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/covercos/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/covercos/benchmark/c/benchmark.c index 3f99dd1fdc6a..334daa1f7ef4 100644 --- a/lib/node_modules/@stdlib/math/base/special/covercos/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/covercos/benchmark/c/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -111,7 +114,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/covercos/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/covercos/benchmark/c/native/benchmark.c index 8e8bedeb771c..9759e5080e27 100644 --- a/lib/node_modules/@stdlib/math/base/special/covercos/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/covercos/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/covercosf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/covercosf/benchmark/c/benchmark.c index 3587e77b585c..c5a05ccd3b68 100644 --- a/lib/node_modules/@stdlib/math/base/special/covercosf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/covercosf/benchmark/c/benchmark.c @@ -91,7 +91,10 @@ static float random_uniform( const float min, const float max ) { * @return elapsed time in seconds */ static double benchmark( void ) { - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double t; float y; @@ -113,7 +116,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/covercosf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/covercosf/benchmark/c/native/benchmark.c index 2c26fa51e316..7897cfc07551 100644 --- a/lib/node_modules/@stdlib/math/base/special/covercosf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/covercosf/benchmark/c/native/benchmark.c @@ -92,7 +92,10 @@ static float random_uniform( const float min, const float max ) { * @return elapsed time in seconds */ static double benchmark( void ) { - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double t; float y; @@ -114,7 +117,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/coversin/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/coversin/benchmark/c/benchmark.c index fe1921f18aa6..200633204afe 100644 --- a/lib/node_modules/@stdlib/math/base/special/coversin/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/coversin/benchmark/c/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -111,7 +114,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/coversin/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/coversin/benchmark/c/native/benchmark.c index 7600597820bb..27eb92fd1e6e 100644 --- a/lib/node_modules/@stdlib/math/base/special/coversin/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/coversin/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/coversinf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/coversinf/benchmark/c/benchmark.c index 914a36c2d73e..483ec78d7d81 100644 --- a/lib/node_modules/@stdlib/math/base/special/coversinf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/coversinf/benchmark/c/benchmark.c @@ -91,7 +91,10 @@ static float random_uniform( const float min, const float max ) { * @return elapsed time in seconds */ static double benchmark( void ) { - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double t; float y; @@ -113,7 +116,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/coversinf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/coversinf/benchmark/c/native/benchmark.c index 165a657e88d6..1fb414a59f24 100644 --- a/lib/node_modules/@stdlib/math/base/special/coversinf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/coversinf/benchmark/c/native/benchmark.c @@ -92,7 +92,10 @@ static float random_uniform( const float min, const float max ) { * @return elapsed time in seconds */ static double benchmark( void ) { - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double t; float y; @@ -114,7 +117,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cphase/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cphase/benchmark/c/benchmark.c index 3405782519ce..8da48cea3b7b 100644 --- a/lib/node_modules/@stdlib/math/base/special/cphase/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cphase/benchmark/c/benchmark.c @@ -90,8 +90,14 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double re[ 100 ]; - double im[ 100 ]; + double *re = (double *)malloc( 100 * sizeof(double) ); + if ( re == NULL ) { + return 0.0; + } + double *im = (double *)malloc( 100 * sizeof(double) ); + if ( im == NULL ) { + return 0.0; + } double y; double t; int i; @@ -114,7 +120,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( im ); + free( re ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cphase/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cphase/benchmark/c/native/benchmark.c index 5201a225c96a..80279feae3e6 100644 --- a/lib/node_modules/@stdlib/math/base/special/cphase/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cphase/benchmark/c/native/benchmark.c @@ -93,8 +93,14 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double re[ 100 ]; - double im[ 100 ]; + double *re = (double *)malloc( 100 * sizeof(double) ); + if ( re == NULL ) { + return 0.0; + } + double *im = (double *)malloc( 100 * sizeof(double) ); + if ( im == NULL ) { + return 0.0; + } double y; double t; int i; @@ -119,7 +125,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( im ); + free( re ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cphasef/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cphasef/benchmark/c/benchmark.c index ef62a2f6919b..995b76d59613 100644 --- a/lib/node_modules/@stdlib/math/base/special/cphasef/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cphasef/benchmark/c/benchmark.c @@ -91,8 +91,14 @@ static float random_uniform( const float min, const float max ) { * @return elapsed time in seconds */ static double benchmark( void ) { - float re[ 100 ]; - float im[ 100 ]; + float *re = (float *)malloc( 100 * sizeof(float) ); + if ( re == NULL ) { + return 0.0; + } + float *im = (float *)malloc( 100 * sizeof(float) ); + if ( im == NULL ) { + return 0.0; + } double elapsed; double t; float y; @@ -116,7 +122,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( im ); + free( re ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cphasef/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cphasef/benchmark/c/native/benchmark.c index 3bb4e2906846..8d728bedf0ff 100644 --- a/lib/node_modules/@stdlib/math/base/special/cphasef/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cphasef/benchmark/c/native/benchmark.c @@ -94,8 +94,14 @@ static float random_uniform( const float min, const float max ) { * @return elapsed time in seconds */ static double benchmark( void ) { - float re[ 100 ]; - float im[ 100 ]; + float *re = (float *)malloc( 100 * sizeof(float) ); + if ( re == NULL ) { + return 0.0; + } + float *im = (float *)malloc( 100 * sizeof(float) ); + if ( im == NULL ) { + return 0.0; + } double elapsed; double t; float y; @@ -121,7 +127,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( im ); + free( re ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cpolar/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cpolar/benchmark/c/native/benchmark.c index a3a4b9092480..b4f4ab59cd86 100644 --- a/lib/node_modules/@stdlib/math/base/special/cpolar/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cpolar/benchmark/c/native/benchmark.c @@ -117,7 +117,7 @@ static double benchmark( void ) { if ( cphase != cphase ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cpolarf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cpolarf/benchmark/c/native/benchmark.c index 0e9010ce09d5..84e26ce91066 100644 --- a/lib/node_modules/@stdlib/math/base/special/cpolarf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cpolarf/benchmark/c/native/benchmark.c @@ -121,7 +121,7 @@ static double benchmark( void ) { if ( cphasef != cphasef ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cround/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cround/benchmark/c/benchmark.c index 2626de420205..e0b592fefff6 100644 --- a/lib/node_modules/@stdlib/math/base/special/cround/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cround/benchmark/c/benchmark.c @@ -90,8 +90,14 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double re[ 100 ]; - double im[ 100 ]; + double *re = (double *)malloc( 100 * sizeof(double) ); + if ( re == NULL ) { + return 0.0; + } + double *im = (double *)malloc( 100 * sizeof(double) ); + if ( im == NULL ) { + return 0.0; + } double t; int i; @@ -116,7 +122,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( im ); + free( re ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cround/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cround/benchmark/c/native/benchmark.c index 1e234ad55353..beb6d9da1e62 100644 --- a/lib/node_modules/@stdlib/math/base/special/cround/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cround/benchmark/c/native/benchmark.c @@ -93,7 +93,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double v[ 100 ]; + double *v = (double *)malloc( 100 * sizeof(double) ); + if ( v == NULL ) { + return 0.0; + } double re; double im; double t; @@ -120,7 +123,8 @@ static double benchmark( void ) { if ( im != im ) { printf( "unexpected result\n" ); } - return elapsed; + free( v ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/croundf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/croundf/benchmark/c/benchmark.c index d401405f833c..4725e1dc45ca 100644 --- a/lib/node_modules/@stdlib/math/base/special/croundf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/croundf/benchmark/c/benchmark.c @@ -91,8 +91,14 @@ static float rand_float( void ) { static double benchmark( void ) { double elapsed; double t; - float re[ 100 ]; - float im[ 100 ]; + float *re = (float *)malloc( 100 * sizeof(float) ); + if ( re == NULL ) { + return 0.0; + } + float *im = (float *)malloc( 100 * sizeof(float) ); + if ( im == NULL ) { + return 0.0; + } int i; float complex z; @@ -116,7 +122,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( im ); + free( re ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/croundf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/croundf/benchmark/c/native/benchmark.c index f63e74a12be0..c15937d5abb0 100644 --- a/lib/node_modules/@stdlib/math/base/special/croundf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/croundf/benchmark/c/native/benchmark.c @@ -93,7 +93,10 @@ static float rand_float( void ) { */ static double benchmark( void ) { double elapsed; - float v[ 100 ]; + float *v = (float *)malloc( 100 * sizeof(float) ); + if ( v == NULL ) { + return 0.0; + } double t; float re; float im; @@ -120,7 +123,8 @@ static double benchmark( void ) { if ( im != im ) { printf( "unexpected result\n" ); } - return elapsed; + free( v ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/croundn/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/croundn/benchmark/c/native/benchmark.c index 7c4cfc13bb9f..823f8511a39f 100644 --- a/lib/node_modules/@stdlib/math/base/special/croundn/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/croundn/benchmark/c/native/benchmark.c @@ -117,7 +117,7 @@ static double benchmark( void ) { if ( im != im ) { printf( "unexpected result\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/csc/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/csc/benchmark/c/native/benchmark.c index bcec6719493d..4046ee32757c 100644 --- a/lib/node_modules/@stdlib/math/base/special/csc/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/csc/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cscd/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cscd/benchmark/c/native/benchmark.c index f18a5fadd83e..3492bf27989f 100644 --- a/lib/node_modules/@stdlib/math/base/special/cscd/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cscd/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cscdf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cscdf/benchmark/c/native/benchmark.c index c1bd47644ca9..538480f7bf0b 100644 --- a/lib/node_modules/@stdlib/math/base/special/cscdf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cscdf/benchmark/c/native/benchmark.c @@ -92,7 +92,10 @@ static float random_uniform( const float min, const float max ) { * @return elapsed time in seconds */ static double benchmark( void ) { - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double t; float y; @@ -114,7 +117,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/cscf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/cscf/benchmark/c/native/benchmark.c index b734a6f14a2d..0281566434df 100644 --- a/lib/node_modules/@stdlib/math/base/special/cscf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/cscf/benchmark/c/native/benchmark.c @@ -92,7 +92,10 @@ static float random_uniform( const float min, const float max ) { * @return elapsed time in seconds */ static double benchmark( void ) { - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double t; float y; @@ -114,7 +117,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/csch/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/csch/benchmark/c/native/benchmark.c index c959414aee04..32044d91abeb 100644 --- a/lib/node_modules/@stdlib/math/base/special/csch/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/csch/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/csignum/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/csignum/benchmark/c/native/benchmark.c index 777d3ff6acae..69b931d20e24 100644 --- a/lib/node_modules/@stdlib/math/base/special/csignum/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/csignum/benchmark/c/native/benchmark.c @@ -117,7 +117,7 @@ static double benchmark( void ) { if ( im != im ) { printf( "unexpected result\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/csignumf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/csignumf/benchmark/c/native/benchmark.c index 34a2ed84abe6..d3d9dfa3764f 100644 --- a/lib/node_modules/@stdlib/math/base/special/csignumf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/csignumf/benchmark/c/native/benchmark.c @@ -117,7 +117,7 @@ static double benchmark( void ) { if ( im != im ) { printf( "unexpected result\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/deg2rad/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/deg2rad/benchmark/c/benchmark.c index 15fa5b722b6f..a9fc95531938 100644 --- a/lib/node_modules/@stdlib/math/base/special/deg2rad/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/deg2rad/benchmark/c/benchmark.c @@ -118,7 +118,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/deg2rad/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/deg2rad/benchmark/c/native/benchmark.c index e536e8b79a8b..88ca88a938ec 100644 --- a/lib/node_modules/@stdlib/math/base/special/deg2rad/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/deg2rad/benchmark/c/native/benchmark.c @@ -109,7 +109,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/deg2radf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/deg2radf/benchmark/c/benchmark.c index 27e7cc3bf0ec..964c84315d77 100644 --- a/lib/node_modules/@stdlib/math/base/special/deg2radf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/deg2radf/benchmark/c/benchmark.c @@ -118,7 +118,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/deg2radf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/deg2radf/benchmark/c/native/benchmark.c index 1dd28b9ca3e1..1b90d616d968 100644 --- a/lib/node_modules/@stdlib/math/base/special/deg2radf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/deg2radf/benchmark/c/native/benchmark.c @@ -109,7 +109,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/digamma/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/digamma/benchmark/c/cephes/benchmark.c index 271b21c69284..f4f8773a435b 100644 --- a/lib/node_modules/@stdlib/math/base/special/digamma/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/digamma/benchmark/c/cephes/benchmark.c @@ -113,7 +113,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/digamma/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/digamma/benchmark/c/native/benchmark.c index a6036c8bf3b4..fc52412e74c3 100644 --- a/lib/node_modules/@stdlib/math/base/special/digamma/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/digamma/benchmark/c/native/benchmark.c @@ -109,7 +109,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/dirac-delta/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/dirac-delta/benchmark/c/benchmark.c index 426186043f39..196200d5b92d 100644 --- a/lib/node_modules/@stdlib/math/base/special/dirac-delta/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/dirac-delta/benchmark/c/benchmark.c @@ -121,7 +121,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/dirac-delta/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/dirac-delta/benchmark/c/native/benchmark.c index c078582a3ed8..960e05e8a450 100644 --- a/lib/node_modules/@stdlib/math/base/special/dirac-delta/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/dirac-delta/benchmark/c/native/benchmark.c @@ -109,7 +109,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/dirac-deltaf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/dirac-deltaf/benchmark/c/benchmark.c index 13fd840a4104..cc018a3b182c 100644 --- a/lib/node_modules/@stdlib/math/base/special/dirac-deltaf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/dirac-deltaf/benchmark/c/benchmark.c @@ -121,7 +121,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/dirac-deltaf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/dirac-deltaf/benchmark/c/native/benchmark.c index 1b756508592f..f5c9b8059a75 100644 --- a/lib/node_modules/@stdlib/math/base/special/dirac-deltaf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/dirac-deltaf/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_float( void ) { */ static double benchmark( void ) { double elapsed; - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } float y; double t; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/dirichlet-eta/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/dirichlet-eta/benchmark/c/native/benchmark.c index 4df2552b7208..c3d00ebd4057 100644 --- a/lib/node_modules/@stdlib/math/base/special/dirichlet-eta/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/dirichlet-eta/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/ellipe/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/ellipe/benchmark/c/native/benchmark.c index decdce2b8598..fbd6aff80f50 100644 --- a/lib/node_modules/@stdlib/math/base/special/ellipe/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/ellipe/benchmark/c/native/benchmark.c @@ -109,7 +109,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/ellipj/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/ellipj/benchmark/c/native/benchmark.c index 64751e29cde8..53cc725eec09 100644 --- a/lib/node_modules/@stdlib/math/base/special/ellipj/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/ellipj/benchmark/c/native/benchmark.c @@ -92,7 +92,10 @@ static double random_uniform( const double min, const double max ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double sn; double cn; @@ -117,7 +120,8 @@ static double benchmark( void ) { if ( sn != sn || cn != cn || dn != dn || am != am ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/ellipk/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/ellipk/benchmark/c/native/benchmark.c index bbfe3dd7c7dc..da5b4c9e21a3 100644 --- a/lib/node_modules/@stdlib/math/base/special/ellipk/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/ellipk/benchmark/c/native/benchmark.c @@ -109,7 +109,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/erf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/erf/benchmark/c/benchmark.c index be466a682588..f8c2f01c3cfa 100644 --- a/lib/node_modules/@stdlib/math/base/special/erf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/erf/benchmark/c/benchmark.c @@ -89,7 +89,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double values[ 10 ]; + double *values = (double *)malloc( 10 * sizeof(double) ); + if ( values == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -110,7 +113,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( values ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/erf/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/erf/benchmark/c/cephes/benchmark.c index 8b384e802859..d41c20fd9b57 100644 --- a/lib/node_modules/@stdlib/math/base/special/erf/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/erf/benchmark/c/cephes/benchmark.c @@ -94,7 +94,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double values[ 10 ]; + double *values = (double *)malloc( 10 * sizeof(double) ); + if ( values == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -115,7 +118,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( values ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/erf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/erf/benchmark/c/native/benchmark.c index beda7fc2bc18..896ae37cc886 100644 --- a/lib/node_modules/@stdlib/math/base/special/erf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/erf/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double values[ 10 ]; + double *values = (double *)malloc( 10 * sizeof(double) ); + if ( values == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -111,7 +114,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( values ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/erfc/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/erfc/benchmark/c/benchmark.c index 3b130b0638ce..72f640c59002 100644 --- a/lib/node_modules/@stdlib/math/base/special/erfc/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/erfc/benchmark/c/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -111,7 +114,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/erfc/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/erfc/benchmark/c/cephes/benchmark.c index 08b94cee84ee..92e93546d011 100644 --- a/lib/node_modules/@stdlib/math/base/special/erfc/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/erfc/benchmark/c/cephes/benchmark.c @@ -95,7 +95,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -116,7 +119,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/erfc/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/erfc/benchmark/c/native/benchmark.c index 2527035a6af5..dccfc8cb74b2 100644 --- a/lib/node_modules/@stdlib/math/base/special/erfc/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/erfc/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/erfcinv/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/erfcinv/benchmark/c/native/benchmark.c index ccccfd0cd4bb..55bd439cbd37 100644 --- a/lib/node_modules/@stdlib/math/base/special/erfcinv/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/erfcinv/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/erfcx/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/erfcx/benchmark/c/native/benchmark.c index 8de960a0bc00..3231056da805 100644 --- a/lib/node_modules/@stdlib/math/base/special/erfcx/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/erfcx/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/erfinv/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/erfinv/benchmark/c/native/benchmark.c index 77eea00b81e3..3c1a2e783330 100644 --- a/lib/node_modules/@stdlib/math/base/special/erfinv/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/erfinv/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/exp/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/exp/benchmark/c/benchmark.c index d51ea3d815df..b40549b0395a 100644 --- a/lib/node_modules/@stdlib/math/base/special/exp/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/exp/benchmark/c/benchmark.c @@ -89,7 +89,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -111,7 +114,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/exp/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/exp/benchmark/c/cephes/benchmark.c index 1bef35099048..5b9c5dc5d9d0 100644 --- a/lib/node_modules/@stdlib/math/base/special/exp/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/exp/benchmark/c/cephes/benchmark.c @@ -94,7 +94,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -116,7 +119,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/exp/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/exp/benchmark/c/native/benchmark.c index 8a728918cc2f..998618026b73 100644 --- a/lib/node_modules/@stdlib/math/base/special/exp/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/exp/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/exp10/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/exp10/benchmark/c/cephes/benchmark.c index 6a4111f5a3e7..adb9e92bab94 100644 --- a/lib/node_modules/@stdlib/math/base/special/exp10/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/exp10/benchmark/c/cephes/benchmark.c @@ -113,7 +113,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/exp10/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/exp10/benchmark/c/native/benchmark.c index baa6d93c1bd1..6ad18a2a84d0 100644 --- a/lib/node_modules/@stdlib/math/base/special/exp10/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/exp10/benchmark/c/native/benchmark.c @@ -109,7 +109,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/exp2/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/exp2/benchmark/c/benchmark.c index c4228156179a..3ddb41d2117c 100644 --- a/lib/node_modules/@stdlib/math/base/special/exp2/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/exp2/benchmark/c/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 10 ]; + double *x = (double *)malloc( 10 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -110,7 +113,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/exp2/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/exp2/benchmark/c/cephes/benchmark.c index 46e978141b27..e422c6677958 100644 --- a/lib/node_modules/@stdlib/math/base/special/exp2/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/exp2/benchmark/c/cephes/benchmark.c @@ -95,7 +95,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 10 ]; + double *x = (double *)malloc( 10 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -115,7 +118,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/exp2/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/exp2/benchmark/c/native/benchmark.c index dacc50fa22e5..1a0a2d9e33e2 100644 --- a/lib/node_modules/@stdlib/math/base/special/exp2/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/exp2/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 10 ]; + double *x = (double *)malloc( 10 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -111,7 +114,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/expit/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/expit/benchmark/c/benchmark.c index 9c0a843344bf..d0c47d0ddb02 100644 --- a/lib/node_modules/@stdlib/math/base/special/expit/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/expit/benchmark/c/benchmark.c @@ -116,7 +116,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/expit/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/expit/benchmark/c/native/benchmark.c index 340c37512864..f82f64707291 100644 --- a/lib/node_modules/@stdlib/math/base/special/expit/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/expit/benchmark/c/native/benchmark.c @@ -107,7 +107,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/expm1/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/expm1/benchmark/c/benchmark.c index fa201b7c381e..41550a593888 100644 --- a/lib/node_modules/@stdlib/math/base/special/expm1/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/expm1/benchmark/c/benchmark.c @@ -108,7 +108,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/expm1/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/expm1/benchmark/c/cephes/benchmark.c index 4b3c2d107a84..c63bec029e82 100644 --- a/lib/node_modules/@stdlib/math/base/special/expm1/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/expm1/benchmark/c/cephes/benchmark.c @@ -113,7 +113,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/expm1/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/expm1/benchmark/c/native/benchmark.c index 83dc1bcdab82..825942ffe9e3 100644 --- a/lib/node_modules/@stdlib/math/base/special/expm1/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/expm1/benchmark/c/native/benchmark.c @@ -109,7 +109,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/expm1rel/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/expm1rel/benchmark/c/native/benchmark.c index 6a7629f239d2..a204f9f9674b 100644 --- a/lib/node_modules/@stdlib/math/base/special/expm1rel/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/expm1rel/benchmark/c/native/benchmark.c @@ -109,7 +109,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/factorial/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/factorial/benchmark/c/cephes/benchmark.c index 74187e1b7a0f..95ee08323a3e 100644 --- a/lib/node_modules/@stdlib/math/base/special/factorial/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/factorial/benchmark/c/cephes/benchmark.c @@ -113,7 +113,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/factorial/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/factorial/benchmark/c/native/benchmark.c index 392e7bb3b642..45d513867763 100644 --- a/lib/node_modules/@stdlib/math/base/special/factorial/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/factorial/benchmark/c/native/benchmark.c @@ -110,7 +110,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should return a nonnegative integer\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/factorial2/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/factorial2/benchmark/c/native/benchmark.c index 55bd85409d84..2185bbf59e56 100644 --- a/lib/node_modules/@stdlib/math/base/special/factorial2/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/factorial2/benchmark/c/native/benchmark.c @@ -110,7 +110,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/factorial2f/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/factorial2f/benchmark/c/native/benchmark.c index f7ac585400fe..da56467f2e54 100644 --- a/lib/node_modules/@stdlib/math/base/special/factorial2f/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/factorial2f/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static float rand_float( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double t; float y; @@ -113,7 +116,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/factorialln/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/factorialln/benchmark/c/benchmark.c index 2f1dfa8b2cd3..feb4b2af0f41 100644 --- a/lib/node_modules/@stdlib/math/base/special/factorialln/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/factorialln/benchmark/c/benchmark.c @@ -108,7 +108,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/factorialln/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/factorialln/benchmark/c/native/benchmark.c index 90e467b7b1b8..1d5a8abda041 100644 --- a/lib/node_modules/@stdlib/math/base/special/factorialln/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/factorialln/benchmark/c/native/benchmark.c @@ -109,7 +109,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should return a nonnegative integer\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/factoriallnf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/factoriallnf/benchmark/c/native/benchmark.c index 8d57170d7901..2729b5a5b06f 100644 --- a/lib/node_modules/@stdlib/math/base/special/factoriallnf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/factoriallnf/benchmark/c/native/benchmark.c @@ -92,7 +92,10 @@ static float random_uniform( const float min, const float max ) { * @return elapsed time in seconds */ static double benchmark( void ) { - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double t; float y; @@ -114,7 +117,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should return a nonnegative integer\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/falling-factorial/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/falling-factorial/benchmark/c/native/benchmark.c index 1c28a3ac773b..e8ed0a82f8e3 100644 --- a/lib/node_modules/@stdlib/math/base/special/falling-factorial/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/falling-factorial/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { int32_t n[ 100 ]; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double t; double y; @@ -114,7 +117,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should return a nonnegative integer\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/fast/abs/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/fast/abs/benchmark/c/native/benchmark.c index 00d2cc73f0e0..f37ca863eaa5 100644 --- a/lib/node_modules/@stdlib/math/base/special/fast/abs/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/fast/abs/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/fast/absf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/fast/absf/benchmark/c/native/benchmark.c index fea21e54ee19..0d0dec06d9fc 100644 --- a/lib/node_modules/@stdlib/math/base/special/fast/absf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/fast/absf/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static float rand_float( void ) { */ static double benchmark( void ) { double elapsed; - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + return 0.0; + } float y; double t; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/fast/acosh/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/fast/acosh/benchmark/c/native/benchmark.c index 2d71a0c6a687..8fb0110d9e7f 100644 --- a/lib/node_modules/@stdlib/math/base/special/fast/acosh/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/fast/acosh/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/fast/alpha-max-plus-beta-min/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/fast/alpha-max-plus-beta-min/benchmark/c/native/benchmark.c index f72539547cc9..91fa1b0da425 100644 --- a/lib/node_modules/@stdlib/math/base/special/fast/alpha-max-plus-beta-min/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/fast/alpha-max-plus-beta-min/benchmark/c/native/benchmark.c @@ -111,7 +111,7 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/fast/asinh/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/fast/asinh/benchmark/c/native/benchmark.c index fe877d209a92..633a06c5e8db 100644 --- a/lib/node_modules/@stdlib/math/base/special/fast/asinh/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/fast/asinh/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/fast/atanh/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/fast/atanh/benchmark/c/native/benchmark.c index 9f5c7ad65478..c80342f48235 100644 --- a/lib/node_modules/@stdlib/math/base/special/fast/atanh/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/fast/atanh/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/fast/atanhf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/fast/atanhf/benchmark/c/native/benchmark.c index 2f88f61487c8..c534ef2ea7d9 100644 --- a/lib/node_modules/@stdlib/math/base/special/fast/atanhf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/fast/atanhf/benchmark/c/native/benchmark.c @@ -115,8 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - free( x ); - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/fast/hypot/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/fast/hypot/benchmark/c/native/benchmark.c index 2d179f1ed953..e1e531d08d96 100644 --- a/lib/node_modules/@stdlib/math/base/special/fast/hypot/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/fast/hypot/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y[ 100 ]; double z; double t; @@ -114,7 +117,8 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/fast/hypotf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/fast/hypotf/benchmark/c/native/benchmark.c index 07f28a587d43..868ec310eb82 100644 --- a/lib/node_modules/@stdlib/math/base/special/fast/hypotf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/fast/hypotf/benchmark/c/native/benchmark.c @@ -114,7 +114,7 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/fast/max/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/fast/max/benchmark/c/native/benchmark.c index 5324a70e8d76..a47a6dbb0207 100644 --- a/lib/node_modules/@stdlib/math/base/special/fast/max/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/fast/max/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y[ 100 ]; double t; double z; @@ -114,7 +117,8 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/fast/maxf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/fast/maxf/benchmark/c/native/benchmark.c index c17ca2af3fde..b0e261b56a4b 100644 --- a/lib/node_modules/@stdlib/math/base/special/fast/maxf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/fast/maxf/benchmark/c/native/benchmark.c @@ -114,7 +114,7 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/fast/min/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/fast/min/benchmark/c/native/benchmark.c index cc61a90a3db6..5cef68159f96 100644 --- a/lib/node_modules/@stdlib/math/base/special/fast/min/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/fast/min/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y[ 100 ]; double t; double z; @@ -114,7 +117,8 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/fast/minf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/fast/minf/benchmark/c/native/benchmark.c index 212026579619..71909e18cfa1 100644 --- a/lib/node_modules/@stdlib/math/base/special/fast/minf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/fast/minf/benchmark/c/native/benchmark.c @@ -116,7 +116,7 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/fast/pow-int/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/fast/pow-int/benchmark/c/native/benchmark.c index a8c03d15e0d9..b660ad9ab061 100644 --- a/lib/node_modules/@stdlib/math/base/special/fast/pow-int/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/fast/pow-int/benchmark/c/native/benchmark.c @@ -114,7 +114,7 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/fast/uint32-log2/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/fast/uint32-log2/benchmark/c/native/benchmark.c index 1a6e6846b5c2..c7e3c95313fd 100644 --- a/lib/node_modules/@stdlib/math/base/special/fast/uint32-log2/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/fast/uint32-log2/benchmark/c/native/benchmark.c @@ -110,7 +110,7 @@ static double benchmark( void ) { if ( y > x ) { printf( "unexpected result\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/fast/uint32-sqrt/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/fast/uint32-sqrt/benchmark/c/native/benchmark.c index a7428a59b80b..92df66370ad6 100644 --- a/lib/node_modules/@stdlib/math/base/special/fast/uint32-sqrt/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/fast/uint32-sqrt/benchmark/c/native/benchmark.c @@ -110,7 +110,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/fibonacci-index/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/fibonacci-index/benchmark/c/benchmark.c index 1c66f755ab7a..531c87591431 100644 --- a/lib/node_modules/@stdlib/math/base/special/fibonacci-index/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/fibonacci-index/benchmark/c/benchmark.c @@ -123,7 +123,7 @@ static double benchmark( void ) { if ( y < 0 ) { printf( "should return a nonnegative integer\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/fibonacci-index/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/fibonacci-index/benchmark/c/native/benchmark.c index 4911a5282016..bc63026dd864 100644 --- a/lib/node_modules/@stdlib/math/base/special/fibonacci-index/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/fibonacci-index/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/fibonacci-indexf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/fibonacci-indexf/benchmark/c/benchmark.c index dd2cc8159e78..ba69590ce81e 100644 --- a/lib/node_modules/@stdlib/math/base/special/fibonacci-indexf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/fibonacci-indexf/benchmark/c/benchmark.c @@ -123,7 +123,7 @@ static double benchmark( void ) { if ( y < 0 ) { printf( "should return a nonnegative integer\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/fibonacci-indexf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/fibonacci-indexf/benchmark/c/native/benchmark.c index dbc1f2c31fbe..f1fe01acd6ca 100644 --- a/lib/node_modules/@stdlib/math/base/special/fibonacci-indexf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/fibonacci-indexf/benchmark/c/native/benchmark.c @@ -112,7 +112,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/fibonacci/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/fibonacci/benchmark/c/benchmark.c index 1dae474bfe60..d48e61a2d09a 100644 --- a/lib/node_modules/@stdlib/math/base/special/fibonacci/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/fibonacci/benchmark/c/benchmark.c @@ -124,7 +124,7 @@ static double benchmark( void ) { if ( y < 0 ) { printf( "should return a nonnegative integer\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/fibonacci/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/fibonacci/benchmark/c/native/benchmark.c index 98a68ae88712..890747931c06 100644 --- a/lib/node_modules/@stdlib/math/base/special/fibonacci/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/fibonacci/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double t; double y; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y < 0 ) { printf( "should return a nonnegative integer\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/fibonaccif/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/fibonaccif/benchmark/c/benchmark.c index 53d59b260dd5..b863a2b47f03 100644 --- a/lib/node_modules/@stdlib/math/base/special/fibonaccif/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/fibonaccif/benchmark/c/benchmark.c @@ -122,7 +122,7 @@ static double benchmark( void ) { if ( y < 0 ) { printf( "should return a nonnegative integer\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/fibonaccif/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/fibonaccif/benchmark/c/native/benchmark.c index d22366d44a61..582f349a07c7 100644 --- a/lib/node_modules/@stdlib/math/base/special/fibonaccif/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/fibonaccif/benchmark/c/native/benchmark.c @@ -109,7 +109,7 @@ static double benchmark( void ) { if ( y < 0 ) { printf( "should return a nonnegative integer\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/flipsign/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/flipsign/benchmark/c/native/benchmark.c index 1c19caa65ba2..a8d74ea2863f 100644 --- a/lib/node_modules/@stdlib/math/base/special/flipsign/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/flipsign/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y[ 100 ]; double z; double t; @@ -114,7 +117,8 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/flipsignf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/flipsignf/benchmark/c/native/benchmark.c index 97bf3efc2a57..1c48d03dfbfa 100644 --- a/lib/node_modules/@stdlib/math/base/special/flipsignf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/flipsignf/benchmark/c/native/benchmark.c @@ -114,7 +114,7 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/floor/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/floor/benchmark/c/benchmark.c index 4ba8e68f998d..d69bbdaaa4a4 100644 --- a/lib/node_modules/@stdlib/math/base/special/floor/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/floor/benchmark/c/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -111,7 +114,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/floor/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/floor/benchmark/c/cephes/benchmark.c index e1a7c68a909c..0e600b754f0a 100644 --- a/lib/node_modules/@stdlib/math/base/special/floor/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/floor/benchmark/c/cephes/benchmark.c @@ -95,7 +95,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -116,7 +119,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/floor/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/floor/benchmark/c/native/benchmark.c index d2df4a71e3d9..2a8340cb0638 100644 --- a/lib/node_modules/@stdlib/math/base/special/floor/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/floor/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/floor10/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/floor10/benchmark/c/native/benchmark.c index fd12b113112a..2e968e6dfcd3 100644 --- a/lib/node_modules/@stdlib/math/base/special/floor10/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/floor10/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/floor2/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/floor2/benchmark/c/native/benchmark.c index d82b7f22c0cd..d53ff5543f1e 100644 --- a/lib/node_modules/@stdlib/math/base/special/floor2/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/floor2/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/floor2f/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/floor2f/benchmark/c/native/benchmark.c index e06b6172b0c4..ab6b76db9804 100644 --- a/lib/node_modules/@stdlib/math/base/special/floor2f/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/floor2f/benchmark/c/native/benchmark.c @@ -112,7 +112,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/floorb/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/floorb/benchmark/c/native/benchmark.c index 7cfc7c91d3e8..a866b39c7a27 100644 --- a/lib/node_modules/@stdlib/math/base/special/floorb/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/floorb/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/floorf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/floorf/benchmark/c/benchmark.c index 20b0b3352b45..e8a522a7349c 100644 --- a/lib/node_modules/@stdlib/math/base/special/floorf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/floorf/benchmark/c/benchmark.c @@ -111,7 +111,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/floorf/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/floorf/benchmark/c/cephes/benchmark.c index f79244677d02..95d133906c31 100644 --- a/lib/node_modules/@stdlib/math/base/special/floorf/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/floorf/benchmark/c/cephes/benchmark.c @@ -116,7 +116,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/floorf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/floorf/benchmark/c/native/benchmark.c index bdcbc9e7a713..e93f8154db73 100644 --- a/lib/node_modules/@stdlib/math/base/special/floorf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/floorf/benchmark/c/native/benchmark.c @@ -112,7 +112,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/floorn/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/floorn/benchmark/c/native/benchmark.c index 537de38e6aee..51767e0a95b0 100644 --- a/lib/node_modules/@stdlib/math/base/special/floorn/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/floorn/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/floornf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/floornf/benchmark/c/native/benchmark.c index 3bb195119d6e..efe5b004c192 100644 --- a/lib/node_modules/@stdlib/math/base/special/floornf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/floornf/benchmark/c/native/benchmark.c @@ -114,7 +114,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/floorsd/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/floorsd/benchmark/c/native/benchmark.c index 919b37f8b99a..130c56c296dc 100644 --- a/lib/node_modules/@stdlib/math/base/special/floorsd/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/floorsd/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/fmod/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/fmod/benchmark/c/native/benchmark.c index e48a613f7861..bc1713e8dd10 100644 --- a/lib/node_modules/@stdlib/math/base/special/fmod/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/fmod/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y[ 100 ]; double z; double t; @@ -114,7 +117,8 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/fmodf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/fmodf/benchmark/c/native/benchmark.c index 0aec212097da..ec4bc14fb506 100644 --- a/lib/node_modules/@stdlib/math/base/special/fmodf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/fmodf/benchmark/c/native/benchmark.c @@ -114,7 +114,7 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/fresnel/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/fresnel/benchmark/c/cephes/benchmark.c index e620270e9bff..cf291e36af77 100644 --- a/lib/node_modules/@stdlib/math/base/special/fresnel/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/fresnel/benchmark/c/cephes/benchmark.c @@ -114,7 +114,9 @@ static double benchmark( void ) { if ( S != S || C != C ) { printf( "should not return NaN\n" ); } - return elapsed; + free( C ); + free( S ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/fresnel/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/fresnel/benchmark/c/native/benchmark.c index 43d699388deb..e54d5241842d 100644 --- a/lib/node_modules/@stdlib/math/base/special/fresnel/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/fresnel/benchmark/c/native/benchmark.c @@ -110,7 +110,7 @@ static double benchmark( void ) { if ( C != C || S != S ) { printf( "unexpected results\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/fresnelc/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/fresnelc/benchmark/c/cephes/benchmark.c index bc4bd8738239..9208a75901a0 100644 --- a/lib/node_modules/@stdlib/math/base/special/fresnelc/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/fresnelc/benchmark/c/cephes/benchmark.c @@ -114,7 +114,9 @@ static double benchmark( void ) { if ( S != S || C != C ) { printf( "should not return NaN\n" ); } - return elapsed; + free( C ); + free( S ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/fresnelc/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/fresnelc/benchmark/c/native/benchmark.c index 5af246a17193..b7488eb8fadf 100644 --- a/lib/node_modules/@stdlib/math/base/special/fresnelc/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/fresnelc/benchmark/c/native/benchmark.c @@ -109,7 +109,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/fresnels/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/fresnels/benchmark/c/cephes/benchmark.c index 05ca2c3dd7c4..1140fd37f507 100644 --- a/lib/node_modules/@stdlib/math/base/special/fresnels/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/fresnels/benchmark/c/cephes/benchmark.c @@ -114,7 +114,9 @@ static double benchmark( void ) { if ( S != S || C != C ) { printf( "should not return NaN\n" ); } - return elapsed; + free( C ); + free( S ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/fresnels/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/fresnels/benchmark/c/native/benchmark.c index a9bc4e6dfae0..1038a418399c 100644 --- a/lib/node_modules/@stdlib/math/base/special/fresnels/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/fresnels/benchmark/c/native/benchmark.c @@ -109,7 +109,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/frexp/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/frexp/benchmark/c/benchmark.c index af7a9e4cae55..9bb7ac0ed80e 100644 --- a/lib/node_modules/@stdlib/math/base/special/frexp/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/frexp/benchmark/c/benchmark.c @@ -109,7 +109,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/frexp/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/frexp/benchmark/c/cephes/benchmark.c index df3328a1bbee..f28bf09164f4 100644 --- a/lib/node_modules/@stdlib/math/base/special/frexp/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/frexp/benchmark/c/cephes/benchmark.c @@ -114,7 +114,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( exp ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/frexp/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/frexp/benchmark/c/native/benchmark.c index 7253fa9f31a8..bf06f1792f73 100644 --- a/lib/node_modules/@stdlib/math/base/special/frexp/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/frexp/benchmark/c/native/benchmark.c @@ -110,7 +110,7 @@ static double benchmark( void ) { if ( y != y || exp < -9999999 ) { printf( "unexpected results\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/frexpf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/frexpf/benchmark/c/benchmark.c index 0b42650e253c..bc629c78e30c 100644 --- a/lib/node_modules/@stdlib/math/base/special/frexpf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/frexpf/benchmark/c/benchmark.c @@ -114,7 +114,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/frexpf/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/frexpf/benchmark/c/cephes/benchmark.c index 5e4d21e0bbff..495941b7d4c9 100644 --- a/lib/node_modules/@stdlib/math/base/special/frexpf/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/frexpf/benchmark/c/cephes/benchmark.c @@ -119,7 +119,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( exp ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/frexpf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/frexpf/benchmark/c/native/benchmark.c index 89992974c251..f7919a3ba154 100644 --- a/lib/node_modules/@stdlib/math/base/special/frexpf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/frexpf/benchmark/c/native/benchmark.c @@ -115,7 +115,7 @@ static double benchmark( void ) { if ( y != y || exp < -9999999 ) { printf( "unexpected results\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/gamma-delta-ratio/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/gamma-delta-ratio/benchmark/c/native/benchmark.c index b5c1b82cd753..3add1aaf3bcd 100644 --- a/lib/node_modules/@stdlib/math/base/special/gamma-delta-ratio/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/gamma-delta-ratio/benchmark/c/native/benchmark.c @@ -91,8 +91,8 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double delta[ 100 ]; - double z[ 100 ]; + double *delta = (double*)malloc( 100 * sizeof(double) ); + double *z = (double*)malloc( 100 * sizeof(double) ); double y; double t; int i; @@ -114,7 +114,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( delta ); + free( z ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/gamma-lanczos-sum-expg-scaled/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/gamma-lanczos-sum-expg-scaled/benchmark/c/native/benchmark.c index 1bd6508fc116..6b7de201332a 100644 --- a/lib/node_modules/@stdlib/math/base/special/gamma-lanczos-sum-expg-scaled/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/gamma-lanczos-sum-expg-scaled/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/gamma-lanczos-sum-expg-scaledf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/gamma-lanczos-sum-expg-scaledf/benchmark/c/native/benchmark.c index d16061d3a9ea..8dd4c532fe9f 100644 --- a/lib/node_modules/@stdlib/math/base/special/gamma-lanczos-sum-expg-scaledf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/gamma-lanczos-sum-expg-scaledf/benchmark/c/native/benchmark.c @@ -114,7 +114,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/gamma-lanczos-sum/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/gamma-lanczos-sum/benchmark/c/native/benchmark.c index 72689e3beba0..b14b5c3d080c 100644 --- a/lib/node_modules/@stdlib/math/base/special/gamma-lanczos-sum/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/gamma-lanczos-sum/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/gamma/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/gamma/benchmark/c/benchmark.c index e7fc0442c1f1..ec4178d7790a 100644 --- a/lib/node_modules/@stdlib/math/base/special/gamma/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/gamma/benchmark/c/benchmark.c @@ -89,7 +89,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -111,7 +114,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/gamma/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/gamma/benchmark/c/cephes/benchmark.c index f2c9c8e17f9c..b5647ca24094 100644 --- a/lib/node_modules/@stdlib/math/base/special/gamma/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/gamma/benchmark/c/cephes/benchmark.c @@ -94,7 +94,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -116,7 +119,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/gamma/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/gamma/benchmark/c/native/benchmark.c index ce0f882a2625..6e27663eecc4 100644 --- a/lib/node_modules/@stdlib/math/base/special/gamma/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/gamma/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/gamma1pm1/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/gamma1pm1/benchmark/c/native/benchmark.c index fb04b75f11ce..4b907c94c6c9 100644 --- a/lib/node_modules/@stdlib/math/base/special/gamma1pm1/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/gamma1pm1/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/gammainc/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/gammainc/benchmark/c/cephes/benchmark.c index 934ce38adcb8..1386414199b3 100644 --- a/lib/node_modules/@stdlib/math/base/special/gammainc/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/gammainc/benchmark/c/cephes/benchmark.c @@ -96,7 +96,10 @@ static double rand_double( void ) { */ static double benchmark1( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y[ 100 ]; double z; double t; @@ -119,7 +122,8 @@ static double benchmark1( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** @@ -129,7 +133,10 @@ static double benchmark1( void ) { */ static double benchmark2( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y[ 100 ]; double z; double t; @@ -152,7 +159,8 @@ static double benchmark2( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/gammainc/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/gammainc/benchmark/c/native/benchmark.c index 7e9ec6c656cf..c32cd0b8079f 100644 --- a/lib/node_modules/@stdlib/math/base/special/gammainc/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/gammainc/benchmark/c/native/benchmark.c @@ -92,7 +92,10 @@ static double random_uniform( const double min, const double max ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double a[ 100 ]; double elapsed; double y; @@ -116,7 +119,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/gammaincinv/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/gammaincinv/benchmark/c/cephes/benchmark.c index 1d1684bcbc0d..8c90cde40a06 100644 --- a/lib/node_modules/@stdlib/math/base/special/gammaincinv/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/gammaincinv/benchmark/c/cephes/benchmark.c @@ -95,7 +95,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y[ 100 ]; double z; double t; @@ -118,7 +121,8 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/gammaln/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/gammaln/benchmark/c/benchmark.c index f7c04b9c24df..5632a5f369ed 100644 --- a/lib/node_modules/@stdlib/math/base/special/gammaln/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/gammaln/benchmark/c/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -111,7 +114,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/gammaln/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/gammaln/benchmark/c/cephes/benchmark.c index 8b568a095a25..a337e55439b7 100644 --- a/lib/node_modules/@stdlib/math/base/special/gammaln/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/gammaln/benchmark/c/cephes/benchmark.c @@ -95,7 +95,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -116,7 +119,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/gammaln/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/gammaln/benchmark/c/native/benchmark.c index fa823e29fbb3..6841ba4fc6d2 100644 --- a/lib/node_modules/@stdlib/math/base/special/gammaln/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/gammaln/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/gammasgn/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/gammasgn/benchmark/c/native/benchmark.c index 2a38ee4a9118..bfa6e2fe0f15 100644 --- a/lib/node_modules/@stdlib/math/base/special/gammasgn/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/gammasgn/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/gammasgnf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/gammasgnf/benchmark/c/native/benchmark.c index 65072dc80e1f..a712f7bc5bf1 100644 --- a/lib/node_modules/@stdlib/math/base/special/gammasgnf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/gammasgnf/benchmark/c/native/benchmark.c @@ -112,7 +112,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/gcd/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/gcd/benchmark/c/native/benchmark.c index ff33a4ed5252..c29cffc6bfd3 100644 --- a/lib/node_modules/@stdlib/math/base/special/gcd/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/gcd/benchmark/c/native/benchmark.c @@ -111,7 +111,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/gcdf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/gcdf/benchmark/c/native/benchmark.c index 3c8a1873acd8..e187293958c8 100644 --- a/lib/node_modules/@stdlib/math/base/special/gcdf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/gcdf/benchmark/c/native/benchmark.c @@ -114,7 +114,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/hacovercos/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/hacovercos/benchmark/c/benchmark.c index 19b9df568e7f..873bdbda55eb 100644 --- a/lib/node_modules/@stdlib/math/base/special/hacovercos/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/hacovercos/benchmark/c/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -111,7 +114,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/hacovercos/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/hacovercos/benchmark/c/native/benchmark.c index d2856fcb624c..14ca53a99e08 100644 --- a/lib/node_modules/@stdlib/math/base/special/hacovercos/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/hacovercos/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/hacovercosf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/hacovercosf/benchmark/c/benchmark.c index 51041b5739d4..425c3c12e781 100644 --- a/lib/node_modules/@stdlib/math/base/special/hacovercosf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/hacovercosf/benchmark/c/benchmark.c @@ -113,7 +113,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/hacovercosf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/hacovercosf/benchmark/c/native/benchmark.c index 4b1a9e41602a..1666cd1efc89 100644 --- a/lib/node_modules/@stdlib/math/base/special/hacovercosf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/hacovercosf/benchmark/c/native/benchmark.c @@ -114,7 +114,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/hacoversin/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/hacoversin/benchmark/c/benchmark.c index bdcc3e9f41af..d870d36e2a63 100644 --- a/lib/node_modules/@stdlib/math/base/special/hacoversin/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/hacoversin/benchmark/c/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -111,7 +114,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/hacoversin/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/hacoversin/benchmark/c/native/benchmark.c index d6cfdf15577b..e1ab1b8a6e91 100644 --- a/lib/node_modules/@stdlib/math/base/special/hacoversin/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/hacoversin/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/hacoversinf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/hacoversinf/benchmark/c/benchmark.c index 2b84761f7c3a..11731080d9e9 100644 --- a/lib/node_modules/@stdlib/math/base/special/hacoversinf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/hacoversinf/benchmark/c/benchmark.c @@ -113,7 +113,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/hacoversinf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/hacoversinf/benchmark/c/native/benchmark.c index 5d968a5a39c2..c0c91c8ae1b6 100644 --- a/lib/node_modules/@stdlib/math/base/special/hacoversinf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/hacoversinf/benchmark/c/native/benchmark.c @@ -114,7 +114,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/havercos/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/havercos/benchmark/c/benchmark.c index c402cfaa5d22..cfdebd06e7d2 100644 --- a/lib/node_modules/@stdlib/math/base/special/havercos/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/havercos/benchmark/c/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -111,7 +114,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/havercos/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/havercos/benchmark/c/native/benchmark.c index b4ba8939edda..b7bd8564e39c 100644 --- a/lib/node_modules/@stdlib/math/base/special/havercos/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/havercos/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/havercosf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/havercosf/benchmark/c/benchmark.c index c3e68f85ea69..8be9e5402f9c 100644 --- a/lib/node_modules/@stdlib/math/base/special/havercosf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/havercosf/benchmark/c/benchmark.c @@ -113,7 +113,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/havercosf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/havercosf/benchmark/c/native/benchmark.c index 27284be926fb..22956906a952 100644 --- a/lib/node_modules/@stdlib/math/base/special/havercosf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/havercosf/benchmark/c/native/benchmark.c @@ -114,7 +114,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/haversin/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/haversin/benchmark/c/benchmark.c index ad642cf0adbd..0c956df3d336 100644 --- a/lib/node_modules/@stdlib/math/base/special/haversin/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/haversin/benchmark/c/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -111,7 +114,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/haversin/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/haversin/benchmark/c/native/benchmark.c index fa3df0b9f09f..4df2d02468d6 100644 --- a/lib/node_modules/@stdlib/math/base/special/haversin/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/haversin/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/haversinf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/haversinf/benchmark/c/benchmark.c index 87a4654e6119..78e468dfea67 100644 --- a/lib/node_modules/@stdlib/math/base/special/haversinf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/haversinf/benchmark/c/benchmark.c @@ -113,7 +113,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/haversinf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/haversinf/benchmark/c/native/benchmark.c index ba3fb9ab0baa..3364ca632cec 100644 --- a/lib/node_modules/@stdlib/math/base/special/haversinf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/haversinf/benchmark/c/native/benchmark.c @@ -114,7 +114,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/heaviside/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/heaviside/benchmark/c/benchmark.c index 77516b044516..3a55bf8d6acb 100644 --- a/lib/node_modules/@stdlib/math/base/special/heaviside/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/heaviside/benchmark/c/benchmark.c @@ -103,7 +103,10 @@ double heaviside( double x ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -124,7 +127,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/heaviside/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/heaviside/benchmark/c/native/benchmark.c index 16c8a0f1f107..aceba4ac6ddd 100644 --- a/lib/node_modules/@stdlib/math/base/special/heaviside/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/heaviside/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double t; double y; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/heavisidef/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/heavisidef/benchmark/c/benchmark.c index 228fcb13cf65..133d3b1c2cd5 100644 --- a/lib/node_modules/@stdlib/math/base/special/heavisidef/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/heavisidef/benchmark/c/benchmark.c @@ -124,7 +124,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/heavisidef/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/heavisidef/benchmark/c/native/benchmark.c index f0c67bab842e..c875d4d1a349 100644 --- a/lib/node_modules/@stdlib/math/base/special/heavisidef/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/heavisidef/benchmark/c/native/benchmark.c @@ -112,7 +112,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/hyp2f1/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/hyp2f1/benchmark/c/benchmark.c index 270274422145..58909a40718a 100644 --- a/lib/node_modules/@stdlib/math/base/special/hyp2f1/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/hyp2f1/benchmark/c/benchmark.c @@ -93,7 +93,10 @@ static double benchmark( void ) { double a[ 100 ]; double b[ 100 ]; double c[ 100 ]; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -118,7 +121,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/hypot/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/hypot/benchmark/c/benchmark.c index f8621d735455..43bf21843d0e 100644 --- a/lib/node_modules/@stdlib/math/base/special/hypot/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/hypot/benchmark/c/benchmark.c @@ -110,7 +110,7 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/hypot/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/hypot/benchmark/c/native/benchmark.c index 4355b034728e..82bb3df1259d 100644 --- a/lib/node_modules/@stdlib/math/base/special/hypot/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/hypot/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y[ 100 ]; double z; double t; @@ -114,7 +117,8 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/hypotf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/hypotf/benchmark/c/benchmark.c index 103884bbd6f0..673acd4ef9d4 100644 --- a/lib/node_modules/@stdlib/math/base/special/hypotf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/hypotf/benchmark/c/benchmark.c @@ -110,7 +110,7 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/hypotf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/hypotf/benchmark/c/native/benchmark.c index b5190aa3e6a8..f1808429dff2 100644 --- a/lib/node_modules/@stdlib/math/base/special/hypotf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/hypotf/benchmark/c/native/benchmark.c @@ -114,7 +114,7 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/inv/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/inv/benchmark/c/benchmark.c index acc97686f94d..df196a9e22d2 100644 --- a/lib/node_modules/@stdlib/math/base/special/inv/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/inv/benchmark/c/benchmark.c @@ -100,7 +100,10 @@ double inv( double x ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -121,7 +124,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/inv/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/inv/benchmark/c/native/benchmark.c index 5933dfd90150..af0dfa36b1a9 100644 --- a/lib/node_modules/@stdlib/math/base/special/inv/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/inv/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y; double t; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/invf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/invf/benchmark/c/benchmark.c index da2e54d06b0e..908d4a02b321 100644 --- a/lib/node_modules/@stdlib/math/base/special/invf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/invf/benchmark/c/benchmark.c @@ -121,7 +121,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/invf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/invf/benchmark/c/native/benchmark.c index 638a2e863cf7..71d0e89252c7 100644 --- a/lib/node_modules/@stdlib/math/base/special/invf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/invf/benchmark/c/native/benchmark.c @@ -112,7 +112,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/kernel-cos/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/kernel-cos/benchmark/c/native/benchmark.c index 4f95d929dd12..a3807045eaab 100644 --- a/lib/node_modules/@stdlib/math/base/special/kernel-cos/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/kernel-cos/benchmark/c/native/benchmark.c @@ -109,7 +109,7 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/kernel-cosf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/kernel-cosf/benchmark/c/native/benchmark.c index 5770744a77d4..5b0f98f2b6e3 100644 --- a/lib/node_modules/@stdlib/math/base/special/kernel-cosf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/kernel-cosf/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double t; float z; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/kernel-log1p/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/kernel-log1p/benchmark/c/native/benchmark.c index 35f39d6a94da..fa875d1a46ca 100644 --- a/lib/node_modules/@stdlib/math/base/special/kernel-log1p/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/kernel-log1p/benchmark/c/native/benchmark.c @@ -114,7 +114,7 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/kernel-log1pf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/kernel-log1pf/benchmark/c/native/benchmark.c index a4a050992cf3..c23a012b794b 100644 --- a/lib/node_modules/@stdlib/math/base/special/kernel-log1pf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/kernel-log1pf/benchmark/c/native/benchmark.c @@ -114,7 +114,7 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/kernel-sin/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/kernel-sin/benchmark/c/native/benchmark.c index f7a3472c10c8..65e7e4fb3255 100644 --- a/lib/node_modules/@stdlib/math/base/special/kernel-sin/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/kernel-sin/benchmark/c/native/benchmark.c @@ -109,7 +109,7 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/kernel-sincos/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/kernel-sincos/benchmark/c/native/benchmark.c index 5bcda79864fc..564bb2832f74 100644 --- a/lib/node_modules/@stdlib/math/base/special/kernel-sincos/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/kernel-sincos/benchmark/c/native/benchmark.c @@ -92,7 +92,10 @@ static double random_uniform( const double min, const double max ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double cosine; double sine; @@ -115,7 +118,8 @@ static double benchmark( void ) { if ( cosine != cosine || sine != sine ) { printf( "unexpected results\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/kernel-sincosf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/kernel-sincosf/benchmark/c/native/benchmark.c index 3388804d3e8b..2b5b44e51adb 100644 --- a/lib/node_modules/@stdlib/math/base/special/kernel-sincosf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/kernel-sincosf/benchmark/c/native/benchmark.c @@ -92,7 +92,10 @@ static double random_uniform( const double min, const double max ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; float cosine; float sine; @@ -115,7 +118,8 @@ static double benchmark( void ) { if ( cosine != cosine || sine != sine ) { printf( "unexpected results\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/kernel-sinf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/kernel-sinf/benchmark/c/native/benchmark.c index e143aca8fc79..de06a6789e79 100644 --- a/lib/node_modules/@stdlib/math/base/special/kernel-sinf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/kernel-sinf/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double t; float z; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/kernel-tan/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/kernel-tan/benchmark/c/native/benchmark.c index 3cb74bb2af8d..a88866a65bb9 100644 --- a/lib/node_modules/@stdlib/math/base/special/kernel-tan/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/kernel-tan/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double z; double t; int i; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/kernel-tanf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/kernel-tanf/benchmark/c/native/benchmark.c index 7ac0d5f0d35e..732be9a84c2c 100644 --- a/lib/node_modules/@stdlib/math/base/special/kernel-tanf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/kernel-tanf/benchmark/c/native/benchmark.c @@ -92,7 +92,10 @@ static double random_uniform( const double min, const double max ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double t; float z; @@ -114,7 +117,8 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/kronecker-delta/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/kronecker-delta/benchmark/c/benchmark.c index 05acae11207d..0a92b64798a6 100644 --- a/lib/node_modules/@stdlib/math/base/special/kronecker-delta/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/kronecker-delta/benchmark/c/benchmark.c @@ -122,7 +122,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/kronecker-delta/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/kronecker-delta/benchmark/c/native/benchmark.c index 4f17fb785083..44d6e1db69ca 100644 --- a/lib/node_modules/@stdlib/math/base/special/kronecker-delta/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/kronecker-delta/benchmark/c/native/benchmark.c @@ -109,7 +109,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/kronecker-deltaf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/kronecker-deltaf/benchmark/c/benchmark.c index f6a838f9e12d..f285fc8b6a23 100644 --- a/lib/node_modules/@stdlib/math/base/special/kronecker-deltaf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/kronecker-deltaf/benchmark/c/benchmark.c @@ -122,7 +122,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/kronecker-deltaf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/kronecker-deltaf/benchmark/c/native/benchmark.c index c6e3898a5657..7b8141b8639b 100644 --- a/lib/node_modules/@stdlib/math/base/special/kronecker-deltaf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/kronecker-deltaf/benchmark/c/native/benchmark.c @@ -109,7 +109,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/labs/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/labs/benchmark/c/native/benchmark.c index b7fe0408d879..70a04d5b5322 100644 --- a/lib/node_modules/@stdlib/math/base/special/labs/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/labs/benchmark/c/native/benchmark.c @@ -100,7 +100,7 @@ static double benchmark( void ) { if ( y < 0 ) { printf( "should not return a negative number\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/lcm/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/lcm/benchmark/c/native/benchmark.c index b726fd8169fb..f671b7b83989 100644 --- a/lib/node_modules/@stdlib/math/base/special/lcm/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/lcm/benchmark/c/native/benchmark.c @@ -91,7 +91,10 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y[ 100 ]; double z; double t; @@ -114,7 +117,8 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/lcmf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/lcmf/benchmark/c/native/benchmark.c index 0bd824ad5e14..f24233a724cd 100644 --- a/lib/node_modules/@stdlib/math/base/special/lcmf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/lcmf/benchmark/c/native/benchmark.c @@ -91,8 +91,8 @@ static float rand_float( void ) { */ static double benchmark( void ) { double elapsed; - float a[ 100 ]; - float b[ 100 ]; + float *a = (float*)malloc( 100 * sizeof(float) ); + float *b = (float*)malloc( 100 * sizeof(float) ); double t; float y; int i; @@ -114,7 +114,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( a ); + free( b ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/ldexp/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/ldexp/benchmark/c/benchmark.c index 7da27dd79633..748d9d15ee0d 100644 --- a/lib/node_modules/@stdlib/math/base/special/ldexp/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/ldexp/benchmark/c/benchmark.c @@ -90,8 +90,8 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; - double y[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); + double *y = (double*)malloc( 100 * sizeof(double) ); double z; double t; int i; @@ -113,7 +113,9 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/ldexp/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/ldexp/benchmark/c/cephes/benchmark.c index 084dc4fd0f4b..fcdce6c5566b 100644 --- a/lib/node_modules/@stdlib/math/base/special/ldexp/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/ldexp/benchmark/c/cephes/benchmark.c @@ -95,8 +95,8 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; - double y[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); + double *y = (double*)malloc( 100 * sizeof(double) ); double z; double t; int i; @@ -118,7 +118,9 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/ldexp/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/ldexp/benchmark/c/native/benchmark.c index ff5d6ddf7ffc..4d9a18e427a9 100644 --- a/lib/node_modules/@stdlib/math/base/special/ldexp/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/ldexp/benchmark/c/native/benchmark.c @@ -91,8 +91,8 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; - double y[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); + double *y = (double*)malloc( 100 * sizeof(double) ); double z; double t; int i; @@ -114,7 +114,9 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/ldexpf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/ldexpf/benchmark/c/native/benchmark.c index 6279a35db628..48ce4603e7be 100644 --- a/lib/node_modules/@stdlib/math/base/special/ldexpf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/ldexpf/benchmark/c/native/benchmark.c @@ -92,8 +92,8 @@ static float rand_float( void ) { static double benchmark( void ) { double elapsed; double t; - float x[ 100 ]; - float y[ 100 ]; + float *x = (float*)malloc( 100 * sizeof(float) ); + float *y = (float*)malloc( 100 * sizeof(float) ); float z; int i; @@ -114,7 +114,9 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/ln/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/ln/benchmark/c/benchmark.c index ea6547724154..28b709a66796 100644 --- a/lib/node_modules/@stdlib/math/base/special/ln/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/ln/benchmark/c/benchmark.c @@ -90,7 +90,7 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 10 ]; + double *x = (double*)malloc( 10 * sizeof(double) ); double y; double t; int i; @@ -110,7 +110,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/ln/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/ln/benchmark/c/cephes/benchmark.c index 152f2c585b1e..22f3f6d67cbf 100644 --- a/lib/node_modules/@stdlib/math/base/special/ln/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/ln/benchmark/c/cephes/benchmark.c @@ -95,7 +95,7 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 10 ]; + double *x = (double*)malloc( 10 * sizeof(double) ); double y; double t; int i; @@ -115,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/ln/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/ln/benchmark/c/native/benchmark.c index 62cff627faca..a34f850c80a5 100644 --- a/lib/node_modules/@stdlib/math/base/special/ln/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/ln/benchmark/c/native/benchmark.c @@ -91,7 +91,7 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 10 ]; + double *x = (double*)malloc( 10 * sizeof(double) ); double y; double t; int i; @@ -111,7 +111,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/lnf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/lnf/benchmark/c/native/benchmark.c index c02eb597cffa..a4fdfc3579f2 100644 --- a/lib/node_modules/@stdlib/math/base/special/lnf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/lnf/benchmark/c/native/benchmark.c @@ -92,7 +92,7 @@ static float rand_float( void ) { static double benchmark( void ) { double elapsed; double t; - float x[ 100 ]; + float *x = (float*)malloc( 100 * sizeof(float) ); float y; int i; @@ -112,7 +112,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/lnf/benchmark/c/native/sedtqFxPz b/lib/node_modules/@stdlib/math/base/special/lnf/benchmark/c/native/sedtqFxPz new file mode 100644 index 000000000000..8bcd92679cf2 --- /dev/null +++ b/lib/node_modules/@stdlib/math/base/special/lnf/benchmark/c/native/sedtqFxPz @@ -0,0 +1,137 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2024 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +#include "stdlib/math/base/special/lnf.h" +#include +#include +#include +#include +#include + +#define NAME "lnf" +#define ITERATIONS 1000000 +#define REPEATS 3 + +/** +* Prints the TAP version. +*/ +static void print_version( void ) { + printf( "TAP version 13\n" ); +} + +/** +* Prints the TAP summary. +* +* @param total total number of tests +* @param passing total number of passing tests +*/ +static void print_summary( int total, int passing ) { + printf( "#\n" ); + printf( "1..%d\n", total ); // TAP plan + printf( "# total %d\n", total ); + printf( "# pass %d\n", passing ); + printf( "#\n" ); + printf( "# ok\n" ); +} + +/** +* Prints benchmarks results. +* +* @param elapsed elapsed time in seconds +*/ +static void print_results( double elapsed ) { + double rate = (double)ITERATIONS / elapsed; + printf( " ---\n" ); + printf( " iterations: %d\n", ITERATIONS ); + printf( " elapsed: %0.9f\n", elapsed ); + printf( " rate: %0.9f\n", rate ); + printf( " ...\n" ); +} + +/** +* Returns a clock time. +* +* @return clock time +*/ +static double tic( void ) { + struct timeval now; + gettimeofday( &now, NULL ); + return (double)now.tv_sec + (double)now.tv_usec/1.0e6; +} + +/** +* Generates a random number on the interval [0,1). +* +* @return random number +*/ +static float rand_float( void ) { + int r = rand(); + return (float)r / ( (float)RAND_MAX + 1.0f ); +} + +/** +* Runs a benchmark. +* +* @return elapsed time in seconds +*/ +static double benchmark( void ) { + double elapsed; + double t; + float *x = (float*)malloc( 100 * sizeof(float) ); + float y; + int i; + + for ( i = 0; i < 100; i++ ) { + x[ i ] = ( 10000.0f * rand_float() ) - 0.0f; + } + + t = tic(); + for ( i = 0; i < ITERATIONS; i++ ) { + y = stdlib_base_lnf( x[ i%100 ] ); + if ( y != y ) { + printf( "should not return NaN\n" ); + break; + } + } + elapsed = tic() - t; + if ( y != y ) { + printf( "should not return NaN\n" ); + } + free( x ); + return elapsed; +} + +/** +* Main execution sequence. +*/ +int main( void ) { + double elapsed; + int i; + + // Use the current time to seed the random number generator: + srand( time( NULL ) ); + + print_version(); + for ( i = 0; i < REPEATS; i++ ) { + printf( "# c::native::%s\n", NAME ); + elapsed = benchmark(); + print_results( elapsed ); + printf( "ok %d benchmark finished\n", i+1 ); + } + print_summary( REPEATS, REPEATS ); +} diff --git a/lib/node_modules/@stdlib/math/base/special/log/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/log/benchmark/c/benchmark.c index cf3843a872bd..5d3c8cda122f 100644 --- a/lib/node_modules/@stdlib/math/base/special/log/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/log/benchmark/c/benchmark.c @@ -121,7 +121,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/log/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/log/benchmark/c/native/benchmark.c index 8f1ac2b73344..6eb4733d332a 100644 --- a/lib/node_modules/@stdlib/math/base/special/log/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/log/benchmark/c/native/benchmark.c @@ -111,7 +111,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/log10/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/log10/benchmark/c/benchmark.c index 3d01990d471b..1daba7ddda0a 100644 --- a/lib/node_modules/@stdlib/math/base/special/log10/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/log10/benchmark/c/benchmark.c @@ -90,7 +90,7 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); double y; double t; int i; @@ -111,7 +111,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/log10/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/log10/benchmark/c/cephes/benchmark.c index ce56d8bb0653..92ba12b05dac 100644 --- a/lib/node_modules/@stdlib/math/base/special/log10/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/log10/benchmark/c/cephes/benchmark.c @@ -95,7 +95,7 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); double y; double t; int i; @@ -116,7 +116,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/log10/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/log10/benchmark/c/native/benchmark.c index 6045c7d623b3..fc17fe98a90d 100644 --- a/lib/node_modules/@stdlib/math/base/special/log10/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/log10/benchmark/c/native/benchmark.c @@ -91,7 +91,7 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); double y; double t; int i; @@ -112,7 +112,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/log1mexp/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/log1mexp/benchmark/c/benchmark.c index 1756a41707c3..9c1e3e510604 100644 --- a/lib/node_modules/@stdlib/math/base/special/log1mexp/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/log1mexp/benchmark/c/benchmark.c @@ -109,7 +109,7 @@ double log1mexp( double x ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); double y; double t; int i; @@ -130,7 +130,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/log1mexp/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/log1mexp/benchmark/c/native/benchmark.c index 0165eba0be44..3237c2e32c71 100644 --- a/lib/node_modules/@stdlib/math/base/special/log1mexp/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/log1mexp/benchmark/c/native/benchmark.c @@ -92,7 +92,7 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); double y; double t; int i; @@ -113,7 +113,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/log1p/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/log1p/benchmark/c/benchmark.c index 5696642954e7..c90b8ec78207 100644 --- a/lib/node_modules/@stdlib/math/base/special/log1p/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/log1p/benchmark/c/benchmark.c @@ -90,7 +90,7 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); double y; double t; int i; @@ -111,7 +111,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/log1p/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/log1p/benchmark/c/cephes/benchmark.c index 058c5e763475..ce11676a001d 100644 --- a/lib/node_modules/@stdlib/math/base/special/log1p/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/log1p/benchmark/c/cephes/benchmark.c @@ -95,7 +95,7 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); double y; double t; int i; @@ -116,7 +116,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/log1p/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/log1p/benchmark/c/native/benchmark.c index 6be1b7673ace..ec44960ba3dd 100644 --- a/lib/node_modules/@stdlib/math/base/special/log1p/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/log1p/benchmark/c/native/benchmark.c @@ -91,7 +91,7 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); double y; double t; int i; @@ -112,7 +112,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/log1pexp/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/log1pexp/benchmark/c/benchmark.c index 71c83ed74635..232507612a74 100644 --- a/lib/node_modules/@stdlib/math/base/special/log1pexp/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/log1pexp/benchmark/c/benchmark.c @@ -111,7 +111,7 @@ double log1pexp( double x ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); double y; double t; int i; @@ -132,7 +132,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/log1pexp/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/log1pexp/benchmark/c/native/benchmark.c index 01734827808d..7cc80938b7c4 100644 --- a/lib/node_modules/@stdlib/math/base/special/log1pexp/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/log1pexp/benchmark/c/native/benchmark.c @@ -91,7 +91,7 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); double y; double t; int i; @@ -112,7 +112,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/log1pf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/log1pf/benchmark/c/native/benchmark.c index a978a249dc93..308652e05ccc 100644 --- a/lib/node_modules/@stdlib/math/base/special/log1pf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/log1pf/benchmark/c/native/benchmark.c @@ -92,7 +92,7 @@ static float random_uniform( const float min, const float max ) { * @return elapsed time in seconds */ static double benchmark( void ) { - float x[ 100 ]; + float *x = (float*)malloc( 100 * sizeof(float) ); double elapsed; double t; float y; @@ -114,7 +114,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/log1pmx/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/log1pmx/benchmark/c/benchmark.c index a813c8161c04..e4be2512dd01 100644 --- a/lib/node_modules/@stdlib/math/base/special/log1pmx/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/log1pmx/benchmark/c/benchmark.c @@ -113,7 +113,7 @@ double log1pmx( double x ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); double y; double t; int i; @@ -134,7 +134,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/log1pmx/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/log1pmx/benchmark/c/native/benchmark.c index a37d783d445f..192c3964af8c 100644 --- a/lib/node_modules/@stdlib/math/base/special/log1pmx/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/log1pmx/benchmark/c/native/benchmark.c @@ -91,7 +91,7 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); double y; double t; int i; @@ -112,7 +112,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/log2/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/log2/benchmark/c/benchmark.c index b8e69fac155d..8b40220afd7a 100644 --- a/lib/node_modules/@stdlib/math/base/special/log2/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/log2/benchmark/c/benchmark.c @@ -90,7 +90,7 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); double y; double t; int i; @@ -111,7 +111,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/log2/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/log2/benchmark/c/cephes/benchmark.c index ec7c351f137d..f9f1242104e7 100644 --- a/lib/node_modules/@stdlib/math/base/special/log2/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/log2/benchmark/c/cephes/benchmark.c @@ -95,7 +95,7 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); double y; double t; int i; @@ -116,7 +116,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/log2/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/log2/benchmark/c/native/benchmark.c index 0789fa6a32af..0966000fc6ef 100644 --- a/lib/node_modules/@stdlib/math/base/special/log2/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/log2/benchmark/c/native/benchmark.c @@ -91,7 +91,7 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); double y; double t; int i; @@ -112,7 +112,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/logaddexp/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/logaddexp/benchmark/c/benchmark.c index bb7be5af954f..54ee617ab215 100644 --- a/lib/node_modules/@stdlib/math/base/special/logaddexp/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/logaddexp/benchmark/c/benchmark.c @@ -112,7 +112,10 @@ double logaddexp( double x, double y ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y[ 100 ]; double v; double t; @@ -135,7 +138,8 @@ static double benchmark( void ) { if ( v != v ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/logaddexp/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/logaddexp/benchmark/c/native/benchmark.c index cbe885d9f747..087fd6a04697 100644 --- a/lib/node_modules/@stdlib/math/base/special/logaddexp/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/logaddexp/benchmark/c/native/benchmark.c @@ -92,8 +92,8 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; - double y[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); + double *y = (double*)malloc( 100 * sizeof(double) ); double v; double t; int i; @@ -115,7 +115,9 @@ static double benchmark( void ) { if ( v != v ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/logf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/logf/benchmark/c/native/benchmark.c index f3866089e728..9b80339a983f 100644 --- a/lib/node_modules/@stdlib/math/base/special/logf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/logf/benchmark/c/native/benchmark.c @@ -92,8 +92,8 @@ static float rand_float( void ) { static double benchmark( void ) { double elapsed; double t; - float x[ 100 ]; - float b[ 100 ]; + float *x = (float*)malloc( 100 * sizeof(float) ); + float *b = (float*)malloc( 100 * sizeof(float) ); float y; int i; @@ -114,7 +114,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( b ); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/logit/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/logit/benchmark/c/benchmark.c index ca8ba4abc453..3f5190464fdd 100644 --- a/lib/node_modules/@stdlib/math/base/special/logit/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/logit/benchmark/c/benchmark.c @@ -128,7 +128,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/logit/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/logit/benchmark/c/native/benchmark.c index 2c58b82ed449..ed6fc1e9c5a6 100644 --- a/lib/node_modules/@stdlib/math/base/special/logit/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/logit/benchmark/c/native/benchmark.c @@ -107,7 +107,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/logitf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/logitf/benchmark/c/benchmark.c index 08079c0969e3..453ec33760a1 100644 --- a/lib/node_modules/@stdlib/math/base/special/logitf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/logitf/benchmark/c/benchmark.c @@ -112,7 +112,7 @@ float logitf( float x ) { */ static double benchmark( void ) { double elapsed; - float x[ 100 ]; + float *x = (float*)malloc( 100 * sizeof(float) ); double t; float y; int i; @@ -133,7 +133,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/logitf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/logitf/benchmark/c/native/benchmark.c index 9ef0deab4520..1aca5f9722c0 100644 --- a/lib/node_modules/@stdlib/math/base/special/logitf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/logitf/benchmark/c/native/benchmark.c @@ -91,7 +91,7 @@ static float rand_float( void ) { */ static double benchmark( void ) { double elapsed; - float x[ 100 ]; + float *x = (float*)malloc( 100 * sizeof(float) ); double t; float y; int i; @@ -112,7 +112,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/lucas/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/lucas/benchmark/c/benchmark.c index 483ff4022746..6c56734eb6fa 100644 --- a/lib/node_modules/@stdlib/math/base/special/lucas/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/lucas/benchmark/c/benchmark.c @@ -124,7 +124,7 @@ static double benchmark( void ) { if ( y < 0 ) { printf( "should return a nonnegative integer\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/lucas/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/lucas/benchmark/c/native/benchmark.c index 1c6ec8e819de..6d124a963c55 100644 --- a/lib/node_modules/@stdlib/math/base/special/lucas/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/lucas/benchmark/c/native/benchmark.c @@ -109,7 +109,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/lucasf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/lucasf/benchmark/c/benchmark.c index cbdfb736015f..cecbd6586cd6 100644 --- a/lib/node_modules/@stdlib/math/base/special/lucasf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/lucasf/benchmark/c/benchmark.c @@ -106,7 +106,7 @@ int lucasf( int n ) { */ static double benchmark( void ) { double elapsed; - int x[ 100 ]; + int *x = (int*)malloc( 100 * sizeof(int) ); double t; int y; int i; @@ -127,7 +127,8 @@ static double benchmark( void ) { if ( y < 0 ) { printf( "should return a nonnegative integer\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/lucasf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/lucasf/benchmark/c/native/benchmark.c index b0787f1e8de1..a8f794babc28 100644 --- a/lib/node_modules/@stdlib/math/base/special/lucasf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/lucasf/benchmark/c/native/benchmark.c @@ -91,7 +91,7 @@ static float rand_float( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - float x[ 100 ]; + float *x = (float*)malloc( 100 * sizeof(float) ); double elapsed; double t; float y; @@ -113,7 +113,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/max/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/max/benchmark/c/benchmark.c index 3eeb5300bbd5..053df9ed9a3d 100644 --- a/lib/node_modules/@stdlib/math/base/special/max/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/max/benchmark/c/benchmark.c @@ -90,8 +90,8 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; - double y[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); + double *y = (double*)malloc( 100 * sizeof(double) ); double z; double t; int i; @@ -113,7 +113,9 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/max/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/max/benchmark/c/native/benchmark.c index ee966ba3c803..2339df1dc604 100644 --- a/lib/node_modules/@stdlib/math/base/special/max/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/max/benchmark/c/native/benchmark.c @@ -91,8 +91,8 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; - double y[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); + double *y = (double*)malloc( 100 * sizeof(double) ); double t; double z; int i; @@ -114,7 +114,9 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/maxabs/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/maxabs/benchmark/c/benchmark.c index e67fc2fff0b0..7ed1be4ba4bc 100644 --- a/lib/node_modules/@stdlib/math/base/special/maxabs/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/maxabs/benchmark/c/benchmark.c @@ -90,8 +90,8 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; - double y[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); + double *y = (double*)malloc( 100 * sizeof(double) ); double z; double t; int i; @@ -113,7 +113,9 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/maxabs/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/maxabs/benchmark/c/native/benchmark.c index b23839f21315..9e98d95983c8 100644 --- a/lib/node_modules/@stdlib/math/base/special/maxabs/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/maxabs/benchmark/c/native/benchmark.c @@ -92,8 +92,8 @@ static double rand_double( void ) { static double benchmark( void ) { double elapsed; double t; - double x[ 100 ]; - double y[ 100 ]; + double *x= (double*)malloc( 100 * sizeof(double) ); + double *y = (double*)malloc( 100 * sizeof(double) ); double z; int i; @@ -114,7 +114,9 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/maxabsf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/maxabsf/benchmark/c/native/benchmark.c index bff087b77e7a..f8bf090db34f 100644 --- a/lib/node_modules/@stdlib/math/base/special/maxabsf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/maxabsf/benchmark/c/native/benchmark.c @@ -92,8 +92,8 @@ static float rand_float( void ) { static double benchmark( void ) { double elapsed; double t; - float x[ 100 ]; - float y[ 100 ]; + float *x= (float*)malloc( 100 * sizeof(float) ); + float *y = (float*)malloc( 100 * sizeof(float) ); float z; int i; @@ -114,7 +114,9 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/maxabsn/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/maxabsn/benchmark/c/benchmark.c index e67fc2fff0b0..7ed1be4ba4bc 100644 --- a/lib/node_modules/@stdlib/math/base/special/maxabsn/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/maxabsn/benchmark/c/benchmark.c @@ -90,8 +90,8 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; - double y[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); + double *y = (double*)malloc( 100 * sizeof(double) ); double z; double t; int i; @@ -113,7 +113,9 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/maxf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/maxf/benchmark/c/native/benchmark.c index 25c82f572dcb..dcb7fc0166b8 100644 --- a/lib/node_modules/@stdlib/math/base/special/maxf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/maxf/benchmark/c/native/benchmark.c @@ -92,8 +92,8 @@ static float rand_float( void ) { static double benchmark( void ) { double elapsed; double t; - float x[ 100 ]; - float y[ 100 ]; + float *x = (float*)malloc( 100 * sizeof(float) ); + float *y = (float*)malloc( 100 * sizeof(float) ); float z; int i; @@ -114,7 +114,9 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/maxn/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/maxn/benchmark/c/benchmark.c index 3eeb5300bbd5..053df9ed9a3d 100644 --- a/lib/node_modules/@stdlib/math/base/special/maxn/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/maxn/benchmark/c/benchmark.c @@ -90,8 +90,8 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; - double y[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); + double *y = (double*)malloc( 100 * sizeof(double) ); double z; double t; int i; @@ -113,7 +113,9 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/min/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/min/benchmark/c/benchmark.c index 7cac1bab2c1b..9be69692c5bc 100644 --- a/lib/node_modules/@stdlib/math/base/special/min/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/min/benchmark/c/benchmark.c @@ -90,8 +90,8 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; - double y[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); + double *y = (double*)malloc( 100 * sizeof(double) ); double z; double t; int i; @@ -113,7 +113,9 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/min/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/min/benchmark/c/native/benchmark.c index 16387b9753be..68b86871f152 100644 --- a/lib/node_modules/@stdlib/math/base/special/min/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/min/benchmark/c/native/benchmark.c @@ -92,8 +92,8 @@ static double rand_double( void ) { static double benchmark( void ) { double elapsed; double t; - double x[ 100 ]; - double y[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); + double *y = (double*)malloc( 100 * sizeof(double) ); double z; int i; @@ -114,7 +114,9 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/minabs/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/minabs/benchmark/c/benchmark.c index 22f5815151e7..956af8165bec 100644 --- a/lib/node_modules/@stdlib/math/base/special/minabs/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/minabs/benchmark/c/benchmark.c @@ -90,8 +90,8 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; - double y[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); + double *y = (double*)malloc( 100 * sizeof(double) ); double z; double t; int i; @@ -113,7 +113,9 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/minabs/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/minabs/benchmark/c/native/benchmark.c index dbd2b4bebd30..ba0f92f20485 100644 --- a/lib/node_modules/@stdlib/math/base/special/minabs/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/minabs/benchmark/c/native/benchmark.c @@ -92,8 +92,8 @@ static double rand_double( void ) { static double benchmark( void ) { double elapsed; double t; - double x[ 100 ]; - double y[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); + double *y = (double*)malloc( 100 * sizeof(double) ); double z; int i; @@ -114,7 +114,10 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ) ; + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/minabsf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/minabsf/benchmark/c/native/benchmark.c index 72fe89a55947..a6b3e2e29141 100644 --- a/lib/node_modules/@stdlib/math/base/special/minabsf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/minabsf/benchmark/c/native/benchmark.c @@ -92,8 +92,8 @@ static float rand_float( void ) { static double benchmark( void ) { double elapsed; double t; - float x[ 100 ]; - float y[ 100 ]; + float *x = (float*)malloc( 100 * sizeof(float) ); + float *y = (float*)malloc( 100 * sizeof(float) ); float z; int i; @@ -114,7 +114,9 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/minabsn/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/minabsn/benchmark/c/benchmark.c index ba3249912773..1320e613b81e 100644 --- a/lib/node_modules/@stdlib/math/base/special/minabsn/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/minabsn/benchmark/c/benchmark.c @@ -90,8 +90,8 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; - double y[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); + double *y = (double*)malloc( 100 * sizeof(double) ); double z; double t; int i; @@ -113,7 +113,9 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/minf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/minf/benchmark/c/native/benchmark.c index 31f150d06388..f698e2dab88e 100644 --- a/lib/node_modules/@stdlib/math/base/special/minf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/minf/benchmark/c/native/benchmark.c @@ -92,8 +92,8 @@ static float rand_float( void ) { static double benchmark( void ) { double elapsed; double t; - float x[ 100 ]; - float y[ 100 ]; + float *x = (float*)malloc( 100 * sizeof(float) ); + float *y = (float*)malloc( 100 * sizeof(float) ); float z; int i; @@ -114,7 +114,9 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/minmax/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/minmax/benchmark/c/native/benchmark.c index bea002d07576..11fe949cd153 100644 --- a/lib/node_modules/@stdlib/math/base/special/minmax/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/minmax/benchmark/c/native/benchmark.c @@ -90,8 +90,8 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; - double y[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); + double *y = (double*)malloc( 100 * sizeof(double) ); double elapsed; double min; double max; @@ -115,7 +115,9 @@ static double benchmark( void ) { if ( max != max || min != min ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/minmaxabs/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/minmaxabs/benchmark/c/native/benchmark.c index a6308fb741ec..51508fe81af6 100644 --- a/lib/node_modules/@stdlib/math/base/special/minmaxabs/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/minmaxabs/benchmark/c/native/benchmark.c @@ -92,8 +92,8 @@ static double random_uniform( const double min, const double max ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; - double y[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); + double *y = (double*)malloc( 100 * sizeof(double) ); double elapsed; double min; double max; @@ -117,7 +117,9 @@ static double benchmark( void ) { if ( max != max || min != min ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/minmaxabsf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/minmaxabsf/benchmark/c/native/benchmark.c index dfcd809249ae..11653fffe5a2 100644 --- a/lib/node_modules/@stdlib/math/base/special/minmaxabsf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/minmaxabsf/benchmark/c/native/benchmark.c @@ -92,8 +92,8 @@ static float random_uniform( const float min, const float max ) { * @return elapsed time in seconds */ static double benchmark( void ) { - float x[ 100 ]; - float y[ 100 ]; + float *x = (float*)malloc( 100 * sizeof(float) ); + float *y = (float*)malloc( 100 * sizeof(float) ); double elapsed; float min; float max; @@ -117,7 +117,9 @@ static double benchmark( void ) { if ( max != max || min != min ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/minmaxf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/minmaxf/benchmark/c/native/benchmark.c index d7b1bf5e8b09..ca1e7c4027a3 100644 --- a/lib/node_modules/@stdlib/math/base/special/minmaxf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/minmaxf/benchmark/c/native/benchmark.c @@ -92,8 +92,8 @@ static float random_uniform( const float min, const float max ) { * @return elapsed time in seconds */ static double benchmark( void ) { - float x[ 100 ]; - float y[ 100 ]; + float *x = (float*)malloc( 100 * sizeof(float) ); + float *y = (float*)malloc( 100 * sizeof(float) ); double elapsed; float min; float max; @@ -117,7 +117,10 @@ static double benchmark( void ) { if ( max != max || min != min ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ) ; + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/minn/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/minn/benchmark/c/benchmark.c index 7cac1bab2c1b..9be69692c5bc 100644 --- a/lib/node_modules/@stdlib/math/base/special/minn/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/minn/benchmark/c/benchmark.c @@ -90,8 +90,8 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; - double y[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); + double *y = (double*)malloc( 100 * sizeof(double) ); double z; double t; int i; @@ -113,7 +113,9 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/modf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/modf/benchmark/c/benchmark.c index c40137ee8946..9d462e890b09 100644 --- a/lib/node_modules/@stdlib/math/base/special/modf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/modf/benchmark/c/benchmark.c @@ -91,7 +91,7 @@ static double rand_double( void ) { static double benchmark( void ) { double elapsed; double iptr; - double x[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); double y; double t; int i; @@ -112,7 +112,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/modf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/modf/benchmark/c/native/benchmark.c index c36b38dd30ef..ababb629fda7 100644 --- a/lib/node_modules/@stdlib/math/base/special/modf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/modf/benchmark/c/native/benchmark.c @@ -92,7 +92,7 @@ static double rand_double( void ) { static double benchmark( void ) { double integral; double elapsed; - double x[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); double y; double t; int i; @@ -113,7 +113,8 @@ static double benchmark( void ) { if ( y != y || integral != integral) { printf( "unexpected results\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/modff/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/modff/benchmark/c/benchmark.c index abfd27bac4cd..36593e594e3d 100644 --- a/lib/node_modules/@stdlib/math/base/special/modff/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/modff/benchmark/c/benchmark.c @@ -92,7 +92,7 @@ static float random_uniform( const float min, const float max ) { */ static double benchmark( void ) { double elapsed; - float x[ 100 ]; + float *x = (float*)malloc( 100 * sizeof(float) ); float iptr; double t; float y; @@ -114,7 +114,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/modff/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/modff/benchmark/c/native/benchmark.c index c73abf2dd2df..441096c3ac0d 100644 --- a/lib/node_modules/@stdlib/math/base/special/modff/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/modff/benchmark/c/native/benchmark.c @@ -93,7 +93,8 @@ static float random_uniform( const float min, const float max ) { */ static double benchmark( void ) { double elapsed; - float x[ 100 ]; + float *x = (float*)malloc( 100 * sizeof(float) ); + // float *x = (float*)malloc( 100 * sizeof(float) ); float integral; double t; float y; @@ -115,7 +116,8 @@ static double benchmark( void ) { if ( y != y || integral != integral) { printf( "unexpected results\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/nanmax/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/nanmax/benchmark/c/native/benchmark.c index 5ad7c6945702..72fa542dd283 100644 --- a/lib/node_modules/@stdlib/math/base/special/nanmax/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/nanmax/benchmark/c/native/benchmark.c @@ -92,8 +92,8 @@ static double rand_double( void ) { static double benchmark( void ) { double elapsed; double t; - double x[ 100 ]; - double y[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); + double *y = (double*)malloc( 100 * sizeof(double) ); double z; int i; @@ -114,7 +114,11 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free(y); + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/nanmaxf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/nanmaxf/benchmark/c/native/benchmark.c index a353097226a1..fcf0ab238ff2 100644 --- a/lib/node_modules/@stdlib/math/base/special/nanmaxf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/nanmaxf/benchmark/c/native/benchmark.c @@ -91,8 +91,8 @@ static float rand_float( void ) { */ static double benchmark( void ) { double elapsed; - float x[ 100 ]; - float y[ 100 ]; + float *x = (float*)malloc( 100 * sizeof(float) ); + float *y = (float*)malloc( 100 * sizeof(float) ); double t; float z; int i; @@ -114,7 +114,11 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free(y); + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/nanmin/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/nanmin/benchmark/c/native/benchmark.c index 20c70b278482..1b1c7b6afb8e 100644 --- a/lib/node_modules/@stdlib/math/base/special/nanmin/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/nanmin/benchmark/c/native/benchmark.c @@ -92,8 +92,8 @@ static double rand_double( void ) { static double benchmark( void ) { double elapsed; double t; - double x[ 100 ]; - double y[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); + double *y = (double*)malloc( 100 * sizeof(double) ); double z; int i; @@ -114,7 +114,11 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free(y); + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/nanminf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/nanminf/benchmark/c/native/benchmark.c index e06ee6602e50..d31f69c555df 100644 --- a/lib/node_modules/@stdlib/math/base/special/nanminf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/nanminf/benchmark/c/native/benchmark.c @@ -92,8 +92,8 @@ static float rand_float( void ) { static double benchmark( void ) { double elapsed; double t; - float x[ 100 ]; - float y[ 100 ]; + float *x = (float*)malloc( 100 * sizeof(float) ); + float *y = (float*)malloc( 100 * sizeof(float) ); float z; int i; @@ -114,7 +114,11 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free(y); + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/negafibonacci/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/negafibonacci/benchmark/c/benchmark.c index a8226c0e16d0..2d3e0d160599 100644 --- a/lib/node_modules/@stdlib/math/base/special/negafibonacci/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/negafibonacci/benchmark/c/benchmark.c @@ -107,7 +107,7 @@ int negafibonacci( int n ) { static double benchmark( void ) { double elapsed; double t; - int x[ 100 ]; + int *x = (int*)malloc( 100 * sizeof(int) ); int y; int i; @@ -127,7 +127,9 @@ static double benchmark( void ) { if ( y == 7 ) { printf( "should not return 7\n" ); } - return elapsed; + free(x); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/negafibonacci/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/negafibonacci/benchmark/c/native/benchmark.c index b3b4b0812363..735dfa2ce864 100644 --- a/lib/node_modules/@stdlib/math/base/special/negafibonacci/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/negafibonacci/benchmark/c/native/benchmark.c @@ -91,7 +91,7 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); double t; double y; int i; @@ -112,7 +112,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/negafibonaccif/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/negafibonaccif/benchmark/c/benchmark.c index 6c23f1987f7e..5407aa4c898f 100644 --- a/lib/node_modules/@stdlib/math/base/special/negafibonaccif/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/negafibonaccif/benchmark/c/benchmark.c @@ -106,7 +106,7 @@ int negafibonacci( int n ) { */ static double benchmark( void ) { double elapsed; - int x[ 100 ]; + int *x = (int*)malloc( 100 * sizeof(int) ); double t; int y; int i; @@ -127,7 +127,9 @@ static double benchmark( void ) { if ( y == 7 ) { printf( "should not return 7\n" ); } - return elapsed; + free(x); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/negafibonaccif/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/negafibonaccif/benchmark/c/native/benchmark.c index 13d47c2918b7..bb735194f380 100644 --- a/lib/node_modules/@stdlib/math/base/special/negafibonaccif/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/negafibonaccif/benchmark/c/native/benchmark.c @@ -90,7 +90,7 @@ static float rand_float( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - float x[ 100 ]; + float *x = (float*)malloc( 100 * sizeof(float) ); double elapsed; double t; float y; @@ -112,7 +112,10 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + + free(x); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/negalucas/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/negalucas/benchmark/c/benchmark.c index 0ce7738d4f36..47a860faf809 100644 --- a/lib/node_modules/@stdlib/math/base/special/negalucas/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/negalucas/benchmark/c/benchmark.c @@ -107,7 +107,7 @@ int negalucas( int n ) { static double benchmark( void ) { double elapsed; double t; - int x[ 100 ]; + int *x = (int*)malloc( 100 * sizeof(int) ); int y; int i; @@ -127,7 +127,9 @@ static double benchmark( void ) { if ( y == -7 ) { printf( "should not return -7\n" ); } - return elapsed; + free(x); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/negalucas/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/negalucas/benchmark/c/native/benchmark.c index c1452ae09d3f..491e67cbaa91 100644 --- a/lib/node_modules/@stdlib/math/base/special/negalucas/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/negalucas/benchmark/c/native/benchmark.c @@ -91,7 +91,7 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x= (double*)malloc( 100 * sizeof(double) ); double t; double y; int i; @@ -112,7 +112,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/negalucasf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/negalucasf/benchmark/c/benchmark.c index df23e52ac174..2140cf020f64 100644 --- a/lib/node_modules/@stdlib/math/base/special/negalucasf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/negalucasf/benchmark/c/benchmark.c @@ -107,7 +107,7 @@ int negalucasf( int n ) { static double benchmark( void ) { double elapsed; double t; - int x[ 100 ]; + int *x = (int*)malloc( 100 * sizeof(int) ); int y; int i; @@ -127,7 +127,9 @@ static double benchmark( void ) { if ( y == -7 ) { printf( "should not return -7\n" ); } - return elapsed; + free(x); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/negalucasf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/negalucasf/benchmark/c/native/benchmark.c index c2e4c8af5261..93c488a24bf2 100644 --- a/lib/node_modules/@stdlib/math/base/special/negalucasf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/negalucasf/benchmark/c/native/benchmark.c @@ -91,7 +91,7 @@ static float rand_float( void ) { */ static double benchmark( void ) { double elapsed; - float x[ 100 ]; + float *x = (float*)malloc( 100 * sizeof(float) ); double t; float y; int i; @@ -112,7 +112,10 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + + free(x); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/nonfibonacci/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/nonfibonacci/benchmark/c/native/benchmark.c index 43497a40ebd2..d3cd80ead077 100644 --- a/lib/node_modules/@stdlib/math/base/special/nonfibonacci/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/nonfibonacci/benchmark/c/native/benchmark.c @@ -90,7 +90,7 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); double t; double y; int i; @@ -111,7 +111,9 @@ static double benchmark( void ) { if ( y < 0 ) { printf( "should return a nonnegative integer\n" ); } - return elapsed; + free(x); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/nonfibonaccif/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/nonfibonaccif/benchmark/c/native/benchmark.c index 78486e8d6a71..b2a4400ba6a0 100644 --- a/lib/node_modules/@stdlib/math/base/special/nonfibonaccif/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/nonfibonaccif/benchmark/c/native/benchmark.c @@ -90,7 +90,7 @@ static float rand_float( void ) { */ static double benchmark( void ) { double elapsed; - float x[ 100 ]; + float *x = (float*)malloc( 100 * sizeof(float) ); double t; float y; int i; @@ -111,7 +111,9 @@ static double benchmark( void ) { if ( y < 0 ) { printf( "should return a nonnegative integer\n" ); } - return elapsed; + free(x); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/pdiff/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/pdiff/benchmark/c/benchmark.c index e9a545098a4f..437210e110ff 100644 --- a/lib/node_modules/@stdlib/math/base/special/pdiff/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/pdiff/benchmark/c/benchmark.c @@ -108,8 +108,8 @@ double pdiff( double x, double y ) { static double benchmark( void ) { double elapsed; double t; - double x[ 100 ]; - double y[ 100 ]; + double *x= (double*)malloc( 100 * sizeof(double) ); + double *y = (double*)malloc( 100 * sizeof(double) ); double z; int i; @@ -130,7 +130,11 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free(y); + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/pdiff/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/pdiff/benchmark/c/native/benchmark.c index 9d3a38a3ae79..1709a49903c1 100644 --- a/lib/node_modules/@stdlib/math/base/special/pdiff/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/pdiff/benchmark/c/native/benchmark.c @@ -92,8 +92,8 @@ static double rand_double( void ) { static double benchmark( void ) { double elapsed; double t; - double x[ 100 ]; - double y[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); + double *y = (double*)malloc( 100 * sizeof(double) ); double z; int i; @@ -114,7 +114,11 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free(y); + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/pdifff/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/pdifff/benchmark/c/benchmark.c index 4ed2da091db5..194310ebcb00 100644 --- a/lib/node_modules/@stdlib/math/base/special/pdifff/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/pdifff/benchmark/c/benchmark.c @@ -108,8 +108,8 @@ float pdifff( float x, float y ) { static double benchmark( void ) { double elapsed; double t; - float x[ 100 ]; - float y[ 100 ]; + float *x = (float*)malloc( 100 * sizeof(float) ); + float *y = (float*)malloc( 100 * sizeof(float) ); float z; int i; @@ -130,7 +130,11 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free(y); + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/pdifff/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/pdifff/benchmark/c/native/benchmark.c index 65ddc45d66ab..e90fdff05313 100644 --- a/lib/node_modules/@stdlib/math/base/special/pdifff/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/pdifff/benchmark/c/native/benchmark.c @@ -92,8 +92,8 @@ static float rand_float( void ) { static double benchmark( void ) { double elapsed; double t; - float x[ 100 ]; - float y[ 100 ]; + float *x = (float*)malloc( 100 * sizeof(float) ); + float *y = (float*)malloc( 100 * sizeof(float) ); float z; int i; @@ -114,7 +114,11 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free(y); + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/pow/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/pow/benchmark/c/benchmark.c index 44ce4462725f..0d3ae6f2c62a 100644 --- a/lib/node_modules/@stdlib/math/base/special/pow/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/pow/benchmark/c/benchmark.c @@ -90,8 +90,8 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; - double y[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); + double *y = (double*)malloc( 100 * sizeof(double) ); double z; double t; int i; @@ -113,7 +113,11 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free(y); + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/pow/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/pow/benchmark/c/cephes/benchmark.c index 679b400cf3ad..ac88f24e45c0 100644 --- a/lib/node_modules/@stdlib/math/base/special/pow/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/pow/benchmark/c/cephes/benchmark.c @@ -95,8 +95,8 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; - double y[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); + double *y = (double*)malloc( 100 * sizeof(double) ); double z; double t; int i; @@ -118,7 +118,11 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free(y); + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/pow/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/pow/benchmark/c/native/benchmark.c index 0b8b40f2a084..0f4c46d01fe1 100644 --- a/lib/node_modules/@stdlib/math/base/special/pow/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/pow/benchmark/c/native/benchmark.c @@ -91,8 +91,8 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double b[ 100 ]; - double x[ 100 ]; + double *b = (double*)malloc( 100 * sizeof(double) ); + double *x = (double*)malloc( 100 * sizeof(double) ); double y; double t; int i; @@ -114,7 +114,11 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free(b); + free(x); + free( b ); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/powf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/powf/benchmark/c/benchmark.c index b62e7904dfa1..ffe79bd0a172 100644 --- a/lib/node_modules/@stdlib/math/base/special/powf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/powf/benchmark/c/benchmark.c @@ -92,8 +92,8 @@ static float random_uniform( const float min, const float max ) { */ static double benchmark( void ) { double elapsed; - float x[ 100 ]; - float y[ 100 ]; + float *x = (float*)malloc( 100 * sizeof(float) ); + float *y = (float*)malloc( 100 * sizeof(float) ); double t; float z; int i; @@ -115,7 +115,11 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free(y); + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/powf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/powf/benchmark/c/native/benchmark.c index 2f775c53d350..e65fb999b853 100644 --- a/lib/node_modules/@stdlib/math/base/special/powf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/powf/benchmark/c/native/benchmark.c @@ -93,8 +93,8 @@ static float random_uniform( const float min, const float max ) { */ static double benchmark( void ) { double elapsed; - float x[ 100 ]; - float y[ 100 ]; + float *x = (float*)malloc( 100 * sizeof(float) ); + float *y = (float*)malloc( 100 * sizeof(float) ); double t; float z; int i; @@ -116,7 +116,11 @@ static double benchmark( void ) { if ( z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free(y); + free( x ); + free( y ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/powm1/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/powm1/benchmark/c/native/benchmark.c index 73521a14ba40..6bb13285c7f8 100644 --- a/lib/node_modules/@stdlib/math/base/special/powm1/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/powm1/benchmark/c/native/benchmark.c @@ -91,8 +91,8 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double b[ 100 ]; - double x[ 100 ]; + double *b= (double*)malloc( 100 * sizeof(double) ); + double *x = (double*)malloc( 100 * sizeof(double) ); double y; double t; int i; @@ -114,7 +114,11 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free(b); + free(x); + free( b ); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/rad2deg/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/rad2deg/benchmark/c/benchmark.c index 4bde4b3b32ee..a3fe36a4181b 100644 --- a/lib/node_modules/@stdlib/math/base/special/rad2deg/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/rad2deg/benchmark/c/benchmark.c @@ -100,7 +100,7 @@ double rad2deg( double x ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); double y; double t; int i; @@ -121,7 +121,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/rad2deg/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/rad2deg/benchmark/c/native/benchmark.c index 8bc5a87d8667..c4db00f93d89 100644 --- a/lib/node_modules/@stdlib/math/base/special/rad2deg/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/rad2deg/benchmark/c/native/benchmark.c @@ -91,7 +91,7 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); double y; double t; int i; @@ -112,7 +112,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/rad2degf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/rad2degf/benchmark/c/native/benchmark.c index c65d6b461b38..8234b87aafc1 100644 --- a/lib/node_modules/@stdlib/math/base/special/rad2degf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/rad2degf/benchmark/c/native/benchmark.c @@ -92,7 +92,7 @@ static float rand_float( void ) { static double benchmark( void ) { double elapsed; double t; - float x[ 100 ]; + float *x = (float*)malloc( 100 * sizeof(float) ); float y; int i; @@ -112,7 +112,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/ramp/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/ramp/benchmark/c/benchmark.c index 520663bbd886..ed5e707b57cd 100644 --- a/lib/node_modules/@stdlib/math/base/special/ramp/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/ramp/benchmark/c/benchmark.c @@ -103,7 +103,7 @@ double ramp( double x ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); double y; double t; int i; @@ -124,7 +124,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/ramp/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/ramp/benchmark/c/native/benchmark.c index 977fc6048b9d..115d3673d061 100644 --- a/lib/node_modules/@stdlib/math/base/special/ramp/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/ramp/benchmark/c/native/benchmark.c @@ -91,7 +91,7 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); double y; double t; int i; @@ -112,7 +112,10 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/rampf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/rampf/benchmark/c/benchmark.c index b291aa67c7d2..86365a88c0ee 100644 --- a/lib/node_modules/@stdlib/math/base/special/rampf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/rampf/benchmark/c/benchmark.c @@ -103,7 +103,7 @@ float rampf( float x ) { */ static double benchmark( void ) { double elapsed; - float x[ 100 ]; + float *x = (float*)malloc( 100 * sizeof(float) ); float y; double t; int i; @@ -124,7 +124,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/rampf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/rampf/benchmark/c/native/benchmark.c index 7aecdcadd8c4..7eaea8761500 100644 --- a/lib/node_modules/@stdlib/math/base/special/rampf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/rampf/benchmark/c/native/benchmark.c @@ -91,7 +91,7 @@ static float rand_float( void ) { */ static double benchmark( void ) { double elapsed; - float x[ 100 ]; + float *x = (float*)malloc( 100 * sizeof(float) ); float y; double t; int i; @@ -112,7 +112,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/rcbrt/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/rcbrt/benchmark/c/benchmark.c index 1185665a07b5..c970fba998b1 100644 --- a/lib/node_modules/@stdlib/math/base/special/rcbrt/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/rcbrt/benchmark/c/benchmark.c @@ -90,7 +90,7 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); double y; double t; int i; @@ -111,7 +111,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/rcbrt/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/rcbrt/benchmark/c/cephes/benchmark.c index 534d7c96f2b3..2683bc14ea2c 100644 --- a/lib/node_modules/@stdlib/math/base/special/rcbrt/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/rcbrt/benchmark/c/cephes/benchmark.c @@ -95,7 +95,7 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); double y; double t; int i; @@ -116,7 +116,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/rcbrt/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/rcbrt/benchmark/c/native/benchmark.c index daed314f2eaf..d5f5b5d075d8 100644 --- a/lib/node_modules/@stdlib/math/base/special/rcbrt/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/rcbrt/benchmark/c/native/benchmark.c @@ -91,7 +91,7 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); double y; double t; int i; @@ -112,7 +112,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/rcbrtf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/rcbrtf/benchmark/c/native/benchmark.c index f2533b5ac5a2..6bf83e3e79f2 100644 --- a/lib/node_modules/@stdlib/math/base/special/rcbrtf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/rcbrtf/benchmark/c/native/benchmark.c @@ -92,7 +92,7 @@ static float rand_float( void ) { static double benchmark( void ) { double elapsed; double t; - float x[ 100 ]; + float *x = (float*)malloc( 100 * sizeof(float) ); float y; int i; @@ -112,7 +112,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/rempio2/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/rempio2/benchmark/c/native/benchmark.c index 293062cc950f..9c2fca463d3b 100644 --- a/lib/node_modules/@stdlib/math/base/special/rempio2/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/rempio2/benchmark/c/native/benchmark.c @@ -90,7 +90,7 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); double elapsed; double rem1; double rem2; @@ -114,7 +114,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/rempio2f/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/rempio2f/benchmark/c/native/benchmark.c index a93cbc3a6659..0f8ee836906e 100644 --- a/lib/node_modules/@stdlib/math/base/special/rempio2f/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/rempio2f/benchmark/c/native/benchmark.c @@ -90,7 +90,7 @@ static float rand_float( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - float x[ 100 ]; + float *x= (float*)malloc( 100 * sizeof(float) ); double elapsed; double rem; double y; @@ -113,7 +113,9 @@ static double benchmark( void ) { if ( y != y && rem != rem ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/riemann-zeta/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/riemann-zeta/benchmark/c/cephes/benchmark.c index 474e0f531ef0..1204033f40f3 100644 --- a/lib/node_modules/@stdlib/math/base/special/riemann-zeta/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/riemann-zeta/benchmark/c/cephes/benchmark.c @@ -113,7 +113,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/riemann-zeta/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/riemann-zeta/benchmark/c/native/benchmark.c index ea0c540250f8..27d000c22f5f 100644 --- a/lib/node_modules/@stdlib/math/base/special/riemann-zeta/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/riemann-zeta/benchmark/c/native/benchmark.c @@ -91,7 +91,7 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); double y; double t; int i; @@ -112,7 +112,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/rising-factorial/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/rising-factorial/benchmark/c/native/benchmark.c index 9d8b555b5ca4..7d8d3e536122 100644 --- a/lib/node_modules/@stdlib/math/base/special/rising-factorial/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/rising-factorial/benchmark/c/native/benchmark.c @@ -91,8 +91,8 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - int32_t n[ 100 ]; - double x[ 100 ]; + int32_t *n = (int32_t*)malloc( 100 * sizeof(int32_t) ); + double *x = (double*)malloc( 100 * sizeof(double) ); double elapsed; double t; double y; @@ -115,7 +115,10 @@ static double benchmark( void ) { if ( y != y ) { printf( "should return a nonnegative integer\n" ); } - return elapsed; + free(x); + free(n); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/round-nearest-even/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/round-nearest-even/benchmark/c/native/benchmark.c index e826be6b859c..ea5c546bf6ec 100644 --- a/lib/node_modules/@stdlib/math/base/special/round-nearest-even/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/round-nearest-even/benchmark/c/native/benchmark.c @@ -92,7 +92,7 @@ static double random_uniform( const double min, const double max ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); double elapsed; double y; double t; @@ -114,7 +114,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/round/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/round/benchmark/c/benchmark.c index 1d1938553c4a..907cc98cdf62 100644 --- a/lib/node_modules/@stdlib/math/base/special/round/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/round/benchmark/c/benchmark.c @@ -91,7 +91,10 @@ static double random_uniform( const double min, const double max ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -113,7 +116,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/round/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/round/benchmark/c/cephes/benchmark.c index b5234679f84c..8e698c61be8e 100644 --- a/lib/node_modules/@stdlib/math/base/special/round/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/round/benchmark/c/cephes/benchmark.c @@ -96,7 +96,7 @@ static double random_uniform( const double min, const double max ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); double elapsed; double y; double t; @@ -118,7 +118,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/round/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/round/benchmark/c/native/benchmark.c index f90f262402b3..d2fe9b66a650 100644 --- a/lib/node_modules/@stdlib/math/base/special/round/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/round/benchmark/c/native/benchmark.c @@ -92,7 +92,7 @@ static double random_uniform( const double min, const double max ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double*)malloc( 100 * sizeof(double) ); double elapsed; double y; double t; @@ -114,7 +114,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/round10/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/round10/benchmark/c/native/benchmark.c index b0c54f258ab8..01dec4ba8708 100644 --- a/lib/node_modules/@stdlib/math/base/special/round10/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/round10/benchmark/c/native/benchmark.c @@ -91,7 +91,7 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x= (double*)malloc( 100 * sizeof(double) ); double y; double t; int i; @@ -112,7 +112,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/round2/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/round2/benchmark/c/native/benchmark.c index 28fd687ba1f2..0f5bc8799e48 100644 --- a/lib/node_modules/@stdlib/math/base/special/round2/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/round2/benchmark/c/native/benchmark.c @@ -91,7 +91,7 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x= (double*)malloc( 100 * sizeof(double) ); double y; double t; int i; @@ -112,7 +112,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/roundb/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/roundb/benchmark/c/native/benchmark.c index d6d6c0714ed7..b2fccb1f86d5 100644 --- a/lib/node_modules/@stdlib/math/base/special/roundb/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/roundb/benchmark/c/native/benchmark.c @@ -91,7 +91,7 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x= (double*)malloc( 100 * sizeof(double) ); double y; double t; int i; @@ -112,7 +112,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/roundf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/roundf/benchmark/c/native/benchmark.c index 86034cc9b18a..e03f33aa0d8c 100644 --- a/lib/node_modules/@stdlib/math/base/special/roundf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/roundf/benchmark/c/native/benchmark.c @@ -92,10 +92,15 @@ static float rand_float( void ) { static double benchmark( void ) { double elapsed; double t; - float x[ 100 ]; + float *x= (float*)malloc( 100 * sizeof(float) ); float y; int i; + if ( !x ) { + printf( "unable to allocate memory\n" ); + return 1.0; + } + for ( i = 0; i < 100; i++ ) { x[ i ] = ( 1000.0f * rand_float() ) - 500.0f; } @@ -112,7 +117,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/roundn/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/roundn/benchmark/c/native/benchmark.c index f9a5efd9f202..e2f275201498 100644 --- a/lib/node_modules/@stdlib/math/base/special/roundn/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/roundn/benchmark/c/native/benchmark.c @@ -92,10 +92,15 @@ static double rand_double( void ) { static double benchmark( void ) { double elapsed; double t; - double v[ 100 ]; + double *v; double y; int i; + v = (double*)malloc( 100 * sizeof(double) ); + if ( !v ) { + printf( "unable to allocate memory\n" ); + return 1.0; + } for ( i = 0; i < 100; i++ ) { v[ i ] = ( 1000.0*rand_double() ) - 500.0; } @@ -112,7 +117,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free(v); + free( v ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/roundnf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/roundnf/benchmark/c/native/benchmark.c index 958f130a2d46..db08adbec22a 100644 --- a/lib/node_modules/@stdlib/math/base/special/roundnf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/roundnf/benchmark/c/native/benchmark.c @@ -104,8 +104,8 @@ static int random_discrete_uniform( const int min, const int max ) { */ static double benchmark( void ) { double elapsed; - float x[ 100 ]; - int n[ 100 ]; + float *x= (float *)malloc( 100 * sizeof(float) ); + int *n= (int *)malloc( 100 * sizeof(int) ); double t; float y; int i; @@ -127,7 +127,11 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free(n); + free( n ); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/roundsd/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/roundsd/benchmark/c/native/benchmark.c index f133a75aab15..fbd53116a840 100644 --- a/lib/node_modules/@stdlib/math/base/special/roundsd/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/roundsd/benchmark/c/native/benchmark.c @@ -90,7 +90,7 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double v[ 100 ]; + double *v= (double *)malloc( 100 * sizeof(double) ); double elapsed; double t; double y; @@ -112,7 +112,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free(v); + free( v ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/rsqrt/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/rsqrt/benchmark/c/benchmark.c index bea07f2ae3b0..c20c57a57d11 100644 --- a/lib/node_modules/@stdlib/math/base/special/rsqrt/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/rsqrt/benchmark/c/benchmark.c @@ -89,7 +89,7 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x= (double *)malloc( 100 * sizeof(double) ); double elapsed; double y; double t; @@ -111,7 +111,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/rsqrt/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/rsqrt/benchmark/c/cephes/benchmark.c index 2b813a9429b5..3a909350679e 100644 --- a/lib/node_modules/@stdlib/math/base/special/rsqrt/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/rsqrt/benchmark/c/cephes/benchmark.c @@ -96,12 +96,17 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x= (double *)malloc( 100 * sizeof(double) ); double elapsed; double y; double t; int i; + if ( x == NULL ) { + printf( "Error: failed to allocate memory\n" ); + return 0.0; + } + for ( i = 0; i < 100; i++ ) { x[ i ] = 100000.0 * rand_double(); } @@ -118,7 +123,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/rsqrt/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/rsqrt/benchmark/c/native/benchmark.c index 4d4b4fbd46ff..36c0332da2f3 100644 --- a/lib/node_modules/@stdlib/math/base/special/rsqrt/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/rsqrt/benchmark/c/native/benchmark.c @@ -90,7 +90,7 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x= (double *)malloc( 100 * sizeof(double) ); double elapsed; double y; double t; @@ -112,7 +112,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/rsqrtf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/rsqrtf/benchmark/c/benchmark.c index 08a16a5c864d..685fd6483368 100644 --- a/lib/node_modules/@stdlib/math/base/special/rsqrtf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/rsqrtf/benchmark/c/benchmark.c @@ -90,11 +90,16 @@ static float rand_float( void ) { */ static double benchmark( void ) { double elapsed; - float x[ 100 ]; + float *x= (float *)malloc( 100 * sizeof(float) ); double t; float y; int i; + if ( x == NULL ) { + printf( "Error: failed to allocate memory\n" ); + return 0.0; + } + for ( i = 0; i < 100; i++ ) { x[ i ] = 100000.0f * rand_float(); } @@ -111,7 +116,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/rsqrtf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/rsqrtf/benchmark/c/native/benchmark.c index 091a4f718151..564742056e3e 100644 --- a/lib/node_modules/@stdlib/math/base/special/rsqrtf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/rsqrtf/benchmark/c/native/benchmark.c @@ -91,11 +91,16 @@ static float rand_float( void ) { */ static double benchmark( void ) { double elapsed; - float x[ 100 ]; + float *x= (float *)malloc( 100 * sizeof(float) ); double t; float y; int i; + if ( x == NULL ) { + printf( "Error: failed to allocate memory\n" ); + return 0.0; + } + for ( i = 0; i < 100; i++ ) { x[ i ] = 100000.0f * rand_float(); } @@ -112,7 +117,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/sec/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/sec/benchmark/c/native/benchmark.c index 77d994082fe7..d55efad788bc 100644 --- a/lib/node_modules/@stdlib/math/base/special/sec/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/sec/benchmark/c/native/benchmark.c @@ -91,11 +91,16 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x= (double *)malloc( 100 * sizeof(double) ); double y; double t; int i; + if ( x == NULL ) { + printf( "Error: failed to allocate memory\n" ); + return 0.0; + } + for ( i = 0; i < 100; i++ ) { x[ i ] = ( 20.0 * rand_double() ) - 10.0; } @@ -112,7 +117,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/secd/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/secd/benchmark/c/native/benchmark.c index 793edc53e9f9..84eb109a5624 100644 --- a/lib/node_modules/@stdlib/math/base/special/secd/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/secd/benchmark/c/native/benchmark.c @@ -91,11 +91,16 @@ static double rand_double( void ) { */ static double benchmark( void ) { double elapsed; - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); double y; double t; int i; + if ( x == NULL ) { + printf( "Error: failed to allocate memory\n" ); + return 0.0; + } + for ( i = 0; i < 100; i++ ) { x[ i ] = ( 2.0 * rand_double() ) + 1.0; } @@ -112,7 +117,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/secdf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/secdf/benchmark/c/native/benchmark.c index 58dddb97bb9b..f364a60a27f6 100644 --- a/lib/node_modules/@stdlib/math/base/special/secdf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/secdf/benchmark/c/native/benchmark.c @@ -92,12 +92,17 @@ static float random_uniform( const float min, const float max ) { * @return elapsed time in seconds */ static double benchmark( void ) { - float x[ 100 ]; + float *x= (float *)malloc( 100 * sizeof(float) ); double elapsed; double t; float y; int i; + if ( x == NULL ) { + printf( "Error: failed to allocate memory\n" ); + return 0.0; + } + for ( i = 0; i < 100; i++ ) { x[ i ] = random_uniform( -180.0f, 180.0f ); } @@ -114,7 +119,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/secf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/secf/benchmark/c/native/benchmark.c index dc65e8978a7f..66efee0dc7d3 100644 --- a/lib/node_modules/@stdlib/math/base/special/secf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/secf/benchmark/c/native/benchmark.c @@ -92,12 +92,17 @@ static float random_uniform( const float min, const float max ) { * @return elapsed time in seconds */ static double benchmark( void ) { - float x[ 100 ]; + float *x = (float *)malloc( 100 * sizeof(float) ); double elapsed; double t; float y; int i; + if ( x == NULL ) { + printf( "Error: failed to allocate memory\n" ); + return 0.0; + } + for ( i = 0; i < 100; i++ ) { x[ i ] = random_uniform( -10.0f, 10.0f ); } @@ -114,7 +119,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/sech/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/sech/benchmark/c/native/benchmark.c index a380801171b3..8d34c4224e34 100644 --- a/lib/node_modules/@stdlib/math/base/special/sech/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/sech/benchmark/c/native/benchmark.c @@ -90,12 +90,17 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); double elapsed; double y; double t; int i; + if ( x == NULL ) { + printf( "Error: failed to allocate memory\n" ); + return 0.0; + } + for ( i = 0; i < 100; i++ ) { x[ i ] = ( 10.0*rand_double() ) - 5.0; } @@ -112,7 +117,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/sici/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/sici/benchmark/c/cephes/benchmark.c index 4f8e29437823..98fec14bd40c 100644 --- a/lib/node_modules/@stdlib/math/base/special/sici/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/sici/benchmark/c/cephes/benchmark.c @@ -94,13 +94,18 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); double elapsed; double y; double z; double t; int i; + if ( x == NULL ) { + printf( "Error: failed to allocate memory\n" ); + return 0.0; + } + for ( i = 0; i < 100; i++ ) { x[ i ] = ( 100.0*rand_double() ) - 50.0; } @@ -117,7 +122,7 @@ static double benchmark( void ) { if ( y != y || z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); } /** diff --git a/lib/node_modules/@stdlib/math/base/special/signum/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/signum/benchmark/c/benchmark.c index 2259a85bdf22..91647af78fe3 100644 --- a/lib/node_modules/@stdlib/math/base/special/signum/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/signum/benchmark/c/benchmark.c @@ -89,7 +89,7 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); double elapsed; double y; double t; @@ -111,7 +111,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/signum/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/signum/benchmark/c/cephes/benchmark.c index f8c41269fc80..4f7807110f3b 100644 --- a/lib/node_modules/@stdlib/math/base/special/signum/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/signum/benchmark/c/cephes/benchmark.c @@ -96,7 +96,7 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x= (double *)malloc( 100 * sizeof(double) ); double elapsed; double t; int y; @@ -118,7 +118,9 @@ static double benchmark( void ) { if ( y > 1 || y < -1 ) { printf( "should not return a number greater than 1\n" ); } - return elapsed; + free(x); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/signum/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/signum/benchmark/c/native/benchmark.c index 569b01cbe000..de6f9171a6b0 100644 --- a/lib/node_modules/@stdlib/math/base/special/signum/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/signum/benchmark/c/native/benchmark.c @@ -90,7 +90,7 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); double elapsed; double y; double t; @@ -112,7 +112,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/signumf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/signumf/benchmark/c/benchmark.c index be006aec17df..e238af680128 100644 --- a/lib/node_modules/@stdlib/math/base/special/signumf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/signumf/benchmark/c/benchmark.c @@ -91,10 +91,16 @@ static float rand_float( void ) { static double benchmark( void ) { double elapsed; double t; - float x[ 100 ]; + float *x; float y; int i; + x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + printf( "Error: failed to allocate memory\n" ); + return 0.0; + } + for ( i = 0; i < 100; i++ ) { x[ i ] = ( rand_float()*1000.0f ) - 500.0f; } @@ -111,7 +117,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/signumf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/signumf/benchmark/c/native/benchmark.c index a876566b4940..dcae59c80a27 100644 --- a/lib/node_modules/@stdlib/math/base/special/signumf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/signumf/benchmark/c/native/benchmark.c @@ -92,10 +92,16 @@ static float rand_float( void ) { static double benchmark( void ) { double elapsed; double t; - float x[ 100 ]; + float *x; float y; int i; + x = (float *)malloc( 100 * sizeof(float) ); + if ( x == NULL ) { + printf( "Error: failed to allocate memory\n" ); + return 0.0; + } + for ( i = 0; i < 100; i++ ) { x[ i ] = ( rand_float()*1000.0f ) - 500.0f; } @@ -112,7 +118,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/sin/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/sin/benchmark/c/benchmark.c index 7aadeeab31b4..20e6a9b56318 100644 --- a/lib/node_modules/@stdlib/math/base/special/sin/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/sin/benchmark/c/benchmark.c @@ -89,12 +89,16 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x; double elapsed; double y; double t; int i; - + x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + printf( "Error: failed to allocate memory\n" ); + return 0.0; + } for ( i = 0; i < 100; i++ ) { x[ i ] = ( 20.0*rand_double() ) - 10.0; } @@ -111,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/sin/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/sin/benchmark/c/cephes/benchmark.c index dba37ff4120f..0d0c825460ff 100644 --- a/lib/node_modules/@stdlib/math/base/special/sin/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/sin/benchmark/c/cephes/benchmark.c @@ -94,12 +94,18 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x; double elapsed; double y; double t; int i; + x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + printf( "Error: failed to allocate memory\n" ); + return 0.0; + } + for ( i = 0; i < 100; i++ ) { x[ i ] = ( 20.0*rand_double() ) - 10.0; } @@ -116,7 +122,9 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free(x); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/sin/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/sin/benchmark/c/native/benchmark.c index 6fe0df098079..ff96792a02c5 100644 --- a/lib/node_modules/@stdlib/math/base/special/sin/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/sin/benchmark/c/native/benchmark.c @@ -90,12 +90,18 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x; double elapsed; double y; double t; int i; + x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + printf( "Error: failed to allocate memory\n" ); + return 0.0; + } + for ( i = 0; i < 100; i++ ) { x[ i ] = ( 20.0*rand_double() ) - 10.0; } @@ -112,7 +118,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/sinc/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/sinc/benchmark/c/native/benchmark.c index 87eafd1a6d49..846051eaf8dd 100644 --- a/lib/node_modules/@stdlib/math/base/special/sinc/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/sinc/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/sincf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/sincf/benchmark/c/native/benchmark.c index 5cdc730ea18a..9d5fb0890a29 100644 --- a/lib/node_modules/@stdlib/math/base/special/sincf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/sincf/benchmark/c/native/benchmark.c @@ -114,7 +114,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/sincos/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/sincos/benchmark/c/benchmark.c index a90c27e53dd7..7afb49080b7c 100644 --- a/lib/node_modules/@stdlib/math/base/special/sincos/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/sincos/benchmark/c/benchmark.c @@ -89,7 +89,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double z; @@ -113,7 +116,8 @@ static double benchmark( void ) { if ( y != y || z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/sincos/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/sincos/benchmark/c/cephes/benchmark.c index cbda2c22433d..21fb281219cb 100644 --- a/lib/node_modules/@stdlib/math/base/special/sincos/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/sincos/benchmark/c/cephes/benchmark.c @@ -94,7 +94,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double z; @@ -117,7 +120,10 @@ static double benchmark( void ) { if ( y != y || z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( cosine ); + free( sine ); + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/sincos/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/sincos/benchmark/c/native/benchmark.c index 812ff1a98081..06eb6b30b5c9 100644 --- a/lib/node_modules/@stdlib/math/base/special/sincos/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/sincos/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double cosine; double sine; @@ -113,7 +116,8 @@ static double benchmark( void ) { if ( cosine != cosine || sine != sine ) { printf( "unexpected results\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/sincosd/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/sincosd/benchmark/c/native/benchmark.c index 8068c1b74945..231d83a0b305 100644 --- a/lib/node_modules/@stdlib/math/base/special/sincosd/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/sincosd/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double cosine; double sine; @@ -113,7 +116,8 @@ static double benchmark( void ) { if ( cosine != cosine || sine != sine ) { printf( "unexpected results\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/sincosdf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/sincosdf/benchmark/c/native/benchmark.c index 1a23651a40ed..c67973e36bf6 100644 --- a/lib/node_modules/@stdlib/math/base/special/sincosdf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/sincosdf/benchmark/c/native/benchmark.c @@ -113,7 +113,7 @@ static double benchmark( void ) { if ( cosine != cosine || sine != sine ) { printf( "unexpected results\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/sincosf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/sincosf/benchmark/c/native/benchmark.c index 44f33994cb1f..8974dc7205a8 100644 --- a/lib/node_modules/@stdlib/math/base/special/sincosf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/sincosf/benchmark/c/native/benchmark.c @@ -115,7 +115,7 @@ static double benchmark( void ) { if ( cosine != cosine || sine != sine ) { printf( "unexpected results\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/sincospi/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/sincospi/benchmark/c/benchmark.c index e6877b709139..7f03d8050be0 100644 --- a/lib/node_modules/@stdlib/math/base/special/sincospi/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/sincospi/benchmark/c/benchmark.c @@ -89,7 +89,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double z; @@ -113,7 +116,8 @@ static double benchmark( void ) { if ( y != y || z != z ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/sincospi/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/sincospi/benchmark/c/native/benchmark.c index fbc93216f1ab..837965e6aa54 100644 --- a/lib/node_modules/@stdlib/math/base/special/sincospi/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/sincospi/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double cosine; double sine; @@ -113,7 +116,8 @@ static double benchmark( void ) { if ( cosine != cosine || sine != sine ) { printf( "unexpected results\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/sind/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/sind/benchmark/c/native/benchmark.c index 53a99716f6cb..e3cacdc23727 100644 --- a/lib/node_modules/@stdlib/math/base/special/sind/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/sind/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/sindf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/sindf/benchmark/c/native/benchmark.c index a18e5a0150fc..4510ef381cd0 100644 --- a/lib/node_modules/@stdlib/math/base/special/sindf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/sindf/benchmark/c/native/benchmark.c @@ -114,7 +114,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/sinf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/sinf/benchmark/c/benchmark.c index e11c280e9f40..3a5adefa766f 100644 --- a/lib/node_modules/@stdlib/math/base/special/sinf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/sinf/benchmark/c/benchmark.c @@ -113,7 +113,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/sinf/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/sinf/benchmark/c/cephes/benchmark.c index b05d2e2882ef..627a407f84cd 100644 --- a/lib/node_modules/@stdlib/math/base/special/sinf/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/sinf/benchmark/c/cephes/benchmark.c @@ -118,7 +118,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/sinf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/sinf/benchmark/c/native/benchmark.c index 909aa0a072b6..27695a5ff603 100644 --- a/lib/node_modules/@stdlib/math/base/special/sinf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/sinf/benchmark/c/native/benchmark.c @@ -114,7 +114,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/sinh/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/sinh/benchmark/c/benchmark.c index 8deed3fdb1e8..0d68ae874a4e 100644 --- a/lib/node_modules/@stdlib/math/base/special/sinh/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/sinh/benchmark/c/benchmark.c @@ -89,7 +89,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -111,7 +114,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/sinh/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/sinh/benchmark/c/cephes/benchmark.c index 6e6a29b403aa..3b616aa82a1c 100644 --- a/lib/node_modules/@stdlib/math/base/special/sinh/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/sinh/benchmark/c/cephes/benchmark.c @@ -94,7 +94,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -116,7 +119,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/sinh/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/sinh/benchmark/c/native/benchmark.c index f753b170afdd..0095a7b54bb6 100644 --- a/lib/node_modules/@stdlib/math/base/special/sinh/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/sinh/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/sinpi/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/sinpi/benchmark/c/native/benchmark.c index cce8ecd94541..7916268f1183 100644 --- a/lib/node_modules/@stdlib/math/base/special/sinpi/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/sinpi/benchmark/c/native/benchmark.c @@ -92,7 +92,10 @@ static double random_uniform( const double min, const double max ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -114,7 +117,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/sinpif/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/sinpif/benchmark/c/native/benchmark.c index 03148abb0117..72ed0b4b2653 100644 --- a/lib/node_modules/@stdlib/math/base/special/sinpif/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/sinpif/benchmark/c/native/benchmark.c @@ -114,7 +114,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/spence/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/spence/benchmark/c/cephes/benchmark.c index 2021db737d92..77b6d4a29357 100644 --- a/lib/node_modules/@stdlib/math/base/special/spence/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/spence/benchmark/c/cephes/benchmark.c @@ -94,7 +94,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -116,7 +119,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/spence/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/spence/benchmark/c/native/benchmark.c index 479657623dc6..48b544e37fd2 100644 --- a/lib/node_modules/@stdlib/math/base/special/spence/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/spence/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/spencef/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/spencef/benchmark/c/native/benchmark.c index 63f5441ad050..e9322bd2f0cd 100644 --- a/lib/node_modules/@stdlib/math/base/special/spencef/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/spencef/benchmark/c/native/benchmark.c @@ -112,7 +112,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/sqrt/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/sqrt/benchmark/c/benchmark.c index 14553ed266d5..f44a3a3b8a11 100644 --- a/lib/node_modules/@stdlib/math/base/special/sqrt/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/sqrt/benchmark/c/benchmark.c @@ -89,7 +89,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -111,7 +114,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/sqrt/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/sqrt/benchmark/c/cephes/benchmark.c index f6a067286fe0..fdaf83b76ea0 100644 --- a/lib/node_modules/@stdlib/math/base/special/sqrt/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/sqrt/benchmark/c/cephes/benchmark.c @@ -96,7 +96,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -118,7 +121,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/sqrt/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/sqrt/benchmark/c/native/benchmark.c index 2df6cdd571d8..4af73e3ed146 100644 --- a/lib/node_modules/@stdlib/math/base/special/sqrt/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/sqrt/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/sqrt1pm1/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/sqrt1pm1/benchmark/c/native/benchmark.c index c79d51aba28a..36fdb28f318b 100644 --- a/lib/node_modules/@stdlib/math/base/special/sqrt1pm1/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/sqrt1pm1/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/sqrtf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/sqrtf/benchmark/c/benchmark.c index 764cd323811e..aa604bc13a27 100644 --- a/lib/node_modules/@stdlib/math/base/special/sqrtf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/sqrtf/benchmark/c/benchmark.c @@ -111,7 +111,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/sqrtf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/sqrtf/benchmark/c/native/benchmark.c index 34fedf3b48de..9ec3e2dd94a7 100644 --- a/lib/node_modules/@stdlib/math/base/special/sqrtf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/sqrtf/benchmark/c/native/benchmark.c @@ -112,7 +112,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/sqrtpi/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/sqrtpi/benchmark/c/native/benchmark.c index dc7f3dc32eff..cf58b12ad3ec 100644 --- a/lib/node_modules/@stdlib/math/base/special/sqrtpi/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/sqrtpi/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/sqrtpif/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/sqrtpif/benchmark/c/benchmark.c index a1f1e21f483d..8311a0d034a6 100644 --- a/lib/node_modules/@stdlib/math/base/special/sqrtpif/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/sqrtpif/benchmark/c/benchmark.c @@ -112,7 +112,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/tan/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/tan/benchmark/c/benchmark.c index 83f5bf35c4be..484cc263fedc 100644 --- a/lib/node_modules/@stdlib/math/base/special/tan/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/tan/benchmark/c/benchmark.c @@ -89,7 +89,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -111,7 +114,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/tan/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/tan/benchmark/c/cephes/benchmark.c index ffc96a1d8690..d4761aa26679 100644 --- a/lib/node_modules/@stdlib/math/base/special/tan/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/tan/benchmark/c/cephes/benchmark.c @@ -94,7 +94,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -116,7 +119,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/tan/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/tan/benchmark/c/native/benchmark.c index 9a4e954a0235..6a1f42f927bb 100644 --- a/lib/node_modules/@stdlib/math/base/special/tan/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/tan/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/tand/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/tand/benchmark/c/native/benchmark.c index 7e502fa2e6ef..3c189076079a 100644 --- a/lib/node_modules/@stdlib/math/base/special/tand/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/tand/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/tandf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/tandf/benchmark/c/native/benchmark.c index 64dd26ce91a2..e9b69a81399b 100644 --- a/lib/node_modules/@stdlib/math/base/special/tandf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/tandf/benchmark/c/native/benchmark.c @@ -114,7 +114,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/tanf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/tanf/benchmark/c/benchmark.c index 9b01f5913e8d..d4eb32c7dd60 100644 --- a/lib/node_modules/@stdlib/math/base/special/tanf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/tanf/benchmark/c/benchmark.c @@ -113,7 +113,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/tanf/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/tanf/benchmark/c/cephes/benchmark.c index cfb3d115dba7..6b5303ae9dd6 100644 --- a/lib/node_modules/@stdlib/math/base/special/tanf/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/tanf/benchmark/c/cephes/benchmark.c @@ -118,7 +118,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/tanf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/tanf/benchmark/c/native/benchmark.c index df65c223c3e3..28f7ebf48587 100644 --- a/lib/node_modules/@stdlib/math/base/special/tanf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/tanf/benchmark/c/native/benchmark.c @@ -114,7 +114,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/tanh/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/tanh/benchmark/c/benchmark.c index 2b9508eafcf0..72984cc50ada 100644 --- a/lib/node_modules/@stdlib/math/base/special/tanh/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/tanh/benchmark/c/benchmark.c @@ -88,7 +88,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -110,7 +113,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/tanh/benchmark/c/cephes/benchmark.c b/lib/node_modules/@stdlib/math/base/special/tanh/benchmark/c/cephes/benchmark.c index eeac4fa21a05..727ad94ec006 100644 --- a/lib/node_modules/@stdlib/math/base/special/tanh/benchmark/c/cephes/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/tanh/benchmark/c/cephes/benchmark.c @@ -94,7 +94,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -116,7 +119,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/tanh/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/tanh/benchmark/c/native/benchmark.c index 8c489d5dfd34..d24f0f6f205d 100644 --- a/lib/node_modules/@stdlib/math/base/special/tanh/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/tanh/benchmark/c/native/benchmark.c @@ -89,7 +89,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -111,7 +114,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/tribonacci/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/tribonacci/benchmark/c/benchmark.c index d6f61a52e739..0ebdeef4d10a 100644 --- a/lib/node_modules/@stdlib/math/base/special/tribonacci/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/tribonacci/benchmark/c/benchmark.c @@ -136,7 +136,7 @@ static double benchmark( void ) { if ( y < 0 ) { printf( "should return a nonnegative integer\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/tribonacci/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/tribonacci/benchmark/c/native/benchmark.c index 0c0c9f0ea752..27caa8d26a4d 100644 --- a/lib/node_modules/@stdlib/math/base/special/tribonacci/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/tribonacci/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double t; double y; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y < 0 ) { printf( "should return a nonnegative integer\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/tribonaccif/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/tribonaccif/benchmark/c/benchmark.c index e42032f7c77f..1ca24bd9d84f 100644 --- a/lib/node_modules/@stdlib/math/base/special/tribonaccif/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/tribonaccif/benchmark/c/benchmark.c @@ -136,7 +136,7 @@ static double benchmark( void ) { if ( y < 0 ) { printf( "should return a nonnegative integer\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/tribonaccif/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/tribonaccif/benchmark/c/native/benchmark.c index a5c73c0dad70..ed88bfc2c68a 100644 --- a/lib/node_modules/@stdlib/math/base/special/tribonaccif/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/tribonaccif/benchmark/c/native/benchmark.c @@ -113,7 +113,7 @@ static double benchmark( void ) { if ( y < 0 ) { printf( "should return a nonnegative integer\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/trigamma/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/trigamma/benchmark/c/native/benchmark.c index d93f4e310185..fd942b921ec7 100644 --- a/lib/node_modules/@stdlib/math/base/special/trigamma/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/trigamma/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/trigammaf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/trigammaf/benchmark/c/native/benchmark.c index 7eea2b72505a..5277b76c576a 100644 --- a/lib/node_modules/@stdlib/math/base/special/trigammaf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/trigammaf/benchmark/c/native/benchmark.c @@ -114,7 +114,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/trunc/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/trunc/benchmark/c/benchmark.c index 5b99847fb92f..55c8543fcf82 100644 --- a/lib/node_modules/@stdlib/math/base/special/trunc/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/trunc/benchmark/c/benchmark.c @@ -89,7 +89,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -111,7 +114,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/trunc/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/trunc/benchmark/c/native/benchmark.c index d282a46862a9..a9623dcc7465 100644 --- a/lib/node_modules/@stdlib/math/base/special/trunc/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/trunc/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/trunc10/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/trunc10/benchmark/c/native/benchmark.c index f649079e0ecc..7c4c30c4fb15 100644 --- a/lib/node_modules/@stdlib/math/base/special/trunc10/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/trunc10/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/trunc2/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/trunc2/benchmark/c/native/benchmark.c index 205932105d3c..0707a7378de3 100644 --- a/lib/node_modules/@stdlib/math/base/special/trunc2/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/trunc2/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/truncb/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/truncb/benchmark/c/native/benchmark.c index bbb0146a73c6..3d811cec090c 100644 --- a/lib/node_modules/@stdlib/math/base/special/truncb/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/truncb/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/truncf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/truncf/benchmark/c/benchmark.c index 32ce987ca4ad..749b4e34b15f 100644 --- a/lib/node_modules/@stdlib/math/base/special/truncf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/truncf/benchmark/c/benchmark.c @@ -111,7 +111,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/truncf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/truncf/benchmark/c/native/benchmark.c index 55b80f25940e..a7427558f262 100644 --- a/lib/node_modules/@stdlib/math/base/special/truncf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/truncf/benchmark/c/native/benchmark.c @@ -112,7 +112,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/truncn/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/truncn/benchmark/c/native/benchmark.c index f28cea8acbfa..85cbe251d8ca 100644 --- a/lib/node_modules/@stdlib/math/base/special/truncn/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/truncn/benchmark/c/native/benchmark.c @@ -112,7 +112,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/truncsd/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/truncsd/benchmark/c/native/benchmark.c index 1285350841af..c012a21c2264 100644 --- a/lib/node_modules/@stdlib/math/base/special/truncsd/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/truncsd/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/vercos/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/vercos/benchmark/c/benchmark.c index a4d3c8effc47..c4be742348b1 100644 --- a/lib/node_modules/@stdlib/math/base/special/vercos/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/vercos/benchmark/c/benchmark.c @@ -89,7 +89,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -111,7 +114,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/vercos/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/vercos/benchmark/c/native/benchmark.c index 31080bc5b561..7eb42a13c3d6 100644 --- a/lib/node_modules/@stdlib/math/base/special/vercos/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/vercos/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/vercosf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/vercosf/benchmark/c/benchmark.c index 6222d0b273b2..d57648defd9e 100644 --- a/lib/node_modules/@stdlib/math/base/special/vercosf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/vercosf/benchmark/c/benchmark.c @@ -113,7 +113,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/vercosf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/vercosf/benchmark/c/native/benchmark.c index b16f71f4f863..911a7ffedca5 100644 --- a/lib/node_modules/@stdlib/math/base/special/vercosf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/vercosf/benchmark/c/native/benchmark.c @@ -114,7 +114,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/versin/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/versin/benchmark/c/benchmark.c index 956171b6dd2b..32941831f1b7 100644 --- a/lib/node_modules/@stdlib/math/base/special/versin/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/versin/benchmark/c/benchmark.c @@ -89,7 +89,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -111,7 +114,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/versin/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/versin/benchmark/c/native/benchmark.c index b5406f497b85..082ff0f8d0b6 100644 --- a/lib/node_modules/@stdlib/math/base/special/versin/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/versin/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/versinf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/versinf/benchmark/c/benchmark.c index 6a6201a40799..dc77601a9835 100644 --- a/lib/node_modules/@stdlib/math/base/special/versinf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/versinf/benchmark/c/benchmark.c @@ -113,7 +113,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/versinf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/versinf/benchmark/c/native/benchmark.c index 104521725872..3bab13ddc1a6 100644 --- a/lib/node_modules/@stdlib/math/base/special/versinf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/versinf/benchmark/c/native/benchmark.c @@ -114,7 +114,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/wrap/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/wrap/benchmark/c/benchmark.c index c55c87de2273..b6c9adfb142b 100644 --- a/lib/node_modules/@stdlib/math/base/special/wrap/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/wrap/benchmark/c/benchmark.c @@ -110,7 +110,10 @@ double wrap( double v, double min, double max ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -132,7 +135,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/wrap/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/wrap/benchmark/c/native/benchmark.c index 9ed2dd0f11aa..da0edaa74b3b 100644 --- a/lib/node_modules/@stdlib/math/base/special/wrap/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/wrap/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double elapsed; double y; double t; @@ -112,7 +115,8 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/wrapf/benchmark/c/benchmark.c b/lib/node_modules/@stdlib/math/base/special/wrapf/benchmark/c/benchmark.c index 3d93643fdc7f..09286d87c3d1 100644 --- a/lib/node_modules/@stdlib/math/base/special/wrapf/benchmark/c/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/wrapf/benchmark/c/benchmark.c @@ -132,7 +132,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/wrapf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/wrapf/benchmark/c/native/benchmark.c index 929213f5d1e6..51fc2401f4cb 100644 --- a/lib/node_modules/@stdlib/math/base/special/wrapf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/wrapf/benchmark/c/native/benchmark.c @@ -112,7 +112,7 @@ static double benchmark( void ) { if ( y != y ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/xlog1py/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/xlog1py/benchmark/c/native/benchmark.c index 7a2a9c85014b..1dff94e7e8a1 100644 --- a/lib/node_modules/@stdlib/math/base/special/xlog1py/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/xlog1py/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y[ 100 ]; double elapsed; double out; @@ -114,7 +117,8 @@ static double benchmark( void ) { if ( out != out ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/xlogy/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/xlogy/benchmark/c/native/benchmark.c index 9276b3d742b6..3cee493e7bc5 100644 --- a/lib/node_modules/@stdlib/math/base/special/xlogy/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/xlogy/benchmark/c/native/benchmark.c @@ -90,7 +90,10 @@ static double rand_double( void ) { * @return elapsed time in seconds */ static double benchmark( void ) { - double x[ 100 ]; + double *x = (double *)malloc( 100 * sizeof(double) ); + if ( x == NULL ) { + return 0.0; + } double y[ 100 ]; double elapsed; double out; @@ -114,7 +117,8 @@ static double benchmark( void ) { if ( out != out ) { printf( "should not return NaN\n" ); } - return elapsed; + free( x ); + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/math/base/special/xlogyf/benchmark/c/native/benchmark.c b/lib/node_modules/@stdlib/math/base/special/xlogyf/benchmark/c/native/benchmark.c index b60cbb961168..04ab81a0e693 100644 --- a/lib/node_modules/@stdlib/math/base/special/xlogyf/benchmark/c/native/benchmark.c +++ b/lib/node_modules/@stdlib/math/base/special/xlogyf/benchmark/c/native/benchmark.c @@ -114,7 +114,7 @@ static double benchmark( void ) { if ( out != out ) { printf( "should not return NaN\n" ); } - return elapsed; + return elapsed; } /** diff --git a/lib/node_modules/@stdlib/ndarray/base/buffer-ctors/benchmark/benchmark.js b/lib/node_modules/@stdlib/ndarray/base/buffer-ctors/benchmark/benchmark.js index 10a6852c0a22..39825c6b85b3 100644 --- a/lib/node_modules/@stdlib/ndarray/base/buffer-ctors/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/ndarray/base/buffer-ctors/benchmark/benchmark.js @@ -25,6 +25,7 @@ var DataType = require( '@stdlib/ndarray/dtype-ctor' ); var dtypes = require( '@stdlib/ndarray/dtypes' ); var structFactory = require( '@stdlib/dstructs/struct' ); var isFunction = require( '@stdlib/assert/is-function' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var ctors = require( './../lib' ); @@ -36,7 +37,7 @@ var DTYPES = dtypes( 'integer_and_generic' ); // MAIN // -bench( pkg+'::strings', function benchmark( b ) { +bench( format( '%s::strings', pkg ), function benchmark( b ) { var ctor; var i; @@ -55,7 +56,7 @@ bench( pkg+'::strings', function benchmark( b ) { b.end(); }); -bench( pkg+'::data_type_instances,strings', function benchmark( b ) { +bench( format( '%s::data_type_instances,strings', pkg ), function benchmark( b ) { var values; var ctor; var i; @@ -81,7 +82,7 @@ bench( pkg+'::data_type_instances,strings', function benchmark( b ) { b.end(); }); -bench( pkg+'::structs', function benchmark( b ) { +bench( format( '%s::structs', pkg ), function benchmark( b ) { var schema; var values; var ctor; @@ -118,7 +119,7 @@ bench( pkg+'::structs', function benchmark( b ) { b.end(); }); -bench( pkg+'::data_type_instances,structs', function benchmark( b ) { +bench( format( '%s::data_type_instances,structs', pkg ), function benchmark( b ) { var schema; var values; var ctor;