Bug#246330: libglib2.0-dev: Byteswapping is not optimized on P4
Gabor Gombas
Gabor Gombas <gombasg@sztaki.hu>, 246330@bugs.debian.org
Wed, 28 Apr 2004 15:25:48 +0200
Package: libglib2.0-dev
Version: 2.4.0-2
Severity: minor
Tags: sid experimental patch
Hi,
GUINT32_SWAP_LE_BE_IA32 does not use bswap when compiling for P4. Fix
(should also work for glib-2.2.3 in Sid):
--- gtypes.h.orig 2004-03-24 01:19:06.000000000 +0100
+++ gtypes.h 2004-04-28 15:13:31.000000000 +0200
@@ -156,7 +156,7 @@
__v; }))
# if !defined (__i486__) && !defined (__i586__) \
&& !defined (__pentium__) && !defined (__i686__) \
- && !defined (__pentiumpro__)
+ && !defined (__pentiumpro__) && !defined(__pentium4__)
# define GUINT32_SWAP_LE_BE_IA32(val) \
(__extension__ \
({ register guint32 __v, __x = ((guint32) (val)); \
Gabor
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (990, 'unstable'), (101, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.5
Locale: LANG=C, LC_CTYPE=hu_HU
Versions of packages libglib2.0-dev depends on:
ii libc6-dev [libc-dev] 2.3.2.ds1-12 GNU C Library: Development Librari
ii libglib2.0-0 2.4.0-2 The GLib library of C routines
ii pkg-config 0.15.0-4 Manage compile and link flags for
-- no debconf information