disable GCC unmath optimization in non-nearest scaling funcs
This commit is contained in:
parent
aba77ed2b4
commit
10edbdc399
@ -25,6 +25,8 @@ Image scaleNearest(Image const& srcImage, Vec2F const& scale) {
|
|||||||
return destImage;
|
return destImage;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#pragma GCC push_options
|
||||||
|
#pragma GCC optimize("-fno-unsafe-math-optimizations")
|
||||||
Image scaleBilinear(Image const& srcImage, Vec2F const& scale) {
|
Image scaleBilinear(Image const& srcImage, Vec2F const& scale) {
|
||||||
Vec2U srcSize = srcImage.size();
|
Vec2U srcSize = srcImage.size();
|
||||||
Vec2U destSize = Vec2U::round(vmult(Vec2F(srcSize), scale));
|
Vec2U destSize = Vec2U::round(vmult(Vec2F(srcSize), scale));
|
||||||
@ -100,6 +102,7 @@ Image scaleBicubic(Image const& srcImage, Vec2F const& scale) {
|
|||||||
|
|
||||||
return destImage;
|
return destImage;
|
||||||
}
|
}
|
||||||
|
#pragma GCC pop_options
|
||||||
|
|
||||||
StringList colorDirectivesFromConfig(JsonArray const& directives) {
|
StringList colorDirectivesFromConfig(JsonArray const& directives) {
|
||||||
List<String> result;
|
List<String> result;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user