mirror of
https://git.mirrors.martin98.com/https://github.com/google/draco
synced 2025-08-12 03:28:58 +08:00
Fix build on Android with gnustl (#114)
This commit is contained in:
parent
8df1bcd1b6
commit
45712ff807
@ -21,7 +21,7 @@ int64_t ComputeShannonEntropy(const uint32_t *symbols, int num_symbols,
|
|||||||
// Compute Shannon entropy for the symbol.
|
// Compute Shannon entropy for the symbol.
|
||||||
total_bits +=
|
total_bits +=
|
||||||
symbol_frequencies[i] *
|
symbol_frequencies[i] *
|
||||||
std::log2(static_cast<double>(symbol_frequencies[i]) / num_symbols_d);
|
log2(static_cast<double>(symbol_frequencies[i]) / num_symbols_d);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (out_num_unique_symbols)
|
if (out_num_unique_symbols)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user