float-cmp icon indicating copy to clipboard operation
float-cmp copied to clipboard

Improve core performance

Open mikedilger opened this issue 7 years ago • 2 comments

...perhaps by making the core functions branchless.

approx_eq_ulps(), probably the most used function, is pretty short and probably quite easy to make branchless.

approx_cmp() and approx_eq_ratio() are disturbingly long functions IMHO and probably hold promise for plenty of other kinds of optimizations.

mikedilger avatar Feb 27 '18 19:02 mikedilger

Hi,

I want to work on this, Is it ok if I add benchmarks in benches folder ?

ghost avatar Jun 15 '19 21:06 ghost

Go for it.

mikedilger avatar Jun 16 '19 23:06 mikedilger