mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-25 21:04:40 +00:00
strcmp will always be faster
This commit is contained in:
parent
ab33d16da1
commit
ae12c30285
@ -44,12 +44,7 @@ static INLINE bool string_is_equal(const char *a, const char *b)
|
||||
{
|
||||
if (!a || !b)
|
||||
return false;
|
||||
while(*a && (*a == *b))
|
||||
{
|
||||
a++;
|
||||
b++;
|
||||
}
|
||||
return (*(const unsigned char*)a - *(const unsigned char*)b) == 0;
|
||||
return strcmp(a, b) == 0;
|
||||
}
|
||||
|
||||
static INLINE bool string_is_not_equal(const char *a, const char *b)
|
||||
|
Loading…
x
Reference in New Issue
Block a user