From a3a62f5b63dd4d8a1f06ede0daeac790ad475b2b Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 30 Jan 2020 20:17:54 +0900 Subject: Removed explicit usage of the 'register' keyword. Signed-off-by: Michele Calgaro --- src/kvilib/core/kvi_strasm.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/kvilib/core/kvi_strasm.h') diff --git a/src/kvilib/core/kvi_strasm.h b/src/kvilib/core/kvi_strasm.h index 5d3b19ca..11e3b2df 100644 --- a/src/kvilib/core/kvi_strasm.h +++ b/src/kvilib/core/kvi_strasm.h @@ -39,7 +39,7 @@ extern inline bool kvi_strEqualCS(const char * str1,const char * str2) // When inlining, GCC can optimize to load esi and edi // directly with the strings , without pushing and getting it // from the stack... - register bool eax; + bool eax; __asm__ __volatile__ ( " cld\n" "1:\n" @@ -61,7 +61,7 @@ extern inline bool kvi_strEqualCS(const char * str1,const char * str2) extern inline bool kvi_strEqualCSN(const char * str1,const char * str2,int len) { - register bool eax; + bool eax; __asm__ __volatile__ ( "1:\n" " decl %3\n" @@ -99,8 +99,8 @@ extern inline bool kvi_strEqualNoLocaleCI(const char *str1,const char *str2) // Trivial implementation // Ignores completely locales....only A-Z chars are transformed to a-z // Anyway...it will work for IRC :) - register int reg; - register bool eax; + int reg; + bool eax; __asm__ __volatile__ ( "1:\n" " movb (%2),%%al\n" @@ -137,8 +137,8 @@ extern inline bool kvi_strEqualNoLocaleCI(const char *str1,const char *str2) extern inline bool kvi_strEqualNoLocaleCIN(const char *str1,const char *str2,int len) { - register int reg; - register bool eax; + int reg; + bool eax; __asm__ __volatile__ ( "1:\n" " decl %4\n" @@ -178,7 +178,7 @@ extern inline bool kvi_strEqualNoLocaleCIN(const char *str1,const char *str2,int extern inline int kvi_strLen(const char * str) { - register int ecx; + int ecx; __asm__ __volatile__( " cld\n" " repne\n" -- cgit v1.2.1