Apply clang-tidy fixes for readability-identifier-naming in MathOps.cpp (NFC)

This commit is contained in:
Mehdi Amini 2022-01-14 07:29:19 +00:00
parent 3b6943e66c
commit 1c173c9442
1 changed files with 7 additions and 7 deletions

View File

@ -52,18 +52,18 @@ OpFoldResult math::Log2Op::fold(ArrayRef<Attribute> operands) {
if (!attr)
return {};
auto FT = getType().cast<FloatType>();
auto ft = getType().cast<FloatType>();
APFloat APF = attr.getValue();
APFloat apf = attr.getValue();
if (APF.isNegative())
if (apf.isNegative())
return {};
if (FT.getWidth() == 64)
return FloatAttr::get(getType(), log2(APF.convertToDouble()));
if (ft.getWidth() == 64)
return FloatAttr::get(getType(), log2(apf.convertToDouble()));
if (FT.getWidth() == 32)
return FloatAttr::get(getType(), log2f(APF.convertToDouble()));
if (ft.getWidth() == 32)
return FloatAttr::get(getType(), log2f(apf.convertToDouble()));
return {};
}