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

infinityp and nanp require CFFI. #57

Open
j3pic opened this issue Sep 19, 2022 · 0 comments
Open

infinityp and nanp require CFFI. #57

j3pic opened this issue Sep 19, 2022 · 0 comments

Comments

@j3pic
Copy link
Owner

j3pic commented Sep 19, 2022

I purportedly implemented a feature allowing the use of Lisp-Binary without CFFI. But I forgot about the fact that nanp and infinityp are just front-ends to their C counterparts. Also, the constants +inf, -inf, and quiet-nan are created by casting bit-patterns to float via CFFI.

In CCL, I avoid some of the problem by using CCL's extended constants. Newer versions of SBCL have constants for infinity, too, but I don't use them because SBCL didn't have them when I wrote the feature. I could begin using them now.

SBCL does not have a constant for NaN, but it does have sb-ext:float-nan-p. So I could avoid using C's isnan(), but I have no way to create one without CFFI.

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

No branches or pull requests

1 participant