// Copyright 2019 Google LLC. All rights reserved. This file and proprietary // source code may only be used and distributed under the Widevine // License Agreement. #ifndef WIDEVINE_ODK_SRC_ODK_OVERFLOW_H_ #define WIDEVINE_ODK_SRC_ODK_OVERFLOW_H_ #include #include #ifdef __cplusplus extern "C" { #endif int odk_sub_overflow_u64(uint64_t a, uint64_t b, uint64_t* c); int odk_add_overflow_u64(uint64_t a, uint64_t b, uint64_t* c); int odk_add_overflow_ux(size_t a, size_t b, size_t* c); int odk_mul_overflow_ux(size_t a, size_t b, size_t* c); #ifdef __cplusplus } #endif #endif // WIDEVINE_ODK_SRC_ODK_OVERFLOW_H_