graphite ~master (2015-10-08T12:57:16Z)
Home
Dub
Repo
satOp
graphite
math
saturation
see:
http://locklessinc.com/articles/sat_arithmetic/
T
satOp
(T a, T b)
T
satOp
(
string
op
: "+"
T
)
(
T
a
,
T
b
)
if
(
isIntegral
!
T
&&
isUnsigned
!
T
)
T
satOp
(T a, T b)
T
satOp
(T a, T b)
T
satOp
(T a, T b)
Meta
Source
See Implementation
graphite
math
saturation
functions
satOp
see: http://locklessinc.com/articles/sat_arithmetic/