Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

workarounds.C

Go to the documentation of this file.
00001 #include <math.h>
00002 #include "workarounds.h"
00003 
00004 
00005 
00006 
00007 
00008 
00009 // GCC 3.0 workarounds
00010 
00011 
00012 
00013 
00014 
00015 
00016 void Workarounds::clamp(int32_t &x, int32_t y, int32_t z)
00017 {
00018         if(x < y) x = y;
00019         else
00020         if(x > z) x = z;
00021 }
00022 
00023 void Workarounds::clamp(int64_t &x, int64_t y, int64_t z)
00024 {
00025         if(x < y) x = y;
00026         else
00027         if(x > z) x = z;
00028 }
00029 
00030 void Workarounds::clamp(float &x, float y, float z)
00031 {
00032         if(x < y) x = y;
00033         else
00034         if(x > z) x = z;
00035 }
00036 
00037 void Workarounds::clamp(double &x, double y, double z)
00038 {
00039         if(x < y) x = y;
00040         else
00041         if(x > z) x = z;
00042 }
00043 
00044 float Workarounds::pow(float x, float y)
00045 {
00046         return powf(x, y);
00047 }
00048 

Generated on Sun Jan 8 13:39:02 2006 for Cinelerra-svn by  doxygen 1.4.4