Bug 646321. qcms: Avoid implicit conversion to double. r=bjacob
The double literal will cause us to unnecessarily convert to double.
--- a/gfx/qcms/qcmsint.h
+++ b/gfx/qcms/qcmsint.h
@@ -138,17 +138,17 @@ struct _qcms_profile {
};
#ifdef _MSC_VER
#define inline _inline
#endif
static inline float s15Fixed16Number_to_float(s15Fixed16Number a)
{
- return ((int32_t)a)/65536.;
+ return ((int32_t)a)/65536.f;
}
static inline s15Fixed16Number double_to_s15Fixed16Number(double v)
{
return (int32_t)(v*65536);
}
void precache_release(struct precache_output *p);