OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [exec/] [rtems/] [inline/] [rtems/] [rtems/] [support.inl] - Blame information for rev 173

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*  support.inl
2
 *
3
 *  This include file contains the static inline implementation of all
4
 *  of the inlined routines specific to the RTEMS API.
5
 *
6
 *  COPYRIGHT (c) 1989-1999.
7
 *  On-Line Applications Research Corporation (OAR).
8
 *
9
 *  The license and distribution terms for this file may be
10
 *  found in the file LICENSE in this distribution or at
11
 *  http://www.OARcorp.com/rtems/license.html.
12
 *
13
 *  $Id: support.inl,v 1.2 2001-09-27 11:59:18 chris Exp $
14
 */
15
 
16
#ifndef __RTEMS_SUPPORT_inl
17
#define __RTEMS_SUPPORT_inl
18
 
19
/*PAGE
20
 *
21
 *  rtems_is_name_valid
22
 *
23
 *  DESCRIPTION:
24
 *
25
 *  This function returns TRUE if the name is valid, and FALSE otherwise.
26
 */
27
 
28
RTEMS_INLINE_ROUTINE rtems_boolean rtems_is_name_valid (
29
  rtems_name name
30
)
31
{
32
  return ( name != 0 );
33
}
34
 
35
/*PAGE
36
 *
37
 *  rtems_name_to_characters
38
 *
39
 *  DESCRIPTION:
40
 *
41
 *  This function breaks the object name into the four component
42
 *  characters C1, C2, C3, and C4.
43
 */
44
 
45
RTEMS_INLINE_ROUTINE void rtems_name_to_characters(
46
  rtems_name    name,
47
  char         *c1,
48
  char         *c2,
49
  char         *c3,
50
  char         *c4
51
)
52
{
53
  *c1 = (name >> 24) & 0xff;
54
  *c2 = (name >> 16) & 0xff;
55
  *c3 = (name >> 8) & 0xff;
56
  *c4 =  name & 0xff;
57
}
58
 
59
#endif
60
/* end of include file */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.