aboutsummaryrefslogtreecommitdiffstats
path: root/compat/cuda
diff options
context:
space:
mode:
authorTimo Rothenpieler <timo@rothenpieler.org>2020-11-04 01:43:00 +0100
committerTimo Rothenpieler <timo@rothenpieler.org>2020-11-04 01:43:21 +0100
commitcfdddec0c832a67da8a0081a32ae2c7127ce2368 (patch)
tree92a2095d106c49c54b0c8c3181a1ad0bd3daca82 /compat/cuda
parent98d3f2359853f1908092b6244f429ced838f493b (diff)
downloadffmpeg-cfdddec0c832a67da8a0081a32ae2c7127ce2368.tar.gz
avfilter/scale_cuda: add lanczos algorithm
Diffstat (limited to 'compat/cuda')
-rw-r--r--compat/cuda/cuda_runtime.h3
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 */