| Rev | Author | Line No. | Line |
|---|---|---|---|
| 178 | kaklik | 1 | #include "image_funcs.h" |
| 2 | |||
| 3 | namespace mimas { |
||
| 4 | |||
| 5 | template<> |
||
| 6 | float _mul2< float >( const float &x ) |
||
| 7 | { |
||
| 8 | return 2.0f * x; |
||
| 9 | } |
||
| 10 | |||
| 11 | template<> |
||
| 12 | double _mul2< double >( const double &x ) |
||
| 13 | { |
||
| 14 | return 2.0 * x; |
||
| 15 | } |
||
| 16 | |||
| 17 | template<> |
||
| 18 | int _mul2< int >( const int &x ) |
||
| 19 | { |
||
| 20 | return x << 1; |
||
| 21 | } |
||
| 22 | |||
| 23 | template<> |
||
| 24 | short int _mul2< short int >( const short int &x ) |
||
| 25 | { |
||
| 26 | return x << 1; |
||
| 27 | } |
||
| 28 | |||
| 29 | }; |