[llvm-commits] CVS: llvm-test/MultiSource/Benchmarks/Ptrdist/anagram/anagram.c

Andrew Lenharth alenhar2 at cs.uiuc.edu
Wed Mar 1 14:20:42 PST 2006



Changes in directory llvm-test/MultiSource/Benchmarks/Ptrdist/anagram:

anagram.c updated: 1.2 -> 1.3
---
Log message:

you would almost think this was what sizeof was for, wouldn't you

---
Diffs of the changes:  (+1 -1)

 anagram.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm-test/MultiSource/Benchmarks/Ptrdist/anagram/anagram.c
diff -u llvm-test/MultiSource/Benchmarks/Ptrdist/anagram/anagram.c:1.2 llvm-test/MultiSource/Benchmarks/Ptrdist/anagram/anagram.c:1.3
--- llvm-test/MultiSource/Benchmarks/Ptrdist/anagram/anagram.c:1.2	Wed Nov 10 02:43:01 2004
+++ llvm-test/MultiSource/Benchmarks/Ptrdist/anagram/anagram.c	Wed Mar  1 16:20:30 2006
@@ -147,7 +147,7 @@
  */
 
 typedef unsigned long Quad;             /* for building our bit mask */
-#define MASK_BITS 32                    /* number of bits in a Quad */
+#define MASK_BITS (sizeof(Quad)*8)                    /* number of bits in a Quad */
 
 #define MAX_QUADS 2                     /* controls largest phrase */
 






More information about the llvm-commits mailing list