diff options
author | Vanilla I. Shu <vanilla@FreeBSD.org> | 2007-06-16 12:51:29 +0000 |
---|---|---|
committer | Vanilla I. Shu <vanilla@FreeBSD.org> | 2007-06-16 12:51:29 +0000 |
commit | 5e1d8860f254906a0ebce23e9e4cb04a2e586204 (patch) | |
tree | cff265dcdafbfa2dbe30ac3a1d0344917333158c /devel/stringencoders/files | |
parent | f4e93f459e1dc468d70583dfbdd4f865353a27fa (diff) | |
download | ports-5e1d8860f254906a0ebce23e9e4cb04a2e586204.tar.gz ports-5e1d8860f254906a0ebce23e9e4cb04a2e586204.zip |
Notes
Diffstat (limited to 'devel/stringencoders/files')
-rw-r--r-- | devel/stringencoders/files/patch-speedtest_ascii.c | 65 | ||||
-rw-r--r-- | devel/stringencoders/files/patch-speedtest_numtoa.c | 200 |
2 files changed, 265 insertions, 0 deletions
diff --git a/devel/stringencoders/files/patch-speedtest_ascii.c b/devel/stringencoders/files/patch-speedtest_ascii.c new file mode 100644 index 000000000000..6e1f80ae25cc --- /dev/null +++ b/devel/stringencoders/files/patch-speedtest_ascii.c @@ -0,0 +1,65 @@ +--- test/speedtest_ascii.c.orig Wed Jun 6 13:24:30 2007 ++++ test/speedtest_ascii.c Thu Jun 14 05:39:13 2007 +@@ -244,7 +244,7 @@ + } + t1 = clock(); + last = t1 -t0; +- printf("%lu\t", (t1-t0)); ++ printf("%lu\t", (unsigned long)(t1-t0)); + fflush(stdout); + + /** +@@ -255,7 +255,7 @@ + toupper_copy2(obuf, buf, sizeof(buf)); + } + t1 = clock(); +- printf("%lu\t", (t1-t0)); ++ printf("%lu\t", (unsigned long)(t1-t0)); + fflush(stdout); + + /** +@@ -266,7 +266,7 @@ + toupper_copy3(obuf, buf, sizeof(buf)); + } + t1 = clock(); +- printf("%lu\t", (t1-t0)); ++ printf("%lu\t", (unsigned long)(t1-t0)); + fflush(stdout); + + /** +@@ -277,7 +277,7 @@ + toupper_copy4(obuf, buf, sizeof(buf)); + } + t1 = clock(); +- printf("%lu\t", (t1-t0)); ++ printf("%lu\t", (unsigned long)(t1-t0)); + fflush(stdout); + + +@@ -289,7 +289,7 @@ + toupper_copy5(obuf, buf, sizeof(buf)); + } + t1 = clock(); +- printf("%lu\t", (t1-t0)); ++ printf("%lu\t", (unsigned long)(t1-t0)); + fflush(stdout); + + /** +@@ -300,7 +300,7 @@ + toupper_copy6(obuf, buf, sizeof(buf)); + } + t1 = clock(); +- printf("%lu\t", (t1-t0)); ++ printf("%lu\t", (unsigned long)(t1-t0)); + fflush(stdout); + + /** +@@ -312,7 +312,7 @@ + } + t1 = clock(); + +- printf("%lu\t", (t1-t0)); ++ printf("%lu\t", (unsigned long)(t1-t0)); + fflush(stdout); + + printf("%.1fx\n", last/(t1-t0)); diff --git a/devel/stringencoders/files/patch-speedtest_numtoa.c b/devel/stringencoders/files/patch-speedtest_numtoa.c new file mode 100644 index 000000000000..1214f0613af3 --- /dev/null +++ b/devel/stringencoders/files/patch-speedtest_numtoa.c @@ -0,0 +1,200 @@ +--- test/speedtest_numtoa.c.orig Wed Jun 6 13:24:30 2007 ++++ test/speedtest_numtoa.c Thu Jun 14 05:38:14 2007 +@@ -26,7 +26,7 @@ + sprintf(buf, "%hhu", ju8); + } + t1 = clock(); +- printf("%lu\t", (t1-t0)); ++ printf("%lu\t", (unsigned long)(t1-t0)); + fflush(stdout); + + t0 = clock(); +@@ -36,7 +36,7 @@ + } + t1 = clock(); + last = (t1-t0); +- printf("%lu\t", (t1-t0)); ++ printf("%lu\t", (unsigned long)(t1-t0)); + fflush(stdout); + + t0 = clock(); +@@ -45,7 +45,7 @@ + modp_uitoa10(ju8, buf); + } + t1 = clock(); +- printf("%lu\t", (t1-t0)); ++ printf("%lu\t", (unsigned long)(t1-t0)); + printf("%.1fx\n", last/(t1-t0)); + fflush(stdout); + +@@ -56,7 +56,7 @@ + sprintf(buf, "%hu", ju16); + } + t1 = clock(); +- printf("%lu\t", (t1-t0)); ++ printf("%lu\t", (unsigned long)(t1-t0)); + fflush(stdout); + + t0 = clock(); +@@ -66,7 +66,7 @@ + } + t1 = clock(); + last = (t1-t0); +- printf("%lu\t", (t1-t0)); ++ printf("%lu\t", (unsigned long)(t1-t0)); + fflush(stdout); + + t0 = clock(); +@@ -75,7 +75,7 @@ + modp_uitoa10(ju16, buf); + } + t1 = clock(); +- printf("%lu\t", (t1-t0)); ++ printf("%lu\t", (unsigned long)(t1-t0)); + printf("%.1fx\n", last/(t1-t0)); + fflush(stdout); + +@@ -86,7 +86,7 @@ + sprintf(buf, "%u", i); + } + t1 = clock(); +- printf("%lu\t", (t1-t0)); ++ printf("%lu\t", (unsigned long)(t1-t0)); + fflush(stdout); + + t0 = clock(); +@@ -95,7 +95,7 @@ + } + t1 = clock(); + last = (t1-t0); +- printf("%lu\t", (t1-t0)); ++ printf("%lu\t", (unsigned long)(t1-t0)); + fflush(stdout); + + t0 = clock(); +@@ -103,7 +103,7 @@ + modp_uitoa10(i, buf); + } + t1 = clock(); +- printf("%lu\t", (t1-t0)); ++ printf("%lu\t", (unsigned long)(t1-t0)); + printf("%.1fx\n", last/(t1-t0)); + fflush(stdout); + +@@ -114,7 +114,7 @@ + sprintf(buf, "%hhd", ju8); + } + t1 = clock(); +- printf("%lu\t", (t1-t0)); ++ printf("%lu\t", (unsigned long)(t1-t0)); + fflush(stdout); + + t0 = clock(); +@@ -124,7 +124,7 @@ + } + t1 = clock(); + last = (t1-t0); +- printf("%lu\t", (t1-t0)); ++ printf("%lu\t", (unsigned long)(t1-t0)); + fflush(stdout); + + t0 = clock(); +@@ -133,7 +133,7 @@ + modp_itoa10(j8, buf); + } + t1 = clock(); +- printf("%lu\t", (t1-t0)); ++ printf("%lu\t", (unsigned long)(t1-t0)); + printf("%.1fx\n", last/(t1-t0)); + fflush(stdout); + +@@ -144,7 +144,7 @@ + sprintf(buf, "%hd", j16); + } + t1 = clock(); +- printf("%lu\t", (t1-t0)); ++ printf("%lu\t", (unsigned long)(t1-t0)); + fflush(stdout); + + t0 = clock(); +@@ -154,7 +154,7 @@ + } + t1 = clock(); + last = (t1-t0); +- printf("%lu\t", (t1-t0)); ++ printf("%lu\t", (unsigned long)(t1-t0)); + fflush(stdout); + + t0 = clock(); +@@ -163,7 +163,7 @@ + modp_itoa10(j16, buf); + } + t1 = clock(); +- printf("%lu\t", (t1-t0)); ++ printf("%lu\t", (unsigned long)(t1-t0)); + printf("%.1fx\n", last/(t1-t0)); + fflush(stdout); + +@@ -175,7 +175,7 @@ + sprintf(buf, "%d", i); + } + t1 = clock(); +- printf("%lu\t", (t1-t0)); ++ printf("%lu\t", (unsigned long)(t1-t0)); + fflush(stdout); + + t0 = clock(); +@@ -184,7 +184,7 @@ + } + t1 = clock(); + last = (t1-t0); +- printf("%lu\t", (t1-t0)); ++ printf("%lu\t", (unsigned long)(t1-t0)); + fflush(stdout); + + t0 = clock(); +@@ -192,7 +192,7 @@ + modp_itoa10(i, buf); + } + t1 = clock(); +- printf("%lu\t", (t1-t0)); ++ printf("%lu\t", (unsigned long)(t1-t0)); + printf("%.1fx\n", last/(t1-t0)); + fflush(stdout); + +@@ -203,7 +203,7 @@ + sprintf(buf, "%e", (double)(i)); + } + t1 = clock(); +- printf("%lu\t", (t1-t0)); ++ printf("%lu\t", (unsigned long)(t1-t0)); + fflush(stdout); + + t0 = clock(); +@@ -213,7 +213,7 @@ + } + t1 = clock(); + last = (t1-t0); +- printf("%lu\t", (t1-t0)); ++ printf("%lu\t", (unsigned long)(t1-t0)); + fflush(stdout); + + t0 = clock(); +@@ -223,7 +223,7 @@ + } + t1 = clock(); + last = (t1-t0); +- printf("%lu\t", (t1-t0)); ++ printf("%lu\t", (unsigned long)(t1-t0)); + fflush(stdout); + + t0 = clock(); +@@ -232,7 +232,7 @@ + modp_dtoa(d, buf, 6); + } + t1 = clock(); +- printf("%lu\t", (t1-t0)); ++ printf("%lu\t", (unsigned long)(t1-t0)); + printf("%.1fx\n", last/(t1-t0)); + fflush(stdout); + |