Skip to content

Commit

Permalink
Update main.c
Browse files Browse the repository at this point in the history
Signed-off-by: GUNJ JOSHI <gunjjoshi8372@gmail.com>
  • Loading branch information
gunjjoshi authored Jul 15, 2024
1 parent faa72a4 commit 779d8d3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/node_modules/@stdlib/math/base/special/fmod/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,10 @@ double stdlib_base_fmod( const double x, const double y ) {
hx = hx + hx + ( lx >> 31 );
lx += lx;
} else {
if ( ( hz | lz ) == 0 )
// return sign(x)*0
return ZERO[ (uint32_t)sx >> 31 ];
if ( ( hz | lz ) == 0 ) {
// return sign(x)*0
return ZERO[ (uint32_t)sx >> 31 ];
}
hx = hz + hz + ( lz >> 31 );
lx = lz + lz;
}
Expand Down

0 comments on commit 779d8d3

Please sign in to comment.