ia64/xen-unstable

changeset 16205:b0a7612ae372

minios: Make NSEC_TO_USEC/NSEC_TO_SEC macros expression safe.
From: Samuel Thibault <samuel.thibault@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
author Keir Fraser <keir@xensource.com>
date Wed Oct 24 14:35:19 2007 +0100 (2007-10-24)
parents eb786950169c
children 7b5b65fbaf61
files extras/mini-os/include/time.h
line diff
     1.1 --- a/extras/mini-os/include/time.h	Wed Oct 24 14:10:01 2007 +0100
     1.2 +++ b/extras/mini-os/include/time.h	Wed Oct 24 14:35:19 2007 +0100
     1.3 @@ -37,8 +37,8 @@ typedef s64 s_time_t;
     1.4  #define MICROSECS(_us)          (((s_time_t)(_us)) * 1000UL )
     1.5  #define Time_Max                ((s_time_t) 0x7fffffffffffffffLL)
     1.6  #define FOREVER                 Time_Max
     1.7 -#define NSEC_TO_USEC(_nsec)     (_nsec / 1000UL)
     1.8 -#define NSEC_TO_SEC(_nsec)      (_nsec / 1000000000ULL)
     1.9 +#define NSEC_TO_USEC(_nsec)     ((_nsec) / 1000UL)
    1.10 +#define NSEC_TO_SEC(_nsec)      ((_nsec) / 1000000000ULL)
    1.11  
    1.12  /* wall clock time  */
    1.13  typedef long time_t;