2005-07-12 04:05:26 +00:00
|
|
|
/*
|
2005-07-12 15:58:57 +00:00
|
|
|
* Copyright (C) 2000 Red Hat, Inc
|
2005-07-12 04:05:26 +00:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the
|
|
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
2000-01-05 21:33:58 +00:00
|
|
|
.file "have_mmx.S"
|
|
|
|
.version "01.01"
|
|
|
|
gcc2_compiled.:
|
|
|
|
.text
|
|
|
|
.align 16
|
2000-07-22 23:50:19 +00:00
|
|
|
|
2006-07-02 15:28:33 +00:00
|
|
|
#if !defined(__MINGW32__) && !defined(__CYGWIN__) && !defined(__INTERIX)
|
2000-07-22 23:50:19 +00:00
|
|
|
|
2005-02-28 18:09:37 +00:00
|
|
|
/* Magic indicating no need for an executable stack */
|
|
|
|
#if !defined __powerpc64__ && !defined __ia64__
|
|
|
|
.section .note.GNU-stack; .previous
|
|
|
|
#endif
|
|
|
|
|
2004-08-11 14:23:31 +00:00
|
|
|
.globl _pixops_have_mmx
|
|
|
|
.type _pixops_have_mmx,@function
|
|
|
|
_pixops_have_mmx:
|
2000-07-22 23:50:19 +00:00
|
|
|
|
|
|
|
#else
|
|
|
|
|
2004-08-11 14:23:31 +00:00
|
|
|
.globl __pixops_have_mmx
|
|
|
|
__pixops_have_mmx:
|
2000-07-22 23:50:19 +00:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2000-01-05 21:33:58 +00:00
|
|
|
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
|
Add built marshaller files to support GdkPixbufLoader signals
2001-01-22 Havoc Pennington <hp@redhat.com>
* Makefile.am: Add built marshaller files to support
GdkPixbufLoader signals
* gdk-pixbuf-io.c (gdk_pixbuf_load_module): have
GDK_PIXBUF_MODULEDIR unconditionally replace the compiled-in
module location, rather than acting as a fallback, because we are
using GDK_PIXBUF_MODULEDIR to use gdk-pixbuf before installing it.
* gdk-pixbuf.h: include gdk-pixbuf-loader.h
* gdk-pixbuf-loader.h, gdk-pixbuf-loader.c: Move back over here
from gtk, and add error to close(), because stop_load may do
parsing of the image.
* pixops/have_mmx.S (_pixops_have_mmx): add newline at end of file
* io-*.c: make individual operations static, and add fill_vtable
functions which are exported. Fix the collection of type warnings
that surfaced, including a number of functions that didn't
properly take a GError and some that weren't
const-correct. Involved adding error handling for a few loaders.
* gdk-pixbuf-io.h: Add error reporting to stop_load function
* gdk-pixbuf-io.c (gdk_pixbuf_load_module): change to just look up
a function that fills in the GdkPixbufModule vtable, instead of
looking up all the image functions individually; this means we
can get type safety within modules for the loader functions.
Also it means you don't have to keep the statically compiled and
GModule versions in sync.
* test-gdk-pixbuf.c (main): remove gdk_pixbuf_init()
* make-inline-pixbuf.c (main): remove call to gdk_pixbuf_init()
* gdk-pixbuf.h: nuke gdk_pixbuf_init()
* gdk-pixbuf-animation.c (gdk_pixbuf_frame_get_type): g_type_init
() here
* gdk-pixbuf.c (gdk_pixbuf_get_type): g_type_init () here
* gdk-pixbuf-animation.c (gdk_pixbuf_animation_get_type):
g_type_init() here
2001-01-22 Havoc Pennington <hp@redhat.com>
* demos/testanimation.c: fix to reflect gdk-pixbuf changes
* demos/testpixbuf.c: fix to reflect gdk-pixbuf changes
* gtk/gdk-pixbuf-loader.c, gtk/gdk-pixbuf-loader.h:
Remove, move back to gdk-pixbuf
* gtk/gtktextiter.c, gtk/gtktextiter.h: add sentence equivalents
to all the word functions
* gtk/gtktextview.c (gtk_text_view_start_cursor_blink): return
before doing anything on NULL layout or if we don't have the focus
* gtk/testtext.c (fill_example_buffer): "justification"
* gtk/gtktexttag.h, gtk/gtktexttag.c: change the tag attribute
to be called "justification" not "justify"
* demos/gtk-demo/textview.c (create_tags): "justification"
* gtk/gtktextlayout.c (set_para_values): Handle char-wise wrapping
2001-01-22 23:09:48 +00:00
|
|
|
ret
|
|
|
|
|