diff options
author | David Schleef <ds@schleef.org> | 2005-01-11 08:03:08 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2005-01-11 08:03:08 +0000 |
commit | 6233c61a9d737153b32e408e91428c62fa1868e6 (patch) | |
tree | ecfc5d84c0a11138df8487a0e64dfa06bad60852 /examples | |
parent | cbf70b1a9bea04c646de114acb7738c086967d80 (diff) | |
download | liboil-6233c61a9d737153b32e408e91428c62fa1868e6.tar.gz |
* README: additional notes
* configure.ac: look for mmap()
* examples/md5/md5sum.c: (main): fix for same
* liboil/copy/trans8x8_i386.c: (trans8x8_u16_mmx): Need to be
careful about using %ebx
* liboil/dct/idct8x8_i386.c: (fdct8x8s_s16_mmx): same
* liboil/simdpack/abs_i386.c: (abs_u16_s16_mmx): clobber memory
Diffstat (limited to 'examples')
-rw-r--r-- | examples/md5/md5sum.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/md5/md5sum.c b/examples/md5/md5sum.c index db37330..36a5132 100644 --- a/examples/md5/md5sum.c +++ b/examples/md5/md5sum.c @@ -25,8 +25,6 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#define HAVE_MMAN_H - #ifdef HAVE_CONFIG_H #include "config.h" #endif @@ -38,7 +36,7 @@ #include <stdlib.h> #include <sys/stat.h> -#ifdef HAVE_MMAN_H +#ifdef HAVE_MMAP #include <sys/mman.h> #endif #include <errno.h> @@ -151,7 +149,7 @@ int main(int argc, char *argv[]) ret = fstat (fd, &st); n_bytes = st.st_size; -#ifdef HAVE_MMAN_H +#ifdef HAVE_MMAP while (1) { ptr = mmap (NULL, n_bytes, PROT_READ, MAP_SHARED | MAP_POPULATE, fd, 0); getpid(); |