From 5fd9471c156ca054fbe5fc5d2b002f94645f473c Mon Sep 17 00:00:00 2001 From: Nils Wallménius Date: Tue, 24 May 2011 10:44:12 +0000 Subject: FS#12120. Convert FRACMUL macros into inline functions and fix typecasting for 64 bit platforms so that sims produce the same results as targets. Tweak the cf inline asm to not require an immediate value but add a FORCE_INLINE attribute to one of the cf functions to make sure it gets inlined as that saves both codesize and cycles. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29921 a1c6a512-1295-4272-9138-f99709370657 --- firmware/include/gcc_extensions.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'firmware') diff --git a/firmware/include/gcc_extensions.h b/firmware/include/gcc_extensions.h index f7580f6ddc..7109edaaf6 100644 --- a/firmware/include/gcc_extensions.h +++ b/firmware/include/gcc_extensions.h @@ -50,4 +50,11 @@ #define NORETURN_ATTR #endif + +#if defined(__GNUC__) +#define FORCE_INLINE inline __attribute__((always_inline)) +#else +#define FORCE_INLINE inline +#endif + #endif /* _GCC_EXTENSIONS_H_ */ -- cgit v1.2.3