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 ) {
264264 z = f32 ( lp + hp ) ;
265265 j = toWordf ( z ) | 0 ; // asm type annotation
266266
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- }
279267 // z < -150
280268 if ( ( j & ABS_MASK ) > Z_UNF_WORD ) {
281269 // Signal underflow...
@@ -288,6 +276,18 @@ function powf( x, y ) {
288276 return f32 ( f32 ( sn * TINY ) * TINY ) ;
289277 }
290278 }
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+ }
291291 // Compute `2^(hp+lp)`...
292292 z = pow2f ( j , hp , lp ) ;
293293
You can’t perform that action at this time.
0 commit comments