From: Ken Raeburn Date: Thu, 7 Aug 2008 00:46:46 +0000 (+0000) Subject: Use bitfields for class and construction type X-Git-Tag: krb5-1.7-alpha1~517 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1d6f2838f3ce45fc1dac399eb15dff1c409a10c1;p=krb5.git Use bitfields for class and construction type git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20628 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/asn.1/asn1_get.h b/src/lib/krb5/asn.1/asn1_get.h index 50a1b75ce..1b7801462 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;