Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 173524ac authored by Ivan Lozano's avatar Ivan Lozano Committed by Android (Google) Code Review
Browse files

Merge "Ignore signed integer overflow in logRound."

parents 2d887649 bb4b8b58
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -230,6 +230,7 @@ inline int numberWidth(double number, int leftPadding) {
}

// rounds value to precision based on log-distance from mean
__attribute__((no_sanitize("signed-integer-overflow")))
inline double logRound(double x, double mean) {
    // Larger values decrease range of high resolution and prevent overflow
    // of a histogram on the console.