added support for "d"-suffix

This commit is contained in:
egaburov
2013-09-16 15:54:32 +02:00
parent ec5cbb8117
commit e2a91e6de5
3 changed files with 39 additions and 4 deletions

View File

@@ -1559,6 +1559,18 @@ static inline uniform float clamp(uniform float v, uniform float low, uniform fl
return min(max(v, low), high);
}
// double
__declspec(safe,cost2)
static inline double clamp(double v, double low, double high) {
return min(max(v, low), high);
}
__declspec(safe,cost2)
static inline uniform double clamp(uniform double v, uniform double low, uniform double high) {
return min(max(v, low), high);
}
// int8
__declspec(safe,cost2)