Library for branch-free saturating arithmetic.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
Makefile
README
bsa.c
bsa.h
check_bsa.c

README

Branch-free saturating arithmetic.

Now as a library, with unit testing!

Check out https://locklessinc.com/articles/sat_arithmetic/ for cool details.