half_float icon indicating copy to clipboard operation
half_float copied to clipboard

Speed of half_float

Open rahul003 opened this issue 7 years ago • 1 comments

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.

rahul003 avatar Mar 22 '18 01:03 rahul003

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 ;-)

acgessler avatar Mar 24 '18 15:03 acgessler