はじめに 興味があったので以下の件についてLLVMの観点で原因を探ってみました。 以下、デバッグビルドしたLLVM15.0.7を使ってみていきます。 "std::uniform_real_distributionが遅い件"で問題とされた部分 const long double __r = static_cast<long double>(__urng.max()) - static_cast<long double>(__urng.min()) + 1.0L; const size_t __log2r = std::log(__r) / std::log(2.0L); このままでは、コンパイル出来ないので整形します。上記コード中の__urng.max()と__urng.min()は、たどるとそれぞれstd::numeric_limitsのmax()とmin()となっているので、そのように置