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

Handle 32bit and 128bit floats, not just 64bit floats #7

Open
pryrt opened this issue Aug 29, 2016 · 1 comment
Open

Handle 32bit and 128bit floats, not just 64bit floats #7

pryrt opened this issue Aug 29, 2016 · 1 comment
Assignees
Milestone

Comments

@pryrt
Copy link
Owner

pryrt commented Aug 29, 2016

as of v0.014, still only handles 64bit double-floats. It would be nice to also handle 32bit single-floats and 128bit floats ("quad"?).

@pryrt pryrt added this to the LongTerm milestone Aug 29, 2016
@pryrt pryrt self-assigned this Aug 29, 2016
@pryrt
Copy link
Owner Author

pryrt commented Aug 29, 2016

If I did this, I'd probably then introduce a naming convention of some sort.

IEEE Std 754™-2008 uses <format>-camelCase, which of course wouldn't work in Perl.

My thought: use <format>_camelCase instead: name the per-size functions single_camelCase, double_camelCase, quad_camelCase, and use the %Config{nvsize} to pick the correct alias for the raw camelCase.

Though, perhaps I should instead use the actual 754™ format names: binary32, binary64, binary128.

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

No branches or pull requests

1 participant