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

Float16_t with up to 32 bits is allowed (not just 16). #411

Merged
merged 1 commit into from
Aug 16, 2021

Conversation

jpivarski
Copy link
Member

Tested on files made by https://root.cern/doc/master/float16_8C_source.html with

   Float16_t fI14; //[-pi,pi,14] saved as a 14 bit unsigned int

replacing 14 with 20, 32, 33, 0, 1, and 2. Values outside of the legal range, 2 <= num_bits <= 32, are left in the file and have to be mapped to 32, even for Float16_t.

@jpivarski jpivarski merged commit a48601d into main Aug 16, 2021
@jpivarski jpivarski deleted the jpivarski/float16-with-up-to-32-bits-is-allowed branch August 16, 2021 17:20
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.

1 participant