mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 10:37:38 -04:00
Fix up some more red
find_first_set_bit() becomes a small inline on ARMv5+ and checkwps now gets made with -std=gnu99 (it eats all the GCCOPTS) like the rest of things. Change-Id: Ie6039b17fec057a3dcb0f453d8fd5efac984df89
This commit is contained in:
parent
bb7700928a
commit
29f5385263
3 changed files with 15 additions and 8 deletions
|
@ -38,19 +38,21 @@ int viewport_get_nb_lines(const struct viewport *vp);
|
|||
#define THEME_LISTS (BIT_N(3))
|
||||
#define THEME_ALL (~(0u))
|
||||
|
||||
#ifndef __PCTOOL__
|
||||
/*
|
||||
* Initialize the viewportmanager, which in turns initializes the UI vp and
|
||||
* statusbar stuff
|
||||
*/
|
||||
void viewportmanager_init(void) INIT_ATTR;
|
||||
|
||||
/* These are needed in checkwps */
|
||||
void viewport_set_defaults(struct viewport *vp,
|
||||
const enum screen_type screen);
|
||||
void viewport_set_fullscreen(struct viewport *vp,
|
||||
const enum screen_type screen);
|
||||
int get_viewport_default_colour(enum screen_type screen, bool fgcolour);
|
||||
|
||||
#ifndef __PCTOOL__
|
||||
|
||||
/*
|
||||
* Initialize the viewportmanager, which in turns initializes the UI vp and
|
||||
* statusbar stuff
|
||||
*/
|
||||
void viewportmanager_init(void) INIT_ATTR;
|
||||
|
||||
#ifdef HAVE_LCD_BITMAP
|
||||
void viewportmanager_theme_enable(enum screen_type screen, bool enable,
|
||||
struct viewport *viewport);
|
||||
|
|
|
@ -157,7 +157,12 @@ int get_cpu_boost_counter(void);
|
|||
((type *)((intptr_t)(memberptr) - OFFSETOF(type, membername)))
|
||||
|
||||
/* returns index of first set bit or 32 if no bits are set */
|
||||
#if defined(CPU_ARM) && ARM_ARCH >= 5 && !defined(__thumb__)
|
||||
static inline int find_first_set_bit(uint32_t val)
|
||||
{ return LIKELY(val) ? __builtin_ctz(val) : 32; }
|
||||
#else
|
||||
int find_first_set_bit(uint32_t val);
|
||||
#endif
|
||||
|
||||
static inline __attribute__((always_inline))
|
||||
uint32_t isolate_first_bit(uint32_t val)
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# $Id$
|
||||
#
|
||||
|
||||
GCCOPTS=-g -D__PCTOOL__ -DCHECKWPS $(TARGET)
|
||||
GCCOPTS=-std=gnu99 -g -D__PCTOOL__ -DCHECKWPS $(TARGET)
|
||||
|
||||
CHECKWPS_SRC = $(call preprocess, $(TOOLSDIR)/checkwps/SOURCES)
|
||||
CHECKWPS_OBJ = $(call c2obj,$(CHECKWPS_SRC))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue