hcrypto: struct x64 doesn't need bitfields

hcrypto: struct x64 doesn't need bitfields

    The bitfield specifications on the struct x64 members do not actually do
    anything to guarantee/force packing or endian of the members.  Removing
    them allows the code to compile on certain compilers that do not support
    bitfields on 64-bit types.

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
This commit is contained in:
Chas Williams (CONTRACTOR)
2010-10-22 07:37:05 -04:00
committed by Love Hornquist Astrand
parent 3e022eeae1
commit a3afa695ee

View File

@@ -177,12 +177,12 @@ swap_uint64_t (uint64_t t)
return ((temp & 0xffff0000ffff0000ULL) >> 16) |
((temp & 0x0000ffff0000ffffULL) << 16);
}
#endif
struct x64{
uint64_t a:64;
uint64_t b:64;
uint64_t a;
uint64_t b;
};
#endif
void
SHA512_Update (SHA512_CTX *m, const void *v, size_t len)