Home
last modified time | relevance | path

Searched refs:intCoefficient (Results 1 – 1 of 1) sorted by relevance

/haiku/src/add-ons/accelerants/intel_extreme/
H A Doverlay.cpp66 int32 intCoefficient, res; in split_coefficient() local
70 if ((intCoefficient = (int)(absCoefficient * 4 * maxValue + 0.5)) in split_coefficient()
73 splitCoefficient.mantissa = intCoefficient << res; in split_coefficient()
74 coefficient = (double)intCoefficient / (double)(4 * maxValue); in split_coefficient()
75 } else if ((intCoefficient = (int)(absCoefficient * 2 * maxValue + 0.5)) in split_coefficient()
78 splitCoefficient.mantissa = intCoefficient << res; in split_coefficient()
79 coefficient = (double)intCoefficient / (double)(2 * maxValue); in split_coefficient()
80 } else if ((intCoefficient = (int)(absCoefficient * maxValue + 0.5)) in split_coefficient()
83 splitCoefficient.mantissa = intCoefficient << res; in split_coefficient()
84 coefficient = (double)intCoefficient / (double)maxValue; in split_coefficient()
[all …]