From 95598b4fded12e6a5b5f61b13608027466e4076f Mon Sep 17 00:00:00 2001 From: Richard Cochran Date: Thu, 30 Aug 2012 18:16:41 +0200 Subject: [PATCH] Provide a conversion function from tmv to double. Signed-off-by: Richard Cochran --- tmv.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tmv.h b/tmv.h index bf48d09..2c560a0 100644 --- a/tmv.h +++ b/tmv.h @@ -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;