diff options
author | Florian Didron <fdidron@users.noreply.github.com> | 2019-04-30 15:14:37 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-30 15:14:37 +0900 |
commit | 882651dc06b11565f157fe3c9279600c618d3642 (patch) | |
tree | 8c6b12704a98fa3f12c48ee5fbde59325088728a | |
parent | c3d6f8927434c4b8ece69b69f4c9b37fa8a5a438 (diff) | |
parent | 51b568a197415051dbf329c4cd429b2607bf8f0a (diff) |
Merge pull request #31 from zsa/fix/lib8tion_functions
Fix/lib8tion functions
-rw-r--r-- | lib/lib8tion/lib8tion.h | 4 | ||||
-rw-r--r-- | lib/lib8tion/trig8.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/lib8tion/lib8tion.h b/lib/lib8tion/lib8tion.h index d93c748e6a..4c770cbcb5 100644 --- a/lib/lib8tion/lib8tion.h +++ b/lib/lib8tion/lib8tion.h @@ -167,8 +167,8 @@ Lib8tion is pronounced like 'libation': lie-BAY-shun #include <stdint.h> -#define LIB8STATIC __attribute__ ((unused)) static inline -#define LIB8STATIC_ALWAYS_INLINE __attribute__ ((always_inline)) static inline +#define LIB8STATIC static inline +#define LIB8STATIC_ALWAYS_INLINE static inline #if !defined(__AVR__) #include <string.h> diff --git a/lib/lib8tion/trig8.h b/lib/lib8tion/trig8.h index 4907c6ff30..6ef3ce625f 100644 --- a/lib/lib8tion/trig8.h +++ b/lib/lib8tion/trig8.h @@ -147,7 +147,7 @@ LIB8STATIC int16_t cos16( uint16_t theta) #endif -const uint8_t b_m16_interleave[] = { 0, 49, 49, 41, 90, 27, 117, 10 }; +static const uint8_t b_m16_interleave[8] = { 0, 49, 49, 41, 90, 27, 117, 10 }; /// Fast 8-bit approximation of sin(x). This approximation never varies more than /// 2% from the floating point value you'd get by doing |