Patch for MinGW-W64 port

Nikos Mavrogiannopoulos nmav at gnutls.org
Thu Mar 22 19:54:41 CET 2012


On 03/21/2012 10:46 PM, B. Scott Michel wrote:

> diff -r -u '--exclude-from=/tmp/qpatch4308a' patchTemp/gnutls-3.0.17/lib/accelerated/x86/aes-x86.h gnutls-3.0.17/lib/accelerated/x86/aes-x86.h
> --- patchTemp/gnutls-3.0.17/lib/accelerated/x86/aes-x86.h	2012-02-18 04:51:11 -0800
> +++ gnutls-3.0.17/lib/accelerated/x86/aes-x86.h	2012-03-19 16:23:36 -0700
> @@ -7,7 +7,7 @@
>  void register_padlock_crypto(void);
>  
>  #define ALIGN16(x) \
> -        ((void *)(((unsigned long)(x)+0x0f)&~(0x0f)))
> +  ((void *)(((ptrdiff_t)(((void *) x)-((void *) 0))+((ptrdiff_t) 0x0f))&~((ptrdiff_t) 0x0f)))
>  
>  #define AES_KEY_ALIGN_SIZE 4
>  #define AES_MAXNR 14


Btw. This part of the patch doesn't compile as you are using void* in a
subtraction. What is the issue you're trying to solve here?

regards,
Nikos




More information about the Gnutls-devel mailing list