diff options
Diffstat (limited to 'apps/plugins/lib/helper.c')
| -rw-r--r-- | apps/plugins/lib/helper.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/plugins/lib/helper.c b/apps/plugins/lib/helper.c index e35e43a..b95ee7a 100644 --- a/apps/plugins/lib/helper.c +++ b/apps/plugins/lib/helper.c @@ -22,6 +22,20 @@ #include "plugin.h" #include "helper.h" +#ifdef CPU_SH +/* Lookup table for using the BIT_N() macro in plugins */ +const unsigned bit_n_table[32] = { + 1LU<< 0, 1LU<< 1, 1LU<< 2, 1LU<< 3, + 1LU<< 4, 1LU<< 5, 1LU<< 6, 1LU<< 7, + 1LU<< 8, 1LU<< 9, 1LU<<10, 1LU<<11, + 1LU<<12, 1LU<<13, 1LU<<14, 1LU<<15, + 1LU<<16, 1LU<<17, 1LU<<18, 1LU<<19, + 1LU<<20, 1LU<<21, 1LU<<22, 1LU<<23, + 1LU<<24, 1LU<<25, 1LU<<26, 1LU<<27, + 1LU<<28, 1LU<<29, 1LU<<30, 1LU<<31 +}; +#endif + /* Force the backlight on */ void backlight_force_on(void) { |