r553: Modern gccs require __attribute__((used)) for variables used only in assembly.
[cinelerra_cv/mob.git] / cinelerra / workarounds.C
blob26333b8a11b45575f690f9e1df9c7ec5642b33cb
1 #include "workarounds.h"
8 // GCC 3.0 workarounds
15 void Workarounds::clamp(int32_t &x, int32_t y, int32_t z)
17         if(x < y) x = y;
18         else
19         if(x > z) x = z;
22 void Workarounds::clamp(int64_t &x, int64_t y, int64_t z)
24         if(x < y) x = y;
25         else
26         if(x > z) x = z;
29 void Workarounds::clamp(float &x, float y, float z)
31         if(x < y) x = y;
32         else
33         if(x > z) x = z;
36 void Workarounds::clamp(double &x, double y, double z)
38         if(x < y) x = y;
39         else
40         if(x > z) x = z;