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

Add finite and lgamma #105

Merged
merged 8 commits into from
Dec 30, 2023
Merged

Add finite and lgamma #105

merged 8 commits into from
Dec 30, 2023

Conversation

KGrewal1
Copy link
Contributor

@KGrewal1 KGrewal1 commented Dec 29, 2023

This adds the functions described in https://man7.org/linux/man-pages/man3/isnanf.3.html for f32 and f64 removing isnanf() from todo.

Implemented are

  • finite
  • finitef
  • isnan
  • isnanf
  • isinf
  • isinff

and the missing maths functions

-lgamma
-lgammaf
It also cleans up strcmp and strverscmp such that the break conditions are in the while condition

Copy link
Owner

@sunfishcode sunfishcode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool!

c-scape/src/math/mod.rs Outdated Show resolved Hide resolved
@KGrewal1
Copy link
Contributor Author

KGrewal1 commented Dec 29, 2023

I've just realised that lgamma and lgammaf are already in libm (and so I can add them to this PR if that suits as opposed to many more PRs)?

@KGrewal1 KGrewal1 changed the title Add finite Add finite and lgamma Dec 29, 2023
@sunfishcode
Copy link
Owner

Yeah, adding them to this PR is fine for now.

@sunfishcode sunfishcode merged commit badf366 into sunfishcode:main Dec 30, 2023
5 checks passed
@sunfishcode
Copy link
Owner

Looks great, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants