repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[SampleProfileLoader] Fix integer overflow in generateMDProfMetadata (#90217)
[llvm-project.git]
/
libclc
/
generic
/
lib
/
shared
/
max.inc
blob
75a24c077d1ab563428fd67d805164acdf6570c9
1
_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE max(__CLC_GENTYPE a, __CLC_GENTYPE b) {
2
return (a > b ? a : b);
3
}
4
5
#ifndef __CLC_SCALAR
6
_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE max(__CLC_GENTYPE a, __CLC_SCALAR_GENTYPE b) {
7
return (a > (__CLC_GENTYPE)b ? a : (__CLC_GENTYPE)b);
8
}
9
#endif