b-sumner added a comment. That sequence will give a very accurate result as long as overflow and underflow is avoided. LGTM. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D95101/new/ https://reviews.llvm.org/D95101