Submitted by: Peter Sylvester <peter.sylvester@edelweb.fr>
[oweals/openssl.git] / crypto / whrlpool / wp_block.c
index b478e110b2795ae85379a9b05591d9bcf78ea7cc..824ed1827c48ade3c268562065ea59fdef3a08f3 100644 (file)
@@ -68,9 +68,9 @@ typedef unsigned long long    u64;
                                           CPUs this is actually faster! */
 #    endif
 #    define GO_FOR_MMX(ctx,inp,num)    do {                    \
-       extern unsigned long OPENSSL_ia32cap_P;                 \
+       extern unsigned int OPENSSL_ia32cap_P[];                \
        void whirlpool_block_mmx(void *,const void *,size_t);   \
-       if (!(OPENSSL_ia32cap_P & (1<<23)))     break;          \
+       if (!(OPENSSL_ia32cap_P[0] & (1<<23)))  break;          \
         whirlpool_block_mmx(ctx->H.c,inp,num); return;         \
                                        } while (0)
 #  endif
@@ -193,7 +193,7 @@ union       {
        u8      c[(256*N+ROUNDS)*sizeof(u64)];
        u64     q[(256*N+ROUNDS)];
        } Cx = { {
-       /* Note edian-neutral representation:-) */
+       /* Note endian-neutral representation:-) */
        LL(0x18,0x18,0x60,0x18,0xc0,0x78,0x30,0xd8),
        LL(0x23,0x23,0x8c,0x23,0x05,0xaf,0x46,0x26),
        LL(0xc6,0xc6,0x3f,0xc6,0x7e,0xf9,0x91,0xb8),