diff options
author | Ken Raeburn <raeburn@mit.edu> | 2008-08-07 00:46:46 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 2008-08-07 00:46:46 +0000 |
commit | 1d6f2838f3ce45fc1dac399eb15dff1c409a10c1 (patch) | |
tree | db45fababd59730abe185f51d32f2e607ed59a99 /src/lib/krb5/asn.1/asn1_get.h | |
parent | aabbe4fe034c2dd69b372e4cf4394c7fb4367dd3 (diff) | |
download | krb5-1d6f2838f3ce45fc1dac399eb15dff1c409a10c1.zip krb5-1d6f2838f3ce45fc1dac399eb15dff1c409a10c1.tar.gz krb5-1d6f2838f3ce45fc1dac399eb15dff1c409a10c1.tar.bz2 |
Use bitfields for class and construction type
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20628 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/asn.1/asn1_get.h')
-rw-r--r-- | src/lib/krb5/asn.1/asn1_get.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/krb5/asn.1/asn1_get.h b/src/lib/krb5/asn.1/asn1_get.h index 50a1b75..1b78014 100644 --- 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; |