Skip to content

Commit 64812ce

Browse files
committed
Auto-generated commit
1 parent 97993aa commit 64812ce

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -731,6 +731,7 @@ A total of 95 issues were closed in this release:
731731

732732
<details>
733733

734+
- [`0b14ced`](https://github.com/stdlib-js/stdlib/commit/0b14ced4fce04bbfde2d98230391ed699dd15235) - **bench:** replace M_PI in `math/base/special/sincospi` C benchmark [(#11690)](https://github.com/stdlib-js/stdlib/pull/11690) _(by Karan Anand)_
734735
- [`c73c8b3`](https://github.com/stdlib-js/stdlib/commit/c73c8b39bd76529182ea2b3423c6f0feab434774) - **bench:** refactor to use string interpolation in `math/base/special` [(#11387)](https://github.com/stdlib-js/stdlib/pull/11387) _(by Karan Anand)_
735736
- [`9229dd7`](https://github.com/stdlib-js/stdlib/commit/9229dd78fa82c5f863dbc51a9588314d53a97c44) - **bench:** refactor to use string interpolation in `math/base/special` [(#11386)](https://github.com/stdlib-js/stdlib/pull/11386) _(by Karan Anand)_
736737
- [`8c2f1cf`](https://github.com/stdlib-js/stdlib/commit/8c2f1cf76b36300b8674f4fc0e4d020dab2b0f55) - **bench:** refactor to use string interpolation in `math/base/special` [(#11389)](https://github.com/stdlib-js/stdlib/pull/11389) _(by Karan Anand)_

base/special/sincospi/benchmark/c/benchmark.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#define NAME "sincospi"
2626
#define ITERATIONS 1000000
2727
#define REPEATS 3
28+
#define PI 3.14159265358979323846
2829

2930
/**
3031
* Prints the TAP version.
@@ -102,8 +103,8 @@ static double benchmark( void ) {
102103

103104
t = tic();
104105
for ( i = 0; i < ITERATIONS; i++ ) {
105-
y = sin( M_PI * x[ i%100 ] );
106-
z = cos( M_PI * x[ i%100 ] );
106+
y = sin( PI * x[ i%100 ] );
107+
z = cos( PI * x[ i%100 ] );
107108
if ( y != y || z != z ) {
108109
printf( "should not return NaN\n" );
109110
break;

0 commit comments

Comments
 (0)