/[hurd]/hurd-l4/libl4/l4/compat/types.h
ViewVC logotype

Diff of /hurd-l4/libl4/l4/compat/types.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by marcus, Tue Sep 9 21:43:12 2003 UTC revision 1.3 by marcus, Tue Sep 9 22:07:50 2003 UTC
# Line 42  typedef _L4_RAW Line 42  typedef _L4_RAW
42  static inline L4_Clock_t                                                \  static inline L4_Clock_t                                                \
43  L4_Clock ## name ## Usec (const L4_Clock_t clock, const L4_Word64_t usec) \  L4_Clock ## name ## Usec (const L4_Clock_t clock, const L4_Word64_t usec) \
44  {                                                                       \  {                                                                       \
45    return ((L4_Clock_t) { .clock = clock.clock op usec });               \    L4_Clock_t new_clock;                                                 \
46      new_clock.clock = clock.clock op usec;                                \
47      return new_clock;                                                     \
48  }  }
49    
50  _L4_CLOCK_OP(Add, +)  _L4_CLOCK_OP(Add, +)
# Line 59  L4_Clock ## name (const L4_Clock_t clock Line 61  L4_Clock ## name (const L4_Clock_t clock
61    
62  _L4_CLOCK_OP(Earlier, <)  _L4_CLOCK_OP(Earlier, <)
63  _L4_CLOCK_OP(Later, >)  _L4_CLOCK_OP(Later, >)
64  _L4_CLOCK_OP(Equal, =)  _L4_CLOCK_OP(Equal, ==)
65  _L4_CLOCK_OP(NotEqual, !=)  _L4_CLOCK_OP(NotEqual, !=)
66  #undef _L4_CLOCK_OP  #undef _L4_CLOCK_OP
67    
# Line 70  _L4_CLOCK_OP(NotEqual, !=) Line 72  _L4_CLOCK_OP(NotEqual, !=)
72  static inline L4_Clock_t                                                \  static inline L4_Clock_t                                                \
73  operator ## op ## (const L4_Clock_t& clock, const type usec)            \  operator ## op ## (const L4_Clock_t& clock, const type usec)            \
74  {                                                                       \  {                                                                       \
75    return ((L4_Clock_t) { .clock = clock.clock op usec });               \    L4_Clock_t new_clock;                                                 \
76      new_clock.clock = clock op usec;                                      \
77      return new_clock;                                                     \
78  }  }
79    
80  _L4_CLOCK_OP(+, int)  _L4_CLOCK_OP(+, int)

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26