1
0
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:
Carles Fernandez 2020-06-16 13:35:00 +02:00
parent 405d43866d
commit 8932427d7a
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -39,14 +39,10 @@ namespace my_rotl = std;
#else
namespace my_rotl
{
#ifndef _rotl
#if HAS_GENERIC_LAMBDA
auto rotl = [](auto x, auto n) { return (((x) << (n)) ^ ((x) >> (32 - (n)))); };
#else
#define rotl(X, N) (((X) << (N)) ^ ((X) >> (32 - (N))))
#endif
#else
#define rotl _rotl
uint32_t rotl = [](uint32_t x, uint32_t n) { return (((x) << (n)) ^ ((x) >> (32 - (n)))); };
#endif
} // namespace my_rotl
#endif