From: Enlightenment S. <no-...@en...> - 2008-12-23 17:23:40
|
Log: Use float instead of double. Author: cedric Date: 2008-12-23 09:23:35 -0800 (Tue, 23 Dec 2008) New Revision: 38292 Modified: trunk/eina/src/include/eina_f16p16.h Modified: trunk/eina/src/include/eina_f16p16.h =================================================================== --- trunk/eina/src/include/eina_f16p16.h 2008-12-23 14:05:56 UTC (rev 38291) +++ trunk/eina/src/include/eina_f16p16.h 2008-12-23 17:23:35 UTC (rev 38292) @@ -50,7 +50,7 @@ static inline Eina_F16p16 eina_f16p16_float_from(float v) { Eina_F16p16 r; - r = (Eina_F16p16)(v * 65536.0 + (v < 0 ? -0.5 : 0.5)); + r = (Eina_F16p16)(v * 65536.0f + (v < 0 ? -0.5f : 0.5f)); return r; } /** @@ -60,7 +60,7 @@ static inline float eina_f16p16_float_to(Eina_F16p16 v) { float r; - r = v / 65536.0; + r = v / 65536.0f; return r; } /** |