Gentoo Archives: gentoo-commits

From: "Thilo Bangert (bangert)" <bangert@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-crypt/nistp224/files: nistp224-0.75-asmfix.patch nistp224-0.75-declare-exit.patch digest-nistp224-0.75
Date: Wed, 30 Jan 2008 22:58:14
Message-Id: E1JKLsW-00017t-IP@stork.gentoo.org
1 bangert 08/01/30 22:58:00
2
3 Added: nistp224-0.75-asmfix.patch
4 nistp224-0.75-declare-exit.patch
5 digest-nistp224-0.75
6 Log:
7 initial portage proper release - from the bangert overlay - credits for the original ebuild go to dragonheart
8 (Portage version: 2.1.3.19)
9
10 Revision Changes Path
11 1.1 app-crypt/nistp224/files/nistp224-0.75-asmfix.patch
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/nistp224/files/nistp224-0.75-asmfix.patch?rev=1.1&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/nistp224/files/nistp224-0.75-asmfix.patch?rev=1.1&content-type=text/plain
15
16 Index: nistp224-0.75-asmfix.patch
17 ===================================================================
18 diff -ru math.orig/nistp224-0.75/src/opt-idea64.c math/nistp224-0.75/src/opt-idea64.c
19 --- math.orig/nistp224-0.75/src/opt-idea64.c 2001-10-19 06:39:19.000000000 +1000
20 +++ math/nistp224-0.75/src/opt-idea64.c 2007-01-30 11:30:08.000000000 +1100
21 @@ -2,7 +2,8 @@
22
23 static void fpmode(void)
24 {
25 - asm volatile("fldcw %0"::"m"(0x137f));
26 + static short int x=0x137f;
27 + asm volatile("fldcw %0"::"m"(*&x));
28 }
29
30 #define T0 1.0
31 diff -ru math.orig/nistp224-0.75/src/opt-pentium.c math/nistp224-0.75/src/opt-pentium.c
32 --- math.orig/nistp224-0.75/src/opt-pentium.c 2001-10-19 06:39:19.000000000 +1000
33 +++ math/nistp224-0.75/src/opt-pentium.c 2007-01-30 11:30:44.000000000 +1100
34 @@ -129,7 +129,8 @@
35
36 static inline void fpmode(void)
37 {
38 - asm volatile("fldcw %0"::"m"(0x137f));
39 + static short int x=0x137f;
40 + asm volatile("fldcw %0"::"m"(*&x));
41 }
42
43 static void p_sqrt(double out[8],const double in[8])
44 diff -ru math.orig/nistp224-0.75/src/opt-ppro.c math/nistp224-0.75/src/opt-ppro.c
45 --- math.orig/nistp224-0.75/src/opt-ppro.c 2001-10-19 06:39:19.000000000 +1000
46 +++ math/nistp224-0.75/src/opt-ppro.c 2007-01-30 11:30:27.000000000 +1100
47 @@ -120,7 +120,8 @@
48
49 static inline void fpmode(void)
50 {
51 - asm volatile("fldcw %0"::"m"(0x137f));
52 + static short int x=0x137f;
53 + asm volatile("fldcw %0"::"m"(*&x));
54 }
55
56 static void p_sqrt(double out[8],const double in[8])
57
58
59
60 1.1 app-crypt/nistp224/files/nistp224-0.75-declare-exit.patch
61
62 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/nistp224/files/nistp224-0.75-declare-exit.patch?rev=1.1&view=markup
63 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/nistp224/files/nistp224-0.75-declare-exit.patch?rev=1.1&content-type=text/plain
64
65 Index: nistp224-0.75-declare-exit.patch
66 ===================================================================
67 diff -Naur nistp224-0.75.orig/src/main.c nistp224-0.75/src/main.c
68 --- math.orig/nistp224-0.75/src/main.c 2008-01-26 21:56:34.000000000 +0100
69 +++ math/nistp224-0.75/src/main.c 2008-01-26 22:05:17.000000000 +0100
70 @@ -1,4 +1,5 @@
71 #include <stdio.h>
72 +#include <stdlib.h>
73 #include "nistp224.h"
74
75 unsigned char e[28];
76 diff -Naur nistp224-0.75.orig/src/nistp224-56.c nistp224-0.75/src/nistp224-56.c
77 --- math.orig/nistp224-0.75/src/nistp224-56.c 2008-01-26 21:56:34.000000000 +0100
78 +++ math/nistp224-0.75/src/nistp224-56.c 2008-01-26 21:57:10.000000000 +0100
79 @@ -1,4 +1,5 @@
80 #include <stdio.h>
81 +#include <stdlib.h>
82 #include "nistp224.h"
83
84 unsigned char e[28];
85
86
87
88 1.1 app-crypt/nistp224/files/digest-nistp224-0.75
89
90 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/nistp224/files/digest-nistp224-0.75?rev=1.1&view=markup
91 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/nistp224/files/digest-nistp224-0.75?rev=1.1&content-type=text/plain
92
93 Index: digest-nistp224-0.75
94 ===================================================================
95 MD5 064ddbdebb6c4fc7d8f0b5a572318ec2 nistp224-0.75.tar.gz 204747
96 RMD160 0394055d583a922702c1be0c4f8c417a3e9f4f3d nistp224-0.75.tar.gz 204747
97 SHA256 4e033b1bd0bb906229ed8c42cf87aa03cdc54ad40593ca262c7178fe3425351d nistp224-0.75.tar.gz 204747
98
99
100
101 --
102 gentoo-commits@l.g.o mailing list