We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 225a3bf commit 5256e96Copy full SHA for 5256e96
TESTS/mbed_hal/trng/pithy/pithy.c
@@ -81,7 +81,7 @@ enum {
81
#define PITHY_PREFETCH(ptr)
82
#endif // defined (__GNUC__) && (__GNUC__ >= 3)
83
84
-#define PITHY_STATIC_INLINE static __inline__ PITHY_ATTRIBUTES(always_inline)
+#define PITHY_STATIC_INLINE static inline PITHY_ATTRIBUTES(always_inline)
85
#define PITHY_ALIGNED(x) PITHY_ATTRIBUTES(aligned(x))
86
87
#if defined(NS_BLOCK_ASSERTIONS) && !defined(NDEBUG)
@@ -244,7 +244,7 @@ PITHY_STATIC_INLINE int pithy_Log2Floor(uint32_t n)
244
245
PITHY_STATIC_INLINE int pithy_FindLSBSetNonZero32(uint32_t n)
246
{
247
- int i = 0, rc = 31;
+ int i = 0, rc = 31, shift = 0;
248
for (i = 4, shift = 1 << 4; i >= 0; --i) {
249
const uint32_t x = n << shift;
250
if (x != 0u) {
0 commit comments