[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Patch for MinGW-W64 port
From: |
Nikos Mavrogiannopoulos |
Subject: |
Re: Patch for MinGW-W64 port |
Date: |
Thu, 22 Mar 2012 19:54:41 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111114 Icedove/3.1.16 |
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