Lines Matching refs:maxf
224 static const float maxf = static_cast<float>(max); in unorm() local
236 return static_cast<unsigned int>(maxf * x + 0.5f); in unorm()
245 static const float maxf = static_cast<float>(max); in snorm() local
256 return static_cast<int>(maxf * x + 0.5f); in snorm()
267 return static_cast<int>(maxf * x - 0.5f) & range; in snorm()
276 static const float maxf = static_cast<float>(max); in ucast() local
278 if(x >= maxf) in ucast()
297 static const float maxf = static_cast<float>(max); in scast() local
302 if(x >= maxf) in scast()
308 return static_cast<int>(maxf * x + 0.5f); in scast()
319 return static_cast<int>(maxf * x - 0.5f) & range; in scast()