mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-04-01 12:43:47 +00:00
libclc: Fix abs_diff builtin integer function
Patch by: Aaron Watry llvm-svn: 184993
This commit is contained in:
parent
ec87fb0b0c
commit
cd88a4ebb6
@ -4,6 +4,7 @@ geometric/dot.cl
|
||||
geometric/length.cl
|
||||
geometric/normalize.cl
|
||||
integer/abs.cl
|
||||
integer/abs_diff.cl
|
||||
integer/add_sat.cl
|
||||
integer/add_sat.ll
|
||||
integer/add_sat_impl.ll
|
||||
|
@ -1,3 +1,3 @@
|
||||
_CLC_OVERLOAD _CLC_DEF UGENTYPE abs_diff(GENTYPE x) {
|
||||
_CLC_OVERLOAD _CLC_DEF UGENTYPE abs_diff(GENTYPE x, GENTYPE y) {
|
||||
return __builtin_astype((GENTYPE)(x > y ? x-y : y-x), UGENTYPE);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user