Re:The Hunt for the Fastest Zero
by PeterHacker123 on Monday January 20, 2020 @03:40PM
(#22101921)
Thumbs up, but at least on macOS both is equally fast :-(
[ Parent
| on HN ]
Probably you are using clang, right? As mentioned, clang does the idiom recognition even at -O2.
Try at -O1.
If it's still fast at -O1, I guess the libc++ implementation is different (AFAIK clang uses libstdc++ on Linux but libc++ on OSX).