[compiler-rt] [scudo] Add utilization percentages for stats. (PR #75101)
Christopher Ferris via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 11 15:13:57 PST 2023
================
@@ -112,6 +112,21 @@ template <typename T> inline void shuffle(T *A, u32 N, u32 *RandState) {
*RandState = State;
}
+inline void computePercentage(uptr Numerator, uptr Denominator, uptr *Integral,
+ uptr *Fractional) {
+ constexpr uptr Digits = 100;
+ if (Denominator == 0) {
----------------
cferris1000 wrote:
Set to 100, and modified the two locations that use it to reserve enough space for that 100%.
https://github.com/llvm/llvm-project/pull/75101
More information about the llvm-commits
mailing list