0
0
mirror of https://github.com/llvm/llvm-project.git synced 2025-04-21 09:46:49 +00:00

libclc: add half version of 'sign' ()

This commit is contained in:
Romaric Jodin 2024-07-22 12:08:56 +02:00 committed by GitHub
parent 16e05919d9
commit 46223b5eae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -26,3 +26,12 @@ SIGN(double, )
_CLC_UNARY_VECTORIZE(_CLC_OVERLOAD _CLC_DEF, double, sign, double)
#endif
#ifdef cl_khr_fp16
#pragma OPENCL EXTENSION cl_khr_fp16 : enable
SIGN(half,)
_CLC_UNARY_VECTORIZE(_CLC_OVERLOAD _CLC_DEF, half, sign, half)
#endif