mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-23 13:01:42 +00:00
43c602dc95
2002-05-04 Sven Neumann <sven@gimp.org> * app/arch/i386/mmx/detect_mmx.S * app/arch/i386/mmx/paint_funcs_mmx.S: applied a patch from iccii@hotmail.com that promises to fix build on mingw (bug #80681). * app/config/gimpconfig-serialize.c * app/config/gimpconfig-utils.[ch]: moved value compare function to gimpconfig-utils. * app/config/gimpconfig.[ch]: added duplicate and compare functions to GimpConfigInterface so derived interfaces can override them. * app/tools/gimptexttool.c: fixed tool cursor.
64 lines
680 B
ArmAsm
64 lines
680 B
ArmAsm
.data
|
|
cpu_flags: .long 0
|
|
|
|
.text
|
|
.align 4
|
|
|
|
#ifndef __MINGW32__
|
|
|
|
.globl intel_cpu_features
|
|
.type intel_cpu_features,@function
|
|
intel_cpu_features:
|
|
|
|
#else
|
|
|
|
.globl _intel_cpu_features
|
|
_intel_cpu_features:
|
|
|
|
#endif
|
|
|
|
pushl %ebx
|
|
pushfl
|
|
popl %eax
|
|
|
|
movl %eax,%ecx
|
|
|
|
xorl $0x040000,%eax
|
|
pushl %eax
|
|
|
|
popfl
|
|
pushfl
|
|
|
|
popl %eax
|
|
xorl %ecx,%eax
|
|
jz .intel_cpu_features_end # Processor is 386
|
|
|
|
pushl %ecx
|
|
popfl
|
|
|
|
movl %ecx,%eax
|
|
xorl $0x200000,%eax
|
|
|
|
pushl %eax
|
|
popfl
|
|
pushfl
|
|
|
|
popl %eax
|
|
xorl %ecx,%eax
|
|
je .intel_cpu_features_end
|
|
|
|
pushal
|
|
|
|
movl $1,%eax
|
|
cpuid
|
|
|
|
movl %edx,cpu_flags
|
|
|
|
popal
|
|
|
|
movl cpu_flags,%eax
|
|
|
|
.intel_cpu_features_end:
|
|
popl %ebx
|
|
ret
|