]> git.pld-linux.org Git - packages/cryptlib.git/commitdiff
- llh no longer provides rdtscl(); define it, for i586+ only
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 8 Jan 2008 19:31:43 +0000 (19:31 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cryptlib-rdtsc.patch -> 1.1

cryptlib-rdtsc.patch [new file with mode: 0644]

diff --git a/cryptlib-rdtsc.patch b/cryptlib-rdtsc.patch
new file mode 100644 (file)
index 0000000..5d90946
--- /dev/null
@@ -0,0 +1,13 @@
+--- cryptlib-3.3.1/random/unix.c.orig  2007-02-01 01:09:22.000000000 +0100
++++ cryptlib-3.3.1/random/unix.c       2008-01-08 19:22:02.784685129 +0100
+@@ -102,8 +102,8 @@
+ #if !( defined( __QNX__ ) || defined( __CYGWIN__ ) )
+   #include <sys/shm.h>
+ #endif /* QNX || Cygwin */
+-#if defined( __linux__ ) && ( defined(__i386__) || defined(__x86_64__) )
+-  #include <linux/timex.h>    /* For rdtsc() */
++#if defined( __linux__ ) && ( defined(__i586__) || defined(__i686__) || defined(__pentium4__) || defined(__athlon__) || defined(__x86_64__) )
++  #define rdtscl(low) __asm__ __volatile__("rdtsc" : "=a" (low) : : "edx")
+ #endif /* Linux on x86 */
+ #include <signal.h>
+ #include <sys/socket.h>
This page took 0.129131 seconds and 4 git commands to generate.