forked from Imagelibrary/rtems
Script does what is expected and tries to do it as smartly as possible. + remove occurrences of two blank comment lines next to each other after Id string line removed. + remove entire comment blocks which only exited to contain CVS Ids + If the processing left a blank line at the top of a file, it was removed.
32 lines
586 B
C
32 lines
586 B
C
/*
|
|
* The license and distribution terms for this file may be
|
|
* found in the file LICENSE in this distribution or at
|
|
* http://www.rtems.com/license/LICENSE.
|
|
*/
|
|
|
|
#ifndef _LIBCPU_BYTEORDER_H
|
|
#define _LIBCPU_BYTEORDER_H
|
|
|
|
static inline void st_le32(volatile uint32_t *addr, uint32_t value)
|
|
{
|
|
*(addr)=value ;
|
|
}
|
|
|
|
static inline uint32_t ld_le32(volatile uint32_t *addr)
|
|
{
|
|
return(*addr);
|
|
}
|
|
|
|
static inline void st_le16(volatile uint16_t *addr, uint16_t value)
|
|
{
|
|
*(addr)=value ;
|
|
}
|
|
|
|
static inline uint16_t ld_le16(volatile uint16_t *addr)
|
|
{
|
|
return(*addr);
|
|
}
|
|
|
|
|
|
#endif
|