+ Fix the precision when multiplying two fixed point numbers

SVN revision: 39307
This commit is contained in:
Jorge Luis Zapata Muga 2009-03-01 12:35:30 +00:00
parent 87d5d0a037
commit 07235befaa
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ static inline Eina_F16p16 eina_f16p16_sub(Eina_F16p16 a, Eina_F16p16 b)
*/
static inline Eina_F16p16 eina_f16p16_mul(Eina_F16p16 a, Eina_F16p16 b)
{
return (a * b) >> 16;
return ((int64_t)a * (int64_t)b) >> 16;
}
/**
* To be documented