Lines Matching refs:ratio
131 int32_t ratio = location * 8 / range; in destinationLocation() local
132 if (ratio < 0) return "N/A"; in destinationLocation()
135 if (ratio > 6) return "3/4"; in destinationLocation()
137 return locationArray[ratio & ~1]; in destinationLocation()
139 if (ratio > 7) return "7/8"; in destinationLocation()
140 return locationArray[ratio]; in destinationLocation()
145 int32_t ratio = size * 8 / range; in destinationSize() local
146 if (ratio < 0) return "N/A"; in destinationSize()
149 if (ratio > 6) return "1"; in destinationSize()
151 return sizeArray[ratio | 1]; in destinationSize()
153 if (ratio > 7) return "1"; in destinationSize()
154 return sizeArray[ratio]; in destinationSize()