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

Nan checks for ncr and fac #82

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

juntuu
Copy link

@juntuu juntuu commented Jul 26, 2021

Added nan check for ncr and fac functions.
Now both will return nan, when given nan as parameter.

This should resolve #62

Also added .gitignore with the artifacts from make

Now both `fac` and `ncr` will return NAN, if any argument is NAN.
Ignore object files and executables from make targets.

Also added repl-readline to make clean target.
@invd
Copy link

invd commented Jun 18, 2024

I can confirm that the better NAN handling resolves the slow ncr() behavior 👍

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.

nested ncr() calls can be very slow (potential denial of service)
2 participants