~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to include/my_pthread.h

MergedĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
218
218
#define set_timespec_nsec(ABSTIME,NSEC) \
219
219
{ \
220
220
  ulonglong now= my_getsystime() + (NSEC/100); \
221
 
  (ABSTIME).ts_sec=  (now / ULL(10000000)); \
222
 
  (ABSTIME).ts_nsec= (now % ULL(10000000) * 100 + ((NSEC) % 100)); \
 
221
  (ABSTIME).ts_sec=  (now / 10000000ULL); \
 
222
  (ABSTIME).ts_nsec= (now % 10000000ULL * 100 + ((NSEC) % 100)); \
223
223
}
224
224
#endif /* !set_timespec_nsec */
225
225
#else
236
236
#define set_timespec_nsec(ABSTIME,NSEC) \
237
237
{\
238
238
  ulonglong now= my_getsystime() + (NSEC/100); \
239
 
  (ABSTIME).tv_sec=  (time_t) (now / ULL(10000000));                  \
240
 
  (ABSTIME).tv_nsec= (long) (now % ULL(10000000) * 100 + ((NSEC) % 100)); \
 
239
  (ABSTIME).tv_sec=  (time_t) (now / 10000000ULL);                  \
 
240
  (ABSTIME).tv_nsec= (long) (now % 10000000ULL * 100 + ((NSEC) % 100)); \
241
241
}
242
242
#endif /* !set_timespec_nsec */
243
243
#endif /* HAVE_TIMESPEC_TS_SEC */