[rtsan] Remove mkfifoat interceptor (#116997)
[llvm-project.git] / libclc / clc / lib / generic / shared / clc_clamp.inc
blobda67cd2ad69dbad8cebf68dafe9f7352e48caabd
1 _CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE __clc_clamp(__CLC_GENTYPE x,
2                                                  __CLC_GENTYPE y,
3                                                  __CLC_GENTYPE z) {
4   return (x > z ? z : (x < y ? y : x));
7 #ifndef __CLC_SCALAR
8 _CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE __clc_clamp(__CLC_GENTYPE x,
9                                                  __CLC_SCALAR_GENTYPE y,
10                                                  __CLC_SCALAR_GENTYPE z) {
11   return (x > (__CLC_GENTYPE)z ? (__CLC_GENTYPE)z
12                                : (x < (__CLC_GENTYPE)y ? (__CLC_GENTYPE)y : x));
14 #endif