2025/10/18日での、MSVC STL cmathのpowの話。 2乗(整数指数時)のpow関数はx*xを返すようになった(戻した)らしい。 詳しくはここを参考。 簡単にはstd::powが呼び出していたUCRTのpowのせいらしい。 It turns out that the UCRT mishandles squaring in a small fraction of cases, returning answers that are off by 1 ULP (unit in the last place). 下記はMSVC STLの実装。 // https://github.co…