From 18d49b357a315d77e417d4a5c3942ec0d22997b8 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Mon, 18 Mar 2013 20:07:09 +0100 Subject: digital/avr: small hacks to use AVR modules on ARM --- digital/avr/modules/math/fixed/fixed.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'digital/avr/modules/math/fixed') diff --git a/digital/avr/modules/math/fixed/fixed.h b/digital/avr/modules/math/fixed/fixed.h index 89aa5ba4..4f909a61 100644 --- a/digital/avr/modules/math/fixed/fixed.h +++ b/digital/avr/modules/math/fixed/fixed.h @@ -37,7 +37,7 @@ * * Angles are mapped from [0, 2pi) to [0,1). */ -#ifndef HOST +#ifdef TARGET_avr /* Multiply f8.24 by f8.24, return f8.24. */ #define fixed_mul_f824(a, b) ({ \ @@ -51,7 +51,7 @@ fixed_mul_f824_asm (uint16_t dummy, int32_t a, int32_t b); int32_t fixed_div_f824 (int32_t a, int32_t b); -#else /* HOST */ +#else /* !TARGET_avr */ /** Multiply f8.24 by f8.24, return f8.24. */ extern inline -- cgit v1.2.3