]>
git.saurik.com Git - apple/icu.git/blob - icuSources/common/umath.cpp
1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
4 ******************************************************************************
6 * Copyright (C) 1997-2006, International Business Machines
7 * Corporation and others. All Rights Reserved.
9 ******************************************************************************
10 * This file contains platform independent math.
15 U_CAPI
int32_t U_EXPORT2
16 uprv_max(int32_t x
, int32_t y
)
18 return (x
> y
? x
: y
);
21 U_CAPI
int32_t U_EXPORT2
22 uprv_min(int32_t x
, int32_t y
)
24 return (x
> y
? y
: x
);