diff options
author | Timo Rothenpieler <timo@rothenpieler.org> | 2020-11-04 01:43:00 +0100 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2020-11-04 01:43:21 +0100 |
commit | cfdddec0c832a67da8a0081a32ae2c7127ce2368 (patch) | |
tree | 92a2095d106c49c54b0c8c3181a1ad0bd3daca82 /compat/cuda | |
parent | 98d3f2359853f1908092b6244f429ced838f493b (diff) | |
download | ffmpeg-cfdddec0c832a67da8a0081a32ae2c7127ce2368.tar.gz |
avfilter/scale_cuda: add lanczos algorithm
Diffstat (limited to 'compat/cuda')
-rw-r--r-- | compat/cuda/cuda_runtime.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compat/cuda/cuda_runtime.h b/compat/cuda/cuda_runtime.h index 353efcf5f9..590c2d1bb0 100644 --- a/compat/cuda/cuda_runtime.h +++ b/compat/cuda/cuda_runtime.h @@ -182,4 +182,7 @@ static inline __device__ float fabsf(float a) { return __builtin_fabsf(a); } static inline __device__ float fabs(float a) { return __builtin_fabsf(a); } static inline __device__ double fabs(double a) { return __builtin_fabs(a); } +static inline __device__ float __sinf(float a) { return __nvvm_sin_approx_f(a); } +static inline __device__ float __cosf(float a) { return __nvvm_cos_approx_f(a); } + #endif /* COMPAT_CUDA_CUDA_RUNTIME_H */ |