mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-18 17:30:10 +00:00
33e963e7af
2000-01-05 Owen Taylor <otaylor@redhat.com> * gdk-pixbuf/pixops/: Directory full of pixel data scaling code that will eventually migrate into libart. * configure.in acconfig.h: Add checks for MMX compiler support * gdk-pixbuf/gdk-pixbuf.h gdk-pixbuf/gdk-pixbuf-scale.c: Nice wrapper routines for the code in pixops that operate on pixbufs instead of raw data. * gdk-pixbuf/testpixbuf-scale: Test program for scaling routines.
42 lines
498 B
ArmAsm
42 lines
498 B
ArmAsm
.file "have_mmx.S"
|
|
.version "01.01"
|
|
gcc2_compiled.:
|
|
.text
|
|
.align 16
|
|
.globl pixops_have_mmx
|
|
.type pixops_have_mmx,@function
|
|
|
|
pixops_have_mmx:
|
|
push %ebx
|
|
|
|
# Check if bit 21 in flags word is writeable
|
|
|
|
pushfl
|
|
popl %eax
|
|
movl %eax,%ebx
|
|
xorl $0x00200000, %eax
|
|
pushl %eax
|
|
popfl
|
|
pushfl
|
|
popl %eax
|
|
|
|
cmpl %eax, %ebx
|
|
|
|
je .notfound
|
|
|
|
# OK, we have CPUID
|
|
|
|
movl $1, %eax
|
|
cpuid
|
|
|
|
test $0x00800000, %edx
|
|
jz .notfound
|
|
|
|
movl $1, %eax
|
|
jmp .out
|
|
|
|
.notfound:
|
|
movl $0, %eax
|
|
.out:
|
|
popl %ebx
|
|
ret |