Searched defs:FixedPtCast (Results 1 – 3 of 3) sorted by relevance
2853 template<typename ST, typename DT, int bits> struct FixedPtCast struct2855 typedef ST type1;2856 typedef DT rtype;2857 enum { SHIFT = bits, DELTA = 1 << (bits-1) };2859 DT operator()(ST val) const { return saturate_cast<DT>((val + DELTA)>>SHIFT); } in operator ()()
311 template<typename ST, typename DT, int bits> struct FixedPtCast struct313 typedef ST type1;314 typedef DT rtype;315 enum { SHIFT = bits, DELTA = 1 << (bits-1) };317 DT operator()(ST val) const { return saturate_cast<DT>((val + DELTA)>>SHIFT); } in operator ()()
957 template<typename ST, typename DT, int bits> struct FixedPtCast struct959 typedef ST type1;960 typedef DT rtype;961 enum { SHIFT = bits, DELTA = 1 << (bits-1) };963 DT operator()(ST val) const { return saturate_cast<DT>((val + DELTA)>>SHIFT); } in operator ()()