X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/46f4442e9a5a4f3b98b7c1083586332f6a8a99a4..a01113dcd0f39d5da295ef82785beff9ed86fe38:/icuSources/test/perf/unisetperf/draft/bitset.cpp diff --git a/icuSources/test/perf/unisetperf/draft/bitset.cpp b/icuSources/test/perf/unisetperf/draft/bitset.cpp index 487d0c09..e1eb64ee 100644 --- a/icuSources/test/perf/unisetperf/draft/bitset.cpp +++ b/icuSources/test/perf/unisetperf/draft/bitset.cpp @@ -1,10 +1,14 @@ /* -********************************************************************** -* Copyright (C) 2007, International Business Machines +************************************************************************* +* © 2016 and later: Unicode, Inc. and others. +* License & terms of use: http://www.unicode.org/copyright.html#License +************************************************************************* +************************************************************************* +* Copyright (C) 2014, International Business Machines * Corporation and others. All Rights Reserved. -********************************************************************** +************************************************************************* * file name: bitset.cpp -* encoding: US-ASCII +* encoding: UTF-8 * tab size: 8 (not used) * indentation:4 * @@ -20,6 +24,7 @@ #include "unicode/utypes.h" #include "unicont.h" +#include "cmemory.h" // for UPRV_LENGTHOF /* * Hash table for up to 1k 64-bit words, for 1 bit per BMP code point. @@ -146,7 +151,7 @@ public: prevIndex=j; } - if(bitHash->countKeys()>LENGTHOF(shortBits)) { + if(bitHash->countKeys()>UPRV_LENGTHOF(shortBits)) { bits=(int64_t *)uprv_malloc(bitHash->countKeys()*8); } if(bits!=NULL) {