umath.cpp 642 B

1234567891011121314151617181920212223242526
  1. // © 2016 and later: Unicode, Inc. and others.
  2. // License & terms of use: http://www.unicode.org/copyright.html
  3. /*
  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. #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. }
  18. U_CAPI int32_t U_EXPORT2
  19. uprv_min(int32_t x, int32_t y)
  20. {
  21. return (x > y ? y : x);
  22. }