Provide a conversion function from tmv to double.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
master
Richard Cochran 2012-08-30 18:16:41 +02:00
parent 845e947bcb
commit 95598b4fde
1 changed files with 5 additions and 0 deletions

5
tmv.h
View File

@ -71,6 +71,11 @@ static inline tmv_t correction_to_tmv(Integer64 c)
return c >> 16;
}
static inline double tmv_dbl(tmv_t x)
{
return (double) x;
}
static inline TimeInterval tmv_to_TimeInterval(tmv_t x)
{
return x << 16;