File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed
lib/node_modules/@stdlib/math/base/special/powf/lib Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -264,18 +264,6 @@ function powf( x, y ) {
264
264
z = f32 ( lp + hp ) ;
265
265
j = toWordf ( z ) | 0 ; // asm type annotation
266
266
267
- // z > 128
268
- if ( j > Z_OVF_WORD ) {
269
- // Signal overflow...
270
- return f32 ( f32 ( sn * HUGE ) * HUGE ) ;
271
- }
272
- // z == 128
273
- if ( j === Z_OVF_WORD ) {
274
- if ( f32 ( lp + OVT ) > f32 ( z - hp ) ) {
275
- // Signal overflow...
276
- return f32 ( f32 ( sn * HUGE ) * HUGE ) ;
277
- }
278
- }
279
267
// z < -150
280
268
if ( ( j & ABS_MASK ) > Z_UNF_WORD ) {
281
269
// Signal underflow...
@@ -288,6 +276,18 @@ function powf( x, y ) {
288
276
return f32 ( f32 ( sn * TINY ) * TINY ) ;
289
277
}
290
278
}
279
+ // z > 128
280
+ if ( j > Z_OVF_WORD ) {
281
+ // Signal overflow...
282
+ return f32 ( f32 ( sn * HUGE ) * HUGE ) ;
283
+ }
284
+ // z == 128
285
+ if ( j === Z_OVF_WORD ) {
286
+ if ( f32 ( lp + OVT ) > f32 ( z - hp ) ) {
287
+ // Signal overflow...
288
+ return f32 ( f32 ( sn * HUGE ) * HUGE ) ;
289
+ }
290
+ }
291
291
// Compute `2^(hp+lp)`...
292
292
z = pow2f ( j , hp , lp ) ;
293
293
You can’t perform that action at this time.
0 commit comments