summaryrefslogtreecommitdiff
path: root/liboil/ref
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2005-12-22 03:13:52 +0000
committerDavid Schleef <ds@schleef.org>2005-12-22 03:13:52 +0000
commit89eb57102c656e1a962152b53563c7bd8ff2a34f (patch)
treeb5e88b8f88a96ab349e49a5e901dfe49f3f0eb19 /liboil/ref
parente496ee0a8d65d1bd5e1498da7f50f20deac3ede7 (diff)
downloadliboil-89eb57102c656e1a962152b53563c7bd8ff2a34f.tar.gz
* configure.ac: Check whether we can do unaligned access.
* liboil/c/Makefile.am: Add copy.c * liboil/c/copy.c: Some impls * liboil/i386/Makefile.am: add swab.c * liboil/i386/swab.c: Add some swabbing code. asm, MMX, SSE2. * liboil/i386/error8x8_i386.c: Fix impl. pavgb sucks. * liboil/i386/sad8x8avg_i386.c: same * liboil/ref/copy.c: fix doc * liboil/ref/swab.c: Doh! stupid mistake in reference function * liboil/c/swab.c: same
Diffstat (limited to 'liboil/ref')
-rw-r--r--liboil/ref/copy.c4
-rw-r--r--liboil/ref/swab.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/liboil/ref/copy.c b/liboil/ref/copy.c
index e710226..6f73c08 100644
--- a/liboil/ref/copy.c
+++ b/liboil/ref/copy.c
@@ -98,9 +98,9 @@ OIL_DEFINE_IMPL_REF (compare_u8_ref, compare_u8);
* index of the first zero element is written into dest. If all
* elements are non-zero, @n is written into dest.
*
- * This function is roughly equivalent to strnlen(). One notably
+ * This function is roughly equivalent to strnlen(). One notable
* difference is that implementations of this function may legally
- * read past the end of the string.
+ * read past the zero byte.
*/
OIL_DEFINE_CLASS (testzero_u8, "uint32_t *d_1, uint8_t *s, int n");
diff --git a/liboil/ref/swab.c b/liboil/ref/swab.c
index e5e1a79..a3d5989 100644
--- a/liboil/ref/swab.c
+++ b/liboil/ref/swab.c
@@ -75,7 +75,7 @@ swab_u32_ref (uint32_t *d, uint32_t *s, int n)
int i;
for(i=0;i<n;i++){
- d[i] = (s[i]<<24) | ((s[i]&0x0000ff00)<<16) |
+ d[i] = (s[i]<<24) | ((s[i]&0x0000ff00)<<8) |
((s[i]&0x00ff0000)>>8) | (s[i]>>24);
}
}