projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aabbe4f
)
Use bitfields for class and construction type
author
Ken Raeburn
<raeburn@mit.edu>
Thu, 7 Aug 2008 00:46:46 +0000
(
00:46
+0000)
committer
Ken Raeburn
<raeburn@mit.edu>
Thu, 7 Aug 2008 00:46:46 +0000
(
00:46
+0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20628
dc483132
-0cff-0310-8789-
dd5450dbe970
src/lib/krb5/asn.1/asn1_get.h
patch
|
blob
|
history
diff --git
a/src/lib/krb5/asn.1/asn1_get.h
b/src/lib/krb5/asn.1/asn1_get.h
index 50a1b75cedbd5c36601b363753daaff20f5dba73..1b78014624562743017a812ef0139806f0123e6a 100644
(file)
--- a/
src/lib/krb5/asn.1/asn1_get.h
+++ b/
src/lib/krb5/asn.1/asn1_get.h
@@
-34,8
+34,15
@@
#include "asn1buf.h"
typedef struct {
+#if 1 /* Smaller run-time storage, and on x86 the compiler can use
+ byte loads, stores, and compares, but on other platforms the
+ compiler may need to load and widen before comparing... see
+ how this works out. */
+ unsigned int asn1class : 8, construction : 8;
+#else
asn1_class asn1class;
asn1_construction construction;
+#endif
asn1_tagnum tagnum;
unsigned int length;
int indef;