zoo icon indicating copy to clipboard operation
zoo copied to clipboard

Switch constantIsGreaterEqual to use greaterEqual

Open Scottbruceheart opened this issue 1 year ago • 3 comments

There isn't an advantage to using the previous algorithm.

Scottbruceheart avatar Jun 18 '24 23:06 Scottbruceheart

Please prove the claim there's no advantage to using the older mechanism, for all cases.

thecppzoo avatar Jun 19 '24 00:06 thecppzoo

I think there is an advantage for the msb_off version, though?

Scottbruceheart avatar Jun 19 '24 06:06 Scottbruceheart

I believe we also previously posted godbolt results for both that showed the general version of the constant compare (constantIsGreaterEqual) is more operations than the taocp impl.

Scottbruceheart avatar Jun 21 '24 18:06 Scottbruceheart