diff options
author | joerg <joerg@pkgsrc.org> | 2011-12-07 15:13:26 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2011-12-07 15:13:26 +0000 |
commit | 4265e7f5f11b9d12e1e71753c91a2b0a55aac31a (patch) | |
tree | 5d2b674de2c2e899e758efa7fd953a1a20b3612c /cad/covered | |
parent | 6e66731683dbe57e34ed9ae5016a650cb1b19fe1 (diff) | |
download | pkgsrc-4265e7f5f11b9d12e1e71753c91a2b0a55aac31a.tar.gz |
Fix assembler syntax for byte swaps
Diffstat (limited to 'cad/covered')
-rw-r--r-- | cad/covered/distinfo | 3 | ||||
-rw-r--r-- | cad/covered/patches/patch-src_lxt2__read.c | 15 |
2 files changed, 17 insertions, 1 deletions
diff --git a/cad/covered/distinfo b/cad/covered/distinfo index 3ca1c0baede..3cc7625755d 100644 --- a/cad/covered/distinfo +++ b/cad/covered/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.10 2006/10/12 03:11:18 dmcmahill Exp $ +$NetBSD: distinfo,v 1.11 2011/12/07 15:13:26 joerg Exp $ SHA1 (covered-0.4.7.tar.gz) = 9dd9da4d739db15e5e2ea36f2767136a825a4728 RMD160 (covered-0.4.7.tar.gz) = 63720610a24e6e71b9622586d561e3eb92a606f5 Size (covered-0.4.7.tar.gz) = 1077912 bytes +SHA1 (patch-src_lxt2__read.c) = 0c388647fd7fe2027b59cdd35761c91bbe490e64 diff --git a/cad/covered/patches/patch-src_lxt2__read.c b/cad/covered/patches/patch-src_lxt2__read.c new file mode 100644 index 00000000000..f9902b95610 --- /dev/null +++ b/cad/covered/patches/patch-src_lxt2__read.c @@ -0,0 +1,15 @@ +$NetBSD: patch-src_lxt2__read.c,v 1.1 2011/12/07 15:13:26 joerg Exp $ + +--- src/lxt2_read.c.orig 2011-12-07 14:54:06.000000000 +0000 ++++ src/lxt2_read.c +@@ -62,8 +62,8 @@ _LXT2_RD_INLINE static unsigned int lxt2 + { + unsigned short x = *((unsigned short *)((unsigned char *)mm+offset)); + +- __asm("xchgb %b0,%h0" : +- "=q" (x) : ++ __asm("rorw $8, %w1" : ++ "=r" (x) : + "0" (x)); + + return (unsigned int) x; |