News for hackers. Stuff that matters.
Re:The fixed_point C++ Class Template by strager on Friday August 14, 2015 @01:29PM (#10061451)
A two-byte fixed-point number is likely to be less expensive to deal with than a two-byte floating-point number. (Promotion and demotion cost is pretty high for small floating-point types (bit masking, shifting, oring, etc.) compared to fixed-point promotion and demotion (shift).)
Re:The fixed_point C++ Class Template by sdab on Friday August 14, 2015 @01:40PM (#10061519)
I figured performance came into it also. It would be nice to see some performance numbers though.