From d35861fc4ae5f23126dd7b1a0e512f79b64ff481 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 28 Jun 2007 20:09:58 +0000 Subject: Changed GOB to use common/frac.h svn-id: r27763 --- common/frac.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'common') diff --git a/common/frac.h b/common/frac.h index d4df455c32..1c2c622a2c 100644 --- a/common/frac.h +++ b/common/frac.h @@ -46,6 +46,7 @@ enum { */ typedef int32 frac_t; -inline frac_t intToFrac(int16 value) { return value << FRAC_BITS; } +inline frac_t intToFrac(int16 value) { return value << FRAC_BITS; } +inline int16 fracToInt(frac_t value) { return value >> FRAC_BITS; } #endif -- cgit v1.2.3