blob: 7cf4b317494083087b9ac654d175bf953a0f7151 [file] [log] [blame]
Fredrik Roubert0596fae2017-04-18 21:34:02 +02001// © 2016 and later: Unicode, Inc. and others.
Fredrik Roubert64339d32016-10-21 19:43:16 +02002// License & terms of use: http://www.unicode.org/copyright.html
Jean-Baptiste Queruac04d0b2009-07-17 17:11:19 -07003/*
4******************************************************************************
5*
6* Copyright (C) 1997-2006, International Business Machines
7* Corporation and others. All Rights Reserved.
8*
9******************************************************************************
10* This file contains platform independent math.
11*/
12
13#include "putilimp.h"
14
15U_CAPI int32_t U_EXPORT2
16uprv_max(int32_t x, int32_t y)
17{
18 return (x > y ? x : y);
19}
20
21U_CAPI int32_t U_EXPORT2
22uprv_min(int32_t x, int32_t y)
23{
24 return (x > y ? y : x);
25}
26