Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(742)

Unified Diff: source/common/uhash.c

Issue 2440913002: Update ICU to 58.1
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/common/uhash.h ('k') | source/common/uhash_us.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/common/uhash.c
diff --git a/source/common/uhash.c b/source/common/uhash.c
index 400157dc92b1c4306519a68ed526ca8f72b10701..282f89fe26824034464a65a42eef0d30cf3ac3b9 100644
--- a/source/common/uhash.c
+++ b/source/common/uhash.c
@@ -1,6 +1,8 @@
+// Copyright (C) 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
/*
******************************************************************************
-* Copyright (C) 1997-2014, International Business Machines
+* Copyright (C) 1997-2016, International Business Machines
* Corporation and others. All Rights Reserved.
******************************************************************************
* Date Name Description
@@ -83,7 +85,7 @@ static const int32_t PRIMES[] = {
1073741789, 2147483647 /*, 4294967291 */
};
-#define PRIMES_LENGTH (sizeof(PRIMES) / sizeof(PRIMES[0]))
+#define PRIMES_LENGTH UPRV_LENGTHOF(PRIMES)
#define DEFAULT_PRIME_INDEX 3
/* These ratios are tuned to the PRIMES array such that a resize
« no previous file with comments | « source/common/uhash.h ('k') | source/common/uhash_us.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698