template <typename Dst, typename Src>

struct SaturateFastOp

Defined at line 158 of file ../../zircon/third_party/ulib/safemath/include/safemath/safe_conversions.h

We can reduce the number of conditions and get slightly better performance

for normal signed and unsigned integer ranges. And in the specific case of

Arm, we can use the optimized saturation instructions.

Public Members

static const bool is_supported

Public Methods

Dst Do (Src )

Defined at line 160 of file ../../zircon/third_party/ulib/safemath/include/safemath/safe_conversions.h