Merge pull request #31 from zsa/fix/lib8tion_functions

Fix/lib8tion functions
pull/5990/head
Florian Didron 6 years ago committed by GitHub
commit 882651dc06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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>

@ -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

Loading…
Cancel
Save