We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd376c5 commit 0943874Copy full SHA for 0943874
lib/node_modules/@stdlib/math/base/special/minmaxabs/src/main.c
@@ -38,22 +38,27 @@
38
* // minabs = 0.0, maxabs = 0.0
39
*/
40
void stdlib_base_minmaxabs( const double x, const double y, double* minabs, double* maxabs ) {
41
- double ax;
+
42
+ double ax;
43
double ay;
44
45
if ( stdlib_base_is_nan( x ) || stdlib_base_is_nan( y ) ) {
46
*minabs = 0.0 / 0.0; // NaN
- *maxabs = 0.0 / 0.0; // NaN
47
- return;
+ *maxabs = 0.0 / 0.0; // NaN
48
+ return;
49
}
50
51
ax = stdlib_base_abs( x );
52
ay = stdlib_base_abs( y );
53
54
if ( ax < ay ) {
55
*minabs = ax;
- *maxabs = ay;
56
+ *maxabs = ay;
57
58
59
60
*minabs = ay;
61
*maxabs = ax;
62
63
return;
64
0 commit comments