Run through Clang's performance-type-promotion-in-math-fn
Only changed log2 to log2f. Rightly so.
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user