intl/icu/source/common/umath.c

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/intl/icu/source/common/umath.c	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,24 @@
     1.4 +/*
     1.5 +******************************************************************************
     1.6 +*
     1.7 +*   Copyright (C) 1997-2006, International Business Machines
     1.8 +*   Corporation and others.  All Rights Reserved.
     1.9 +*
    1.10 +******************************************************************************
    1.11 +* This file contains platform independent math.
    1.12 +*/
    1.13 +
    1.14 +#include "putilimp.h"
    1.15 +
    1.16 +U_CAPI int32_t U_EXPORT2
    1.17 +uprv_max(int32_t x, int32_t y)
    1.18 +{
    1.19 +    return (x > y ? x : y);
    1.20 +}
    1.21 +
    1.22 +U_CAPI int32_t U_EXPORT2
    1.23 +uprv_min(int32_t x, int32_t y)
    1.24 +{
    1.25 +    return (x > y ? y : x);
    1.26 +}
    1.27 +

mercurial