Skip to content

Commit 60a9a05

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into stats-maxabs
2 parents 9f729cc + a34b28a commit 60a9a05

File tree

107 files changed

+4841
-14
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+4841
-14
lines changed

lib/node_modules/@stdlib/math/base/assert/int32-is-even/src/addon.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
#include "stdlib/math/base/assert/int32_is_even.h"
2020
#include <node_api.h>
21+
#include <stdbool.h>
2122
#include <stdint.h>
2223
#include <assert.h>
2324

lib/node_modules/@stdlib/math/base/assert/int32-is-even/src/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
*/
1818

1919
#include "stdlib/math/base/assert/int32_is_even.h"
20+
#include <stdbool.h>
2021
#include <stdint.h>
2122

2223
/**

lib/node_modules/@stdlib/math/base/assert/int32-is-odd/src/addon.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
#include "stdlib/math/base/assert/int32_is_odd.h"
2020
#include <node_api.h>
21+
#include <stdbool.h>
2122
#include <stdint.h>
2223
#include <assert.h>
2324

lib/node_modules/@stdlib/math/base/assert/int32-is-odd/src/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
*/
1818

1919
#include "stdlib/math/base/assert/int32_is_odd.h"
20+
#include <stdbool.h>
2021
#include <stdint.h>
2122

2223
/**

lib/node_modules/@stdlib/math/base/assert/is-composite/src/main.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include "stdlib/math/base/assert/is_prime.h"
2121
#include "stdlib/math/base/assert/is_integer.h"
2222
#include "stdlib/constants/float64/pinf.h"
23+
#include <stdbool.h>
2324

2425
/**
2526
* Returns a boolean indicating whether a number is a composite.
@@ -34,5 +35,10 @@
3435
* // returns false
3536
*/
3637
bool stdlib_base_is_composite( double x ) {
37-
return ( stdlib_base_is_integer( x ) && ( x > 1 ) && ( x != STDLIB_CONSTANT_FLOAT64_PINF ) && ( !stdlib_base_is_prime( x ) ) );
38+
return (
39+
stdlib_base_is_integer( x ) &&
40+
x > 1 &&
41+
x != STDLIB_CONSTANT_FLOAT64_PINF &&
42+
!stdlib_base_is_prime( x )
43+
);
3844
}

lib/node_modules/@stdlib/math/base/assert/is-even/src/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
#include "stdlib/math/base/assert/is_even.h"
2020
#include "stdlib/math/base/assert/is_integer.h"
21+
#include <stdbool.h>
2122

2223
/**
2324
* Tests if a finite numeric value is an even number.

lib/node_modules/@stdlib/math/base/assert/is-evenf/src/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
#include "stdlib/math/base/assert/is_evenf.h"
2020
#include "stdlib/math/base/assert/is_integerf.h"
21+
#include <stdbool.h>
2122

2223
/**
2324
* Test if a finite single-precision floating-point number is an even number.

lib/node_modules/@stdlib/math/base/assert/is-integer/src/main.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
#include "stdlib/math/base/assert/is_integer.h"
2020
#include "stdlib/math/base/special/floor.h"
21+
#include <stdbool.h>
2122

2223
/**
2324
* Tests if a finite double-precision floating-point number is an integer.
@@ -32,5 +33,5 @@
3233
* // returns true
3334
*/
3435
bool stdlib_base_is_integer( const double x ) {
35-
return ( x == stdlib_base_floor( x ) );
36+
return ( stdlib_base_floor( x ) == x );
3637
}

lib/node_modules/@stdlib/math/base/assert/is-integerf/src/main.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
#include "stdlib/math/base/assert/is_integerf.h"
2020
#include "stdlib/math/base/special/floorf.h"
21+
#include <stdbool.h>
2122

2223
/**
2324
* Tests if a finite single-precision floating-point number is an integer.
@@ -32,5 +33,5 @@
3233
* // returns true
3334
*/
3435
bool stdlib_base_is_integerf( const float x ) {
35-
return ( x == stdlib_base_floorf( x ) );
36+
return ( stdlib_base_floorf( x ) == x );
3637
}

lib/node_modules/@stdlib/math/base/assert/is-negative-finite/src/addon.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
#include "stdlib/math/base/assert/is_negative_finite.h"
2020
#include <node_api.h>
21+
#include <stdbool.h>
2122
#include <stdint.h>
2223
#include <assert.h>
2324

0 commit comments

Comments
 (0)