summaryrefslogtreecommitdiff
path: root/flang/lib/evaluate/leading-zero-bit-count.h
diff options
context:
space:
mode:
Diffstat (limited to 'flang/lib/evaluate/leading-zero-bit-count.h')
-rw-r--r--flang/lib/evaluate/leading-zero-bit-count.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/flang/lib/evaluate/leading-zero-bit-count.h b/flang/lib/evaluate/leading-zero-bit-count.h
index 13749fb51827..33e990c9c69e 100644
--- a/flang/lib/evaluate/leading-zero-bit-count.h
+++ b/flang/lib/evaluate/leading-zero-bit-count.h
@@ -46,7 +46,7 @@ static constexpr std::uint8_t mapping[64]{63, 0, 58, 1, 59, 47, 53, 2, 60, 39,
48, 27, 54, 33, 42, 3, 61, 51, 37, 40, 49, 18, 28, 20, 55, 30, 34, 11, 43,
14, 22, 4, 62, 57, 46, 52, 38, 26, 32, 41, 50, 36, 17, 19, 29, 10, 13, 21,
56, 45, 25, 31, 35, 16, 9, 12, 44, 24, 15, 8, 23, 7, 6, 5};
-} // namespace
+}
inline constexpr int LeadingZeroBitCount(std::uint64_t x) {
if (x == 0) {
@@ -89,10 +89,10 @@ static constexpr std::uint8_t eightBitLeadingZeroBitCount[256]{8, 7, 6, 6, 5, 5,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
-} // namespace
+}
inline constexpr int LeadingZeroBitCount(std::uint8_t x) {
return eightBitLeadingZeroBitCount[x];
}
-} // namespace Fortran::evaluate
+}
#endif // FORTRAN_EVALUATE_LEADING_ZERO_BIT_COUNT_H_