summaryrefslogtreecommitdiff
path: root/chromium/third_party/icu/source/i18n/gregoimp.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/icu/source/i18n/gregoimp.h')
-rw-r--r--chromium/third_party/icu/source/i18n/gregoimp.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/chromium/third_party/icu/source/i18n/gregoimp.h b/chromium/third_party/icu/source/i18n/gregoimp.h
index b30741679df..afaacda0b41 100644
--- a/chromium/third_party/icu/source/i18n/gregoimp.h
+++ b/chromium/third_party/icu/source/i18n/gregoimp.h
@@ -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