Skip to content

Commit

Permalink
Merge pull request #31 from zsa/fix/lib8tion_functions
Browse files Browse the repository at this point in the history
Fix/lib8tion functions
  • Loading branch information
fdidron authored Apr 30, 2019
2 parents c3d6f89 + 51b568a commit 882651d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/lib8tion/lib8tion.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion lib/lib8tion/trig8.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 882651d

Please sign in to comment.