We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a656e0 commit a6d226aCopy full SHA for a6d226a
lib/node_modules/@stdlib/math/base/special/atanh/src/main.c
@@ -96,8 +96,8 @@ static const int32_t HIGH_BIASED_EXP_NEG_1 = 0x3fe00000;
96
*/
97
double stdlib_base_atanh( const double x ) {
98
uint32_t lx;
99
- int32_t hx;
100
- int32_t ahx;
+ unt32_t hx;
+ unt32_t ahx;
101
double t;
102
if ( stdlib_base_is_nan( x ) || x < -1.0 || x > 1.0 ) {
103
return 0.0 / 0.0; // NaN
@@ -116,7 +116,7 @@ double stdlib_base_atanh( const double x ) {
116
if( ahx < HIGH_BIASED_EXP_NEG_7 && ( huge+x ) > zero) {
117
return x; // x<2**-28
118
}
119
- stdlib_base_float64_set_high_word( x, &ahx );
+ stdlib_base_float64_set_high_word( ahx, &x );
120
if( ahx < HIGH_BIASED_EXP_NEG_1 ) {
121
t = x + x;
122
t = 0.5 * stdlib_base_log1p( t + ( t * x / ( one - x ) ) );
0 commit comments