From 4cf3e1be2c4cda353e602a82630b506dcfbd14ad Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sun, 2 Apr 2017 11:51:58 +0300 Subject: [PATCH] Removed obsolete workaround for Apple's GCC 4.x from node builder --- src/nodebuild_utility.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/nodebuild_utility.cpp b/src/nodebuild_utility.cpp index f27b95485..754e3519c 100644 --- a/src/nodebuild_utility.cpp +++ b/src/nodebuild_utility.cpp @@ -71,13 +71,7 @@ static const int PO_LINE_EXPLICIT = 5; angle_t FNodeBuilder::PointToAngle (fixed_t x, fixed_t y) { const double rad2bam = double(1<<30) / M_PI; -#if defined __APPLE__ && !defined __llvm__ - // Work-around for vectorization issue in Apple's GCC 4.x - // See https://gcc.gnu.org/wiki/Math_Optimization_Flags for details - long double ang = atan2l (double(y), double(x)); -#else // !__APPLE__ || __llvm__ double ang = g_atan2 (double(y), double(x)); -#endif // __APPLE__ && !__llvm__ // Convert to signed first since negative double to unsigned is undefined. return angle_t(int(ang * rad2bam)) << 1; }