From 38102f659e02292cb32a74017bf488ba80f5d9bd Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Thu, 19 Oct 2017 03:12:24 +0000 Subject: [PATCH] removed a unneeded colon in inline assembly that caused compilation failure with old gcc 3.X --- qse/include/qse/macros.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qse/include/qse/macros.h b/qse/include/qse/macros.h index 281beefd..c03f20f0 100644 --- a/qse/include/qse/macros.h +++ b/qse/include/qse/macros.h @@ -469,13 +469,13 @@ QSE_EXPORT void qse_assert_failed ( #if !defined(__STRICT_ANSI__) && !defined(INTEL_CC) && defined(__GNUC__) && (defined(__i386) || defined(i386) || defined(__x86_64) || defined(__amd64)) static inline qse_uint64_t QSE_ROTL64 (qse_uint64_t v, int i) { - __asm__ volatile ("rolq %%cl,%0": "=r"(v): "0"(v), "c"(i): /* no clobbers */); + __asm__ volatile ("rolq %%cl,%0": "=r"(v): "0"(v), "c"(i) /*: no clobbers */); return v; } static inline qse_uint64_t QSE_ROTR64 (qse_uint64_t v, int i) { - __asm__ volatile ("rorq %%cl,%0" :"=r"(v) :"0"(v), "c"(i): /* no clobbers */); + __asm__ volatile ("rorq %%cl,%0" :"=r"(v) :"0"(v), "c"(i) /*: no clobbers */); return v; } #else @@ -490,13 +490,13 @@ static inline qse_uint64_t QSE_ROTR64 (qse_uint64_t v, int i) #if !defined(__STRICT_ANSI__) && !defined(INTEL_CC) && defined(__GNUC__) && (defined(__i386) || defined(i386) || defined(__x86_64) || defined(__amd64)) static inline qse_uint32_t QSE_ROTL32 (qse_uint32_t v, int i) { - __asm__ volatile ("roll %%cl,%0": "=r"(v): "0"(v), "c"(i): /* no clobbers */); + __asm__ volatile ("roll %%cl,%0": "=r"(v): "0"(v), "c"(i) /*: no clobbers */); return v; } static inline qse_uint32_t QSE_ROTR32 (qse_uint32_t v, int i) { - __asm__ volatile ("rorl %%cl,%0" :"=r"(v) :"0"(v), "c"(i): /* no clobbers */); + __asm__ volatile ("rorl %%cl,%0" :"=r"(v) :"0"(v), "c"(i) /*: no clobbers */); return v; } #else