Implementation of branchless saturating arithmetic.
- Bit Twiddling Hacks by Sean Eron Anderson
- Branchfree Saturating Arithmetic article by Lockless Inc.
- Hacker’s Delight (at the time of writing the original book site is not available, but it can be seen here).