diff options
author | Aki <please@ignore.pl> | 2022-04-07 18:42:05 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-04-07 18:42:05 +0200 |
commit | efe12d3a443f431c97af0f6e60587d1f43652789 (patch) | |
tree | 5d7a878edd3fa632bce91923a1d54a6fd9a5892a /contrib | |
parent | 709b67740474f1cb84a965a6a405b8c51f5e7b50 (diff) | |
download | starshatter-efe12d3a443f431c97af0f6e60587d1f43652789.zip starshatter-efe12d3a443f431c97af0f6e60587d1f43652789.tar.gz starshatter-efe12d3a443f431c97af0f6e60587d1f43652789.tar.bz2 |
Wrapped min max calls to avoid macro that should be disabled
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/Opcode/Ice/IceFPU.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/Opcode/Ice/IceFPU.h b/contrib/Opcode/Ice/IceFPU.h index c05fd44..7d36aa4 100644 --- a/contrib/Opcode/Ice/IceFPU.h +++ b/contrib/Opcode/Ice/IceFPU.h @@ -175,25 +175,25 @@ //! A global function to find MAX(a,b) using FCOMI/FCMOV inline_ float FCMax2(float a, float b) { - return std::max(a, b); + return (std::max)(a, b); } //! A global function to find MIN(a,b) using FCOMI/FCMOV inline_ float FCMin2(float a, float b) { - return std::min(a, b); + return (std::min)(a, b); } //! A global function to find MAX(a,b,c) using FCOMI/FCMOV inline_ float FCMax3(float a, float b, float c) { - return std::max(std::max(a, b), c); + return (std::max)((std::max)(a, b), c); } //! A global function to find MIN(a,b,c) using FCOMI/FCMOV inline_ float FCMin3(float a, float b, float c) { - return std::min(std::min(a, b), c); + return (std::min)((std::min)(a, b), c); } inline_ int ConvertToSortable(float f) |