Searched refs:sign_of_val (Results 1 – 1 of 1) sorted by relevance
46 const int sign_of_val = 2 * ( val >= 0. ) - 1; in to_withsign() local47 const int rounded_abs_val = .5 + sign_of_val * val; in to_withsign()48 const T newval = sign_of_val * rounded_abs_val; in to_withsign()112 const int sign_of_val = 2 * ( val >= 0. ) - 1; in bilinear_withsign() local114 const int rounded_abs_val = .5 + sign_of_val * val; in bilinear_withsign()116 const T newval = sign_of_val * rounded_abs_val; in bilinear_withsign()