check for i686 artch and only then compile the mmx asm (i586 isnt guaranteed

to have mmx - NB libs built for mmx will NOt work on non mmx boxes right now
need to do a runtime chekc for that)


SVN revision: 2448
This commit is contained in:
Carsten Haitzler 2000-04-08 19:15:48 +00:00
parent 381cf576c5
commit 60e39b1876
5 changed files with 12 additions and 6 deletions

View File

@ -2,12 +2,16 @@ dnl Process this file with autoconf to create configure.
AC_INIT(src/Imlib2.h)
AM_CONFIG_HEADER(config.h)
AC_CANONICAL_SYSTEM
if test x$target_cpu = xi686; then
AC_DEFINE(DO_MMX_ASM, 1, [Pentium II/III and up detected - enabling ASM])
fi
AM_INIT_AUTOMAKE(imlib2, 0.0.3)
pkglibdir='${libdir}'/loaders
AC_SUBST(pkglibdir)
AC_C_BIGENDIAN
AC_C_BIGENDIAN
AC_LIBLTDL_CONVENIENCE
AC_CONFIG_SUBDIRS(libltdl)

View File

@ -1,3 +1,7 @@
#include <config.h>
#ifdef DO_MMX_ASM
/*
* AlphaBlending using MMX
*
@ -109,3 +113,4 @@ __imlib_asm_blend_rgba_to_rgb:
popl %ebp
ret
#endif

View File

@ -76,7 +76,7 @@ static void
__imlib_BlendRGBAToRGB(DATA32 *src, int src_jump, DATA32 *dst, int dst_jump,
int w, int h, ImlibColorModifier *cm)
{
#if 1
#ifdef DO_MMX_ASM
int y;
__imlib_toggle_mmx();

View File

@ -1,10 +1,6 @@
#ifndef __BLEND
#define __BLEND 1
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#ifndef WORDS_BIGENDIAN
#define A_VAL(p) ((DATA8 *)(p))[3]

View File

@ -4,6 +4,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <config.h>
#define DATABIG unsigned long long
#define DATA64 unsigned long long