Home
last modified time | relevance | path

Searched refs:guardBits (Results 1 – 1 of 1) sorted by relevance

/external/llvm-project/flang/lib/Decimal/
Ddecimal-to-binary.cpp204 guard_ = (n >> (nBits - guardBits)) | ((n << guardBits) != 0); in SetTo()
214 guard_ |= (static_cast<GuardType>(g & 6) << (guardBits - 3)) | (g & 1); in SetGuard()
221 static constexpr int guardBits{3}; // guard, round, sticky member in Fortran::decimal::IntermediateFloat
223 static constexpr GuardType oneHalf{GuardType{1} << (guardBits - 1)};
241 ((static_cast<GuardType>(fraction) & 1) << (guardBits - 1)); in ToBinary()
255 fraction = fraction * 2 + (guard >> (guardBits - 2)); in ToBinary()
256 guard = (((guard >> (guardBits - 2)) & 1) << (guardBits - 1)) | (guard & 1); in ToBinary()