1 krisbash 1.1 #ifndef _intsafe_h
2 #define _intsafe_h
3
4 #include "palcommon.h"
5
6 PAL_BEGIN_EXTERNC
7
8 PAL_INLINE HRESULT
9 SizeTAdd(
10 _In_ size_t Augend,
11 _In_ size_t Addend,
12 _Out_ size_t* pResult)
13 {
14 *pResult = (Augend + Addend);
15 return S_OK;
16 }
17
18 PAL_INLINE HRESULT
19 SizeTMult(
20 _In_ size_t Multiplicand,
21 _In_ size_t Multiplier,
22 krisbash 1.1 _Out_ size_t* pResult)
23 {
24 *pResult = Multiplicand * Multiplier;
25 return S_OK;
26 }
27
28 PAL_END_EXTERNC
29
30 #endif /* _intsafe_h */
|