[compiler-rt] [scudo] Add utilization percentages for stats. (PR #75101)

Christopher Ferris via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 11 13:54:11 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,
----------------
cferris1000 wrote:

Yeah, I was hoping I could use std::pair, but I think that would be a bad idea. And adding our own definition feels like a lot of work for a single case that's not necessary.

https://github.com/llvm/llvm-project/pull/75101


More information about the llvm-commits mailing list