]> git.pld-linux.org Git - packages/liboil.git/commitdiff
- sparc doesn't like unaligned access?
authorJan Rękorajski <baggins@pld-linux.org>
Wed, 17 May 2006 00:12:31 +0000 (00:12 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- better slow than buggy, leave this optimisation for glibc

Changed files:
    liboil-sparc.patch -> 1.1

liboil-sparc.patch [new file with mode: 0644]

diff --git a/liboil-sparc.patch b/liboil-sparc.patch
new file mode 100644 (file)
index 0000000..0ae0e9a
--- /dev/null
@@ -0,0 +1,23 @@
+--- liboil-0.3.6/liboil/copy/splat_ref.c.orig  2006-05-17 01:11:44.708203000 +0200
++++ liboil-0.3.6/liboil/copy/splat_ref.c       2006-05-17 02:06:20.831568000 +0200
+@@ -100,19 +100,7 @@
+ static void splat_u8_ns_int (uint8_t *dest, uint8_t *param, int n)
+ {
+-  int p;
+-  while(n&3) {
+-    *dest = *param;
+-    dest++;
+-    n--;
+-  }
+-  n >>= 2;
+-  p = (*param<<24) | (*param<<16) | (*param<<8) | (*param);
+-  while(n>0){
+-    *(uint32_t *)dest = p;
+-    dest+=4;
+-    n--;
+-  }
++  memset (dest, *param, n);
+ }
+ OIL_DEFINE_IMPL(splat_u8_ns_int, splat_u8_ns);
This page took 0.056968 seconds and 4 git commands to generate.