diff options
Diffstat (limited to 'deps/icu-small/source/common/umath.c')
-rw-r--r-- | deps/icu-small/source/common/umath.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/deps/icu-small/source/common/umath.c b/deps/icu-small/source/common/umath.c new file mode 100644 index 0000000000..9e540d4d8d --- /dev/null +++ b/deps/icu-small/source/common/umath.c @@ -0,0 +1,23 @@ +/* +****************************************************************************** +* +* Copyright (C) 1997-2006, International Business Machines +* Corporation and others. All Rights Reserved. +* +****************************************************************************** +* This file contains platform independent math. +*/ + +#include "putilimp.h" + +U_CAPI int32_t U_EXPORT2 +uprv_max(int32_t x, int32_t y) +{ + return (x > y ? x : y); +} + +U_CAPI int32_t U_EXPORT2 +uprv_min(int32_t x, int32_t y) +{ + return (x > y ? y : x); +} |