Run through Clang's performance-type-promotion-in-math-fn

Only changed log2 to log2f. Rightly so.
This commit is contained in:
Rosen Penev
2019-08-03 22:37:38 -07:00
parent dca1a86315
commit df618e861e
+1 -1
View File
@@ -794,7 +794,7 @@ float get_entropy (const u8 *buf, const int len)
float w = (float) r / len;
entropy += -w * log2 (w);
entropy += -w * log2f (w);
}
return entropy;