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

Speed of half_float #3

Open
rahul003 opened this issue Mar 22, 2018 · 1 comment
Open

Speed of half_float #3

rahul003 opened this issue Mar 22, 2018 · 1 comment

Comments

@rahul003
Copy link

Hey couple of questions,

  1. Is this faster than float arithmetic? Have you run some benchmarks?
  2. How fast or slow would this be compared to just casting to float and using uint16_t for moving data around.
@acgessler
Copy link
Owner

This will be magnitudes slower than float arithmetic. It's really intended for cases where you'd want to convert float or double data to 16 bit floats for use in GPU buffers. The arithmetic operations that are implemented were mostly an exercise ;-)

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

2 participants