aboutsummaryrefslogtreecommitdiff
path: root/lib.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@tove.osdl.org>2004-11-09 14:15:08 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:04:14 -0700
commit63c38b866407ebe12a5f8451fa758fc31f1b184f (patch)
treed576ee0c0a8098eef4c2b7a1be2d443f4a700122 /lib.h
parentMake the pre-processor free the tokens that never make it (diff)
downloadsparse-63c38b866407ebe12a5f8451fa758fc31f1b184f.tar.gz
sparse-63c38b866407ebe12a5f8451fa758fc31f1b184f.tar.bz2
sparse-63c38b866407ebe12a5f8451fa758fc31f1b184f.zip
Move "pos.pos" to be the top bits of the word.
This means that we can do the (very common) pos.pos++ without having to load/add/mask/store.
Diffstat (limited to 'lib.h')
-rw-r--r--lib.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib.h b/lib.h
index 2058371..2120386 100644
--- a/lib.h
+++ b/lib.h
@@ -20,9 +20,9 @@ extern unsigned int hexval(unsigned int c);
struct position {
unsigned int type:6,
stream:10,
- pos:14,
newline:1,
- whitespace:1;
+ whitespace:1,
+ pos:14;
unsigned int line:31,
noexpand:1;
};