This repository was archived by the owner on Oct 11, 2020. It is now read-only.

Description
I get some errors from these abs calls when compiling on GCC7
|
uint8_t rt_pot = (rt_val != 0x80000000) && ((abs(rt_val) & (abs(rt_val) - 1)) == 0); |
|
|
|
if (rt_pot) { |
|
u32 rs = regMipsToHost(_Rs_, REG_LOAD, REG_REGISTER); |
|
|
|
// Count trailing 0s of const power-of-two divisor to get right-shift amount |
|
u32 pot_val = (u32)abs(rt_val); |
Here, rt_val is defined as unsigned (u32), and GCC7 doesn't know which overload of abs to pick.
Error message: https://gist.github.com/glebm/7c11ff8d56a6cc35db2f9170a4974a0e