| 191 | template<int Limit> struct saturation |
| 192 | { |
| 193 | AGG_INLINE static int iround(double v) |
| 194 | { |
| 195 | if(v < double(-Limit)) return -Limit; |
| 196 | if(v > double( Limit)) return Limit; |
| 197 | return mapserver::iround(v); |
| 198 | } |
| 199 | }; |
| 200 | |
| 201 | //------------------------------------------------------------------mul_one |