1
1
mirror of https://github.com/rui314/mold.git synced 2024-09-11 21:17:28 +03:00

Remove a pragma

It looks like Clang recognize `#pragma GCC unroll`. Instead of adding
more C preprocessor directives here, I'd like to rely on the default
compiler optimizations.
This commit is contained in:
Rui Ueyama 2024-04-18 16:11:01 +09:00
parent 1648f716f4
commit f7b705959e

View File

@ -489,9 +489,6 @@ inline u64 read_uleb(std::string_view str) {
}
inline i64 uleb_size(u64 val) {
#if __GNUC__
#pragma GCC unroll 8
#endif
for (int i = 1; i < 9; i++)
if (val < (1LL << (7 * i)))
return i;