beecrypt.patch 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. Index: gas/aesopt.x86.m4
  2. ===================================================================
  3. RCS file: /CVSROOT/opkg/cvsbase/beecrypt/gas/aesopt.x86.m4,v
  4. retrieving revision 1.1.1.1
  5. diff -u -u -r1.1.1.1 aesopt.x86.m4
  6. --- gas/aesopt.x86.m4 9 Jun 2003 08:35:39 -0000 1.1.1.1
  7. +++ gas/aesopt.x86.m4 4 Sep 2003 07:26:08 -0000
  8. @@ -133,6 +133,9 @@
  9. pxor 6144(%esi,%edx,8),s0
  10. ')
  11. +')
  12. +ifdef(`USE_MMX',`
  13. +
  14. define(`elr',`
  15. movd 0(%ebp),s0
  16. movd t0,%eax
  17. @@ -252,6 +255,9 @@
  18. ')
  19. +')
  20. +ifdef(`USE_MMX',`
  21. +
  22. C_FUNCTION_BEGIN(aesEncrypt)
  23. pushl %edi
  24. pushl %esi
  25. @@ -363,6 +369,9 @@
  26. pxor 6144(%esi,%edx,8),t2
  27. ')
  28. +')
  29. +ifdef(`USE_MMX',`
  30. +
  31. define(`dsft',`
  32. movd $1+ 0(%ebp),s0
  33. movd t0,%eax
  34. @@ -488,6 +497,9 @@
  35. pxor t2,s1
  36. pxor t3,s2
  37. ')
  38. +
  39. +')
  40. +ifdef(`USE_MMX',`
  41. define(`dblock',`
  42. sxrk
  43. Index: gas/mpopt.x86.m4
  44. ===================================================================
  45. RCS file: /CVSROOT/opkg/cvsbase/beecrypt/gas/mpopt.x86.m4,v
  46. retrieving revision 1.1.1.1
  47. diff -u -u -r1.1.1.1 mpopt.x86.m4
  48. --- gas/mpopt.x86.m4 4 Jun 2003 17:39:58 -0000 1.1.1.1
  49. +++ gas/mpopt.x86.m4 4 Sep 2003 07:26:08 -0000
  50. @@ -29,7 +29,7 @@
  51. movl 12(%esp),%edi
  52. xorl %eax,%eax
  53. - repz stosl
  54. + repz; stosl
  55. popl %edi
  56. ret
  57. @@ -43,7 +43,7 @@
  58. movl 12(%esp),%edi
  59. movl 16(%esp),%eax
  60. - repz stosl
  61. + repz; stosl
  62. popl %edi
  63. ret
  64. Index: gas/sha1opt.x86.m4
  65. ===================================================================
  66. RCS file: /CVSROOT/opkg/cvsbase/beecrypt/gas/sha1opt.x86.m4,v
  67. retrieving revision 1.1.1.1
  68. diff -u -u -r1.1.1.1 sha1opt.x86.m4
  69. --- gas/sha1opt.x86.m4 8 May 2003 17:52:54 -0000 1.1.1.1
  70. +++ gas/sha1opt.x86.m4 4 Sep 2003 07:26:08 -0000
  71. @@ -21,13 +21,13 @@
  72. include(config.m4)
  73. include(ASM_SRCDIR/x86.m4)
  74. - .equ K00, 0x5a827999
  75. - .equ K20, 0x6ed9eba1
  76. - .equ K40, 0x8f1bbcdc
  77. - .equ K60, 0xca62c1d6
  78. + .set K00, 0x5a827999
  79. + .set K20, 0x6ed9eba1
  80. + .set K40, 0x8f1bbcdc
  81. + .set K60, 0xca62c1d6
  82. - .equ PARAM_H, 0
  83. - .equ PARAM_DATA, 20
  84. + .set PARAM_H, 0
  85. + .set PARAM_DATA, 20
  86. define(`subround1',`
  87. movl $2,%ecx