stat: make add lat percentile functions inline