mirror of
git://slackware.nl/current.git
synced 2024-12-28 09:59:53 +01:00
40 lines
1.3 KiB
Diff
40 lines
1.3 KiB
Diff
|
--- glib.h
|
||
|
+++ glib.h
|
||
|
@@ -535,9 +535,10 @@ typedef gint32 GTime;
|
||
|
if (__builtin_constant_p (val)) \
|
||
|
__v = GUINT16_SWAP_LE_BE_CONSTANT (val); \
|
||
|
else \
|
||
|
- __asm__ __const__ ("rorw $8, %w0" \
|
||
|
+ __asm__ ("rorw $8, %w0" \
|
||
|
: "=r" (__v) \
|
||
|
- : "0" ((guint16) (val))); \
|
||
|
+ : "0" ((guint16) (val)) \
|
||
|
+ : "cc"); \
|
||
|
__v; }))
|
||
|
# define GUINT16_SWAP_LE_BE(val) (GUINT16_SWAP_LE_BE_X86 (val))
|
||
|
# if !defined(__i486__) && !defined(__i586__) \
|
||
|
@@ -548,11 +549,12 @@ typedef gint32 GTime;
|
||
|
if (__builtin_constant_p (val)) \
|
||
|
__v = GUINT32_SWAP_LE_BE_CONSTANT (val); \
|
||
|
else \
|
||
|
- __asm__ __const__ ("rorw $8, %w0\n\t" \
|
||
|
+ __asm__ ("rorw $8, %w0\n\t" \
|
||
|
"rorl $16, %0\n\t" \
|
||
|
"rorw $8, %w0" \
|
||
|
: "=r" (__v) \
|
||
|
- : "0" ((guint32) (val))); \
|
||
|
+ : "0" ((guint32) (val)) \
|
||
|
+ : "cc"); \
|
||
|
__v; }))
|
||
|
# else /* 486 and higher has bswap */
|
||
|
# define GUINT32_SWAP_LE_BE_X86(val) \
|
||
|
@@ -561,7 +563,7 @@ typedef gint32 GTime;
|
||
|
if (__builtin_constant_p (val)) \
|
||
|
__v = GUINT32_SWAP_LE_BE_CONSTANT (val); \
|
||
|
else \
|
||
|
- __asm__ __const__ ("bswap %0" \
|
||
|
+ __asm__ ("bswap %0" \
|
||
|
: "=r" (__v) \
|
||
|
: "0" ((guint32) (val))); \
|
||
|
__v; }))
|