]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/test/perf/howExpensiveIs/sieve.h
ICU-551.24.tar.gz
[apple/icu.git] / icuSources / test / perf / howExpensiveIs / sieve.h
index 7ac86d28e6e55ff587dce7148a1dee67b6cc9d0d..74a394da766b9865aa71b4080631326450e57a4e 100644 (file)
@@ -1,6 +1,6 @@
 /*
  **********************************************************************
- * Copyright (c) 2011,International Business Machines
+ * Copyright (c) 2011-2012,International Business Machines
  * Corporation and others.  All Rights Reserved.
  **********************************************************************
  */
@@ -8,7 +8,9 @@
 #ifndef SIEVE_H
 #define SIEVE_H
 
+#ifndef U_LOTS_OF_TIMES
 #define U_LOTS_OF_TIMES 1000000
+#endif
 
 #include "unicode/utypes.h"
 /**
@@ -19,11 +21,11 @@ U_INTERNAL double uprv_calcSieveTime(void);
 /**
  * Calculate the mean time, with margin of error
  * @param times array of times (modified/sorted)
- * @param timeCount length of array
+ * @param timeCount length of array - on return, how many remain after throwing out outliers
  * @param marginOfError out parameter: gives +/- margin of err at 95% confidence
  * @return the mean time, or negative if error/imprecision.
  */
-U_INTERNAL double uprv_getMeanTime(double *times, uint32_t timeCount, double *marginOfError);
+U_INTERNAL double uprv_getMeanTime(double *times, uint32_t *timeCount, double *marginOfError);
 
 /**
  * Get the standardized sieve time. (Doesn't recalculate if already computed.