openpkg/beecrypt.patch

changeset 13
cb59d6afeb61
child 428
f880f219c566
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/openpkg/beecrypt.patch	Tue Jan 06 23:40:39 2009 +0100
     1.3 @@ -0,0 +1,62 @@
     1.4 +Index: gas/aesopt.x86.m4
     1.5 +--- gas/aesopt.x86.m4.orig	2004-06-13 13:37:23 +0200
     1.6 ++++ gas/aesopt.x86.m4	2004-07-28 20:02:07 +0200
     1.7 +@@ -134,6 +134,9 @@
     1.8 + 	pxor 6144(%esi,%edx,8),s0
     1.9 + ')
    1.10 + 
    1.11 ++')
    1.12 ++ifdef(`USE_MMX',`
    1.13 ++
    1.14 + define(`elr',`
    1.15 + 	movd  0(%ebp),s0
    1.16 + 	movd t0,%eax
    1.17 +@@ -253,6 +256,9 @@
    1.18 + ')
    1.19 + 
    1.20 + 
    1.21 ++')
    1.22 ++ifdef(`USE_MMX',`
    1.23 ++
    1.24 + C_FUNCTION_BEGIN(aesEncrypt)
    1.25 + 	pushl %edi
    1.26 + 	pushl %esi
    1.27 +@@ -364,6 +370,9 @@
    1.28 + 	pxor 6144(%esi,%edx,8),t2
    1.29 + ')
    1.30 + 
    1.31 ++')
    1.32 ++ifdef(`USE_MMX',`
    1.33 ++
    1.34 + define(`dsft',`
    1.35 + 	movd $1+ 0(%ebp),s0
    1.36 + 	movd t0,%eax
    1.37 +@@ -490,6 +499,9 @@
    1.38 + 	pxor t3,s2
    1.39 + ')
    1.40 + 
    1.41 ++')
    1.42 ++ifdef(`USE_MMX',`
    1.43 ++
    1.44 + define(`dblock',`
    1.45 + 	sxrk
    1.46 + 
    1.47 +Index: gnu.h.in
    1.48 +--- gnu.h.in.orig	2004-12-19 21:18:48 +0100
    1.49 ++++ gnu.h.in	2005-03-08 19:34:03 +0100
    1.50 +@@ -48,15 +48,6 @@
    1.51 + @TYPEDEF_UINT32_T@
    1.52 + @TYPEDEF_UINT64_T@
    1.53 + 
    1.54 +-#if defined(__GNUC__)
    1.55 +-# if !defined(__GNUC_PREREQ__)
    1.56 +-#  define __GNUC_PREREQ__(maj, min) (__GNUC__ > (maj) || __GNUC__ == (maj) && __GNUC_MINOR__ >= (min))
    1.57 +-# endif
    1.58 +-#else
    1.59 +-# define __GNUC__ 0
    1.60 +-# define __GNUC_PREREQ__(maj, min) 0
    1.61 +-#endif
    1.62 +-
    1.63 + /* WARNING: overriding this value is dangerous; some assembler routines
    1.64 +  * make assumptions about the size set by the configure script
    1.65 +  */

mercurial