[Mlir-commits] [mlir] be79972 - Apply clang-tidy fixes for readability-identifier-naming in Float16bits.cpp (NFC)

Mehdi Amini llvmlistbot at llvm.org
Wed Jun 29 05:15:59 PDT 2022


Author: Mehdi Amini
Date: 2022-06-29T12:13:57Z
New Revision: be7997221d74cd7d4c53f196a3b94aefc4806dcc

URL: https://github.com/llvm/llvm-project/commit/be7997221d74cd7d4c53f196a3b94aefc4806dcc
DIFF: https://github.com/llvm/llvm-project/commit/be7997221d74cd7d4c53f196a3b94aefc4806dcc.diff

LOG: Apply clang-tidy fixes for readability-identifier-naming in Float16bits.cpp (NFC)

Added: 
    

Modified: 
    mlir/lib/ExecutionEngine/Float16bits.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/ExecutionEngine/Float16bits.cpp b/mlir/lib/ExecutionEngine/Float16bits.cpp
index 96eed35fef261..c163316913cf5 100644
--- a/mlir/lib/ExecutionEngine/Float16bits.cpp
+++ b/mlir/lib/ExecutionEngine/Float16bits.cpp
@@ -116,8 +116,8 @@ uint16_t float2bfloat(float floatValue) {
 
   // Least significant bit of resulting bfloat.
   uint32_t lsb = (floatBits.u >> kF32BfMantiBitDiff) & 1;
-  uint32_t rounding_bias = 0x7fff + lsb;
-  floatBits.u += rounding_bias;
+  uint32_t roundingBias = 0x7fff + lsb;
+  floatBits.u += roundingBias;
   bfloatBits = static_cast<uint16_t>(floatBits.u >> kF32BfMantiBitDiff);
   return bfloatBits;
 }


        


More information about the Mlir-commits mailing list