Add constexpr_add/sub_overflow_clamped in folly/ConstexprMath.h
Summary: Provide UBSAN-clean add/sub function on integral types. Helps to avoid overflow. Reviewed By: yfeldblum Differential Revision: D7230723 fbshipit-source-id: 10fa54b405f9643dfbbb1940cf100516fd1341e1
Showing
Please register or sign in to comment