we use C for the ppc build

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21433 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2007-06-17 12:15:30 +00:00
parent 9cc679bb80
commit d205506439
1 changed files with 9 additions and 1 deletions

View File

@ -21,6 +21,8 @@ constrain(float& value, float min, float max)
value = max;
}
#ifdef __INTEL__
// constrain_int32_0_255_asm
inline int32
constrain_int32_0_255_asm(int32 value) {
@ -36,13 +38,19 @@ constrain_int32_0_255_asm(int32 value) {
return value;
}
#define constrain_int32_0_255 constrain_int32_0_255_asm
#else
inline int32
constrain_int32_0_255_c(int32 value)
{
return max_c(0, min_c(255, value));
}
#define constrain_int32_0_255 constrain_int32_0_255_asm
#define constrain_int32_0_255 constrain_int32_0_255_c
#endif
// rect_to_int
inline void