mirror of https://github.com/gnss-sdr/gnss-sdr
Fix for gcc < 8
This commit is contained in:
parent
8932427d7a
commit
7307e82d48
|
@ -42,7 +42,7 @@ namespace my_rotl
|
||||||
#if HAS_GENERIC_LAMBDA
|
#if HAS_GENERIC_LAMBDA
|
||||||
auto rotl = [](auto x, auto n) { return (((x) << (n)) ^ ((x) >> (32 - (n)))); };
|
auto rotl = [](auto x, auto n) { return (((x) << (n)) ^ ((x) >> (32 - (n)))); };
|
||||||
#else
|
#else
|
||||||
uint32_t rotl = [](uint32_t x, uint32_t n) { return (((x) << (n)) ^ ((x) >> (32 - (n)))); };
|
auto rotl = [](uint32_t x, uint32_t n) { return (((x) << (n)) ^ ((x) >> (32 - (n)))); };
|
||||||
#endif
|
#endif
|
||||||
} // namespace my_rotl
|
} // namespace my_rotl
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue