Skip to content

Commit 2dc8d29

Browse files
chore: add new var
1 parent eac4d5d commit 2dc8d29

File tree

1 file changed

+3
-3
lines changed
  • lib/node_modules/@stdlib/math/base/special/atanh/src

1 file changed

+3
-3
lines changed

lib/node_modules/@stdlib/math/base/special/atanh/src/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,14 @@ double stdlib_base_atanh( const double x ) {
118118
return x; // x<2**-28
119119
}
120120

121-
ax = (double *)&x;
122-
stdlib_base_float64_set_high_word( ahx, &ax );
121+
ax = x;
122+
stdlib_base_float64_set_high_word( ahx, ax );
123123

124124
if( ahx < HIGH_BIASED_EXP_NEG_1 ) {
125125
t = ax + ax;
126126
t = 0.5 * stdlib_base_log1p( t + ( t * ax / ( one - ax ) ) );
127127
} else {
128128
t = 0.5 * stdlib_base_log1p( ( ax + ax ) / ( one - ax ) );
129129
}
130-
return ( hx >= 0 ) ? -t : t;
130+
return ( hx == 1 ) ? -t : t;
131131
}

0 commit comments

Comments
 (0)