File tree Expand file tree Collapse file tree 4 files changed +12
-16
lines changed
lib/node_modules/@stdlib/math/base/special/fast/alpha-max-plus-beta-minf/lib Expand file tree Collapse file tree 4 files changed +12
-16
lines changed Original file line number Diff line number Diff line change @@ -35,12 +35,10 @@ var f32 = require( '@stdlib/number/float64/base/to-float32' );
3535* // returns <number>
3636*/
3737function hypotf ( x , y ) {
38- x = f32 ( x ) ;
39- y = f32 ( y ) ;
4038 if ( x > y ) {
41- return f32 ( x + f32 ( y >>> 1 ) ) ;
39+ return f32 ( x + ( y >>> 1 ) ) ;
4240 }
43- return f32 ( f32 ( x >>> 1 ) + y ) ;
41+ return f32 ( ( x >>> 1 ) + y ) ;
4442}
4543
4644
Original file line number Diff line number Diff line change @@ -39,12 +39,12 @@ var f32 = require( '@stdlib/number/float64/base/to-float32' );
3939* // returns <number>
4040*/
4141function hypotf ( x , y ) {
42- x = f32 ( abs ( x ) ) ;
43- y = f32 ( abs ( y ) ) ;
42+ x = abs ( x ) ;
43+ y = abs ( y ) ;
4444 if ( x > y ) {
45- return f32 ( x + f32 ( y >>> 1 ) ) ;
45+ return f32 ( x + ( y >>> 1 ) ) ;
4646 }
47- return f32 ( f32 ( x >>> 1 ) + y ) ;
47+ return f32 ( ( x >>> 1 ) + y ) ;
4848}
4949
5050
Original file line number Diff line number Diff line change @@ -35,12 +35,10 @@ var f32 = require( '@stdlib/number/float64/base/to-float32' );
3535* // returns <number>
3636*/
3737function hypotf ( x , y ) {
38- x = f32 ( x ) ;
39- y = f32 ( y ) ;
4038 if ( x > y ) {
41- return f32 ( x + f32 ( y >>> 2 ) ) ;
39+ return f32 ( x + ( y >>> 2 ) ) ;
4240 }
43- return f32 ( f32 ( x >>> 2 ) + y ) ;
41+ return f32 ( ( x >>> 2 ) + y ) ;
4442}
4543
4644
Original file line number Diff line number Diff line change @@ -39,12 +39,12 @@ var f32 = require( '@stdlib/number/float64/base/to-float32' );
3939* // returns <number>
4040*/
4141function hypotf ( x , y ) {
42- x = f32 ( abs ( x ) ) ;
43- y = f32 ( abs ( y ) ) ;
42+ x = abs ( x ) ;
43+ y = abs ( y ) ;
4444 if ( x > y ) {
45- return f32 ( x + f32 ( y >>> 2 ) ) ;
45+ return f32 ( x + ( y >>> 2 ) ) ;
4646 }
47- return f32 ( f32 ( x >>> 2 ) + y ) ;
47+ return f32 ( ( x >>> 2 ) + y ) ;
4848}
4949
5050
You can’t perform that action at this time.
0 commit comments