Skip to content

Commit

Permalink
Apply clang-tidy fixes for readability-identifier-naming in Float16bi…
Browse files Browse the repository at this point in the history
…ts.cpp (NFC)
  • Loading branch information
joker-eph committed Jun 29, 2022
1 parent 424b2ae commit be79972
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mlir/lib/ExecutionEngine/Float16bits.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit be79972

Please sign in to comment.