Provide a conversion function from tmv to double.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>master
parent
845e947bcb
commit
95598b4fde
5
tmv.h
5
tmv.h
|
@ -71,6 +71,11 @@ static inline tmv_t correction_to_tmv(Integer64 c)
|
||||||
return c >> 16;
|
return c >> 16;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline double tmv_dbl(tmv_t x)
|
||||||
|
{
|
||||||
|
return (double) x;
|
||||||
|
}
|
||||||
|
|
||||||
static inline TimeInterval tmv_to_TimeInterval(tmv_t x)
|
static inline TimeInterval tmv_to_TimeInterval(tmv_t x)
|
||||||
{
|
{
|
||||||
return x << 16;
|
return x << 16;
|
||||||
|
|
Loading…
Reference in New Issue