mirror of
https://github.com/libretro/RetroArch
synced 2025-03-25 16:44:01 +00:00
Rename more local index variables
This commit is contained in:
parent
a14bfdfca2
commit
a92ec148bd
@ -45,11 +45,11 @@ static bool is_long_option(const char *str)
|
|||||||
|
|
||||||
static int find_short_index(char * const *argv)
|
static int find_short_index(char * const *argv)
|
||||||
{
|
{
|
||||||
int index;
|
int idx;
|
||||||
for (index = 0; argv[index]; index++)
|
for (idx = 0; argv[idx]; idx++)
|
||||||
{
|
{
|
||||||
if (is_short_option(argv[index]))
|
if (is_short_option(argv[idx]))
|
||||||
return index;
|
return idx;
|
||||||
}
|
}
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
@ -57,11 +57,11 @@ static int find_short_index(char * const *argv)
|
|||||||
|
|
||||||
static int find_long_index(char * const *argv)
|
static int find_long_index(char * const *argv)
|
||||||
{
|
{
|
||||||
int index;
|
int idx;
|
||||||
for (index = 0; argv[index]; index++)
|
for (idx = 0; argv[idx]; idx++)
|
||||||
{
|
{
|
||||||
if (is_long_option(argv[index]))
|
if (is_long_option(argv[idx]))
|
||||||
return index;
|
return idx;
|
||||||
}
|
}
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -272,7 +272,7 @@ static void x86_cpuid(int func, int flags[4])
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Only runs on i686 and above. Needs to be conditionally run. */
|
/* Only runs on i686 and above. Needs to be conditionally run. */
|
||||||
static uint64_t xgetbv_x86(uint32_t index)
|
static uint64_t xgetbv_x86(uint32_t idx)
|
||||||
{
|
{
|
||||||
#if defined(__GNUC__)
|
#if defined(__GNUC__)
|
||||||
uint32_t eax, edx;
|
uint32_t eax, edx;
|
||||||
@ -282,11 +282,11 @@ static uint64_t xgetbv_x86(uint32_t index)
|
|||||||
* Stamp out the machine code directly.
|
* Stamp out the machine code directly.
|
||||||
*/
|
*/
|
||||||
".byte 0x0f, 0x01, 0xd0\n"
|
".byte 0x0f, 0x01, 0xd0\n"
|
||||||
: "=a"(eax), "=d"(edx) : "c"(index));
|
: "=a"(eax), "=d"(edx) : "c"(idx));
|
||||||
return ((uint64_t)edx << 32) | eax;
|
return ((uint64_t)edx << 32) | eax;
|
||||||
#elif _MSC_FULL_VER >= 160040219
|
#elif _MSC_FULL_VER >= 160040219
|
||||||
/* Intrinsic only works on 2010 SP1 and above. */
|
/* Intrinsic only works on 2010 SP1 and above. */
|
||||||
return _xgetbv(index);
|
return _xgetbv(idx);
|
||||||
#else
|
#else
|
||||||
RARCH_WARN("Unknown compiler. Cannot check xgetbv bits.\n");
|
RARCH_WARN("Unknown compiler. Cannot check xgetbv bits.\n");
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user