Stick to CC_INLINE.

This commit is contained in:
oliverschmidt 2008-02-28 21:25:34 +00:00
parent 1d3bae48dd
commit edbae75705

View file

@ -28,7 +28,7 @@
* *
* This file is part of the Contiki operating system. * This file is part of the Contiki operating system.
* *
* $Id: chameleon-bitopt.c,v 1.1 2008/02/25 02:14:34 adamdunkels Exp $ * $Id: chameleon-bitopt.c,v 1.2 2008/02/28 21:25:34 oliverschmidt Exp $
*/ */
/** /**
@ -60,7 +60,7 @@ static const uint8_t bitmask[9] = { 0x00, 0x80, 0xc0, 0xe0, 0xf0,
#endif #endif
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
uint8_t inline uint8_t CC_INLINE
get_bits_in_byte(uint8_t *from, int bitpos, int vallen) get_bits_in_byte(uint8_t *from, int bitpos, int vallen)
{ {
uint16_t shifted_val; uint16_t shifted_val;
@ -132,7 +132,7 @@ header_size(const struct rimebuf_attrlist *a)
return size; return size;
} }
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
void inline void CC_INLINE
set_bits_in_byte(uint8_t *target, int bitpos, uint8_t val, int vallen) set_bits_in_byte(uint8_t *target, int bitpos, uint8_t val, int vallen)
{ {
unsigned short shifted_val; unsigned short shifted_val;