Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Make `i*::signum` a `const fn`. #61635
Ticks a box in #53718.
This uses a well-known branchless implementation of
Here's a playground comparing the two techniques. On x86 in release mode, the branchless implementation is able to replace a
Jun 7, 2019
Click to expand the log.