diff options
Diffstat (limited to 'common')
| -rw-r--r-- | common/frac.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
