mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-15 04:30:33 +00:00
Fix for gcc < 8
This commit is contained in:
parent
405d43866d
commit
8932427d7a
@ -39,14 +39,10 @@ namespace my_rotl = std;
|
|||||||
#else
|
#else
|
||||||
namespace my_rotl
|
namespace my_rotl
|
||||||
{
|
{
|
||||||
#ifndef _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
|
||||||
#define rotl(X, N) (((X) << (N)) ^ ((X) >> (32 - (N))))
|
uint32_t rotl = [](uint32_t x, uint32_t n) { return (((x) << (n)) ^ ((x) >> (32 - (n)))); };
|
||||||
#endif
|
|
||||||
#else
|
|
||||||
#define rotl _rotl
|
|
||||||
#endif
|
#endif
|
||||||
} // namespace my_rotl
|
} // namespace my_rotl
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user