intl/icu/source/common/umath.c

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     1 /*
     2 ******************************************************************************
     3 *
     4 *   Copyright (C) 1997-2006, International Business Machines
     5 *   Corporation and others.  All Rights Reserved.
     6 *
     7 ******************************************************************************
     8 * This file contains platform independent math.
     9 */
    11 #include "putilimp.h"
    13 U_CAPI int32_t U_EXPORT2
    14 uprv_max(int32_t x, int32_t y)
    15 {
    16     return (x > y ? x : y);
    17 }
    19 U_CAPI int32_t U_EXPORT2
    20 uprv_min(int32_t x, int32_t y)
    21 {
    22     return (x > y ? y : x);
    23 }

mercurial