[ekg2-commit] ekg2: ekg_hash_benchmark.c (HEAD) [gim]

CVS commit cvs w toxygen.net
Wto, 8 Maj 2007, 12:20:35 CEST


Module name:	ekg2
Changes by:	gim	2007-05-08 12:20:33

Modified files:
	ekg_hash_benchmark.c

Log message:
+no_prompt_cache

Index: ekg_hash_benchmark.c
===================================================================
RCS file: /home/cvs/ekg2/contrib/ekg_hash_benchmark.c,v
diff -d -u -r1.4 -r1.5
--- ekg_hash_benchmark.c	8 May 2007 10:11:43 -0000	1.4
+++ ekg_hash_benchmark.c	8 May 2007 10:20:32 -0000	1.5
@@ -7,7 +7,7 @@
 
 typedef int hash_t;
 
-hash_t no_prompt_cache_hash = 2261954;	/* hash value of "no_promp_cache" 2261954 it's default one. i hope good one.. for 32 bit x86 sure. */
+hash_t no_prompt_cache_hash = 0x139dcbd6;	/* hash value of "no_promp_cache" 2261954 it's default one. i hope good one.. for 32 bit x86 sure. */
 
 hash_t ekg_hash(const char *name);
 
@@ -142,6 +142,8 @@
 
 int main() {
 	no_prompt_cache_hash = ekg_hash("no_prompt_cache");
+	fprintf(stderr, "no_prompt_cache %08x\n", no_prompt_cache_hash);
+
 	/* first of all we add all formats to list */
 #define _(x) x
 	format_add("prompt", "%K:%g:%G:%n", 1);


Więcej informacji o liście dyskusyjnej ekg2-commit