diff options
Diffstat (limited to 'Build/source/libs/icu/icu-src/source/i18n/gregoimp.h')
-rw-r--r-- | Build/source/libs/icu/icu-src/source/i18n/gregoimp.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Build/source/libs/icu/icu-src/source/i18n/gregoimp.h b/Build/source/libs/icu/icu-src/source/i18n/gregoimp.h index 27303a6ac52..afaacda0b41 100644 --- a/Build/source/libs/icu/icu-src/source/i18n/gregoimp.h +++ b/Build/source/libs/icu/icu-src/source/i18n/gregoimp.h @@ -1,4 +1,4 @@ -// Copyright (C) 2016 and later: Unicode, Inc. and others. +// © 2016 and later: Unicode, Inc. and others. // License & terms of use: http://www.unicode.org/copyright.html /* ********************************************************************** @@ -41,6 +41,17 @@ class ClockMath { static int32_t floorDivide(int32_t numerator, int32_t denominator); /** + * Divide two integers, returning the floor of the quotient. + * Unlike the built-in division, this is mathematically + * well-behaved. E.g., <code>-1/4</code> => 0 but + * <code>floorDivide(-1,4)</code> => -1. + * @param numerator the numerator + * @param denominator a divisor which must be != 0 + * @return the floor of the quotient + */ + static int64_t floorDivide(int64_t numerator, int64_t denominator); + + /** * Divide two numbers, returning the floor of the quotient. * Unlike the built-in division, this is mathematically * well-behaved. E.g., <code>-1/4</code> => 0 but |