Skip to content

Commit 3544960

Browse files
committed
Auto-generated commit
1 parent 085e509 commit 3544960

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

CHANGELOG.md

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

492492
<details>
493493

494+
- [`d4793c2`](https://github.com/stdlib-js/stdlib/commit/d4793c2308505d16cb0e553861de8f4a2de24152) - **refactor:** align conditional checks with `C` implementation _(by Karan Anand)_
494495
- [`2e5601a`](https://github.com/stdlib-js/stdlib/commit/2e5601ac124eba7f7da0079cf9c8124c21810c3d) - **feat:** add signed 16-bit integer APIs _(by Athan Reines)_
495496
- [`3e17026`](https://github.com/stdlib-js/stdlib/commit/3e17026605bc56416822aa289fd4e2f428c3bf11) - **feat:** add signed 8-bit integer APIs _(by Athan Reines)_
496497
- [`d1b7fe1`](https://github.com/stdlib-js/stdlib/commit/d1b7fe117cae21279fb8e62283ba7693822bda4d) - **feat:** add unsigned 32-bit integer APIs _(by Athan Reines)_

CONTRIBUTORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ AlyAbdelmoneim <148393799+AlyAbdelmoneim@users.noreply.github.com>
2222
Aman Bhansali <bhansali.1@iitj.ac.in>
2323
AmanBhadkariya <140033975+AmanBhadkariya@users.noreply.github.com>
2424
Amit Jimiwal <amitjimiwal45@gmail.com>
25+
Annamalai Prabu <apfossdev@gmail.com>
2526
Anshu Kumar <132515490+anxhukumar@users.noreply.github.com>
2627
Anshu Kumar <contact.anshukumar@protonmail.com>
2728
Anudeep Sanapala <anudeep0306@gmail.com>

base/special/rempio2/lib/main.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ function rempio2( x, y ) {
137137
var n;
138138
var z;
139139

140-
hx = getHighWord( x );
140+
hx = getHighWord( x )|0; // asm type annotation
141141
ix = (hx & ABS_MASK)|0; // asm type annotation
142142

143143
// Case: |x| ~<= π/4 (no need for reduction)
@@ -155,7 +155,7 @@ function rempio2( x, y ) {
155155
}
156156
// Case: |x| ~<= 3π/4
157157
if ( ix <= THREE_PIO4_HIGH_WORD ) {
158-
if ( x > 0.0 ) {
158+
if ( hx > 0 ) {
159159
z = x - PIO2_1;
160160
y[ 0 ] = z - PIO2_1T;
161161
y[ 1 ] = (z - y[0]) - PIO2_1T;
@@ -166,7 +166,7 @@ function rempio2( x, y ) {
166166
y[ 1 ] = (z - y[0]) + PIO2_1T;
167167
return -1;
168168
}
169-
if ( x > 0.0 ) {
169+
if ( hx > 0 ) {
170170
z = x - ( 2.0*PIO2_1 );
171171
y[ 0 ] = z - TWO_PIO2_1T;
172172
y[ 1 ] = (z - y[0]) - TWO_PIO2_1T;
@@ -185,7 +185,7 @@ function rempio2( x, y ) {
185185
if ( ix === THREE_PIO2_HIGH_WORD ) {
186186
return rempio2Medium( x, ix, y );
187187
}
188-
if ( x > 0.0 ) {
188+
if ( hx > 0 ) {
189189
z = x - ( 3.0*PIO2_1 );
190190
y[ 0 ] = z - THREE_PIO2_1T;
191191
y[ 1 ] = (z - y[0]) - THREE_PIO2_1T;
@@ -200,7 +200,7 @@ function rempio2( x, y ) {
200200
if ( ix === TWO_PI_HIGH_WORD ) {
201201
return rempio2Medium( x, ix, y );
202202
}
203-
if ( x > 0.0 ) {
203+
if ( hx > 0 ) {
204204
z = x - ( 4.0*PIO2_1 );
205205
y[ 0 ] = z - FOUR_PIO2_1T;
206206
y[ 1 ] = (z - y[0]) - FOUR_PIO2_1T;
@@ -236,7 +236,7 @@ function rempio2( x, y ) {
236236
nx -= 1;
237237
}
238238
n = rempio2Kernel( TX, TY, e0, nx, 1 );
239-
if ( x < 0.0 ) {
239+
if ( hx < 0 ) {
240240
y[ 0 ] = -TY[ 0 ];
241241
y[ 1 ] = -TY[ 1 ];
242242
return -n;

0 commit comments

Comments
 (0)