source: rtems/c/src/lib/libcpu/i386/byteorder.h @ c193baad

4.104.115
Last change on this file since c193baad was 5acb4d0, checked in by Ralf Corsepius <ralf.corsepius@…>, on 11/04/05 at 17:50:34

New.

  • Property mode set to 100644
File size: 428 bytes
Line 
1/*
2 *  The license and distribution terms for this file may be
3 *  found in found in the file LICENSE in this distribution or at
4 *  http://www.rtems.com/license/LICENSE.
5 *
6 * $Id$
7 */
8
9#ifndef _LIBCPU_BYTEORDER_H
10#define _LIBCPU_BYTEORDER_H
11
12static inline void st_le32(volatile uint32_t   *addr, uint32_t   value)
13{
14  *(addr)=value ;
15}
16
17static inline uint32_t   ld_le32(volatile uint32_t   *addr)
18{
19  return(*addr);
20}
21
22#endif
Note: See TracBrowser for help on using the repository browser.