Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add C implementation for math/base/assert/is-composite #1918

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update main.c
Signed-off-by: Rutam <[email protected]>
performant23 authored Mar 16, 2024
commit dcd9ca8df246a468e6a48ed4fc7541369a9feee5
Original file line number Diff line number Diff line change
@@ -36,5 +36,5 @@
* // returns false
*/
bool stdlib_base_is_composite( double x ) {
return ( stdlib_base_is_integer( x ) && ( x > 1 ) && ( x != STDLIB_CONSTANTS_FLOAT64_PINF_H ) && ( !stdlib_base_is_prime( x ) ) );
return ( stdlib_base_is_integer( x ) && ( x > 1 ) && ( x != STDLIB_CONSTANT_FLOAT64_PINF ) && ( !stdlib_base_is_prime( x ) ) );
}