1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-17 15:26:00 +08:00

cudev types long, ulong

This commit is contained in:
Dmitry Kurtaev
2025-09-16 21:15:47 +03:00
parent 5c7396986a
commit 9bff619bee
2 changed files with 7 additions and 1 deletions

View File

@@ -62,6 +62,8 @@ template <typename T> __device__ __forceinline__ T saturate_cast(ushort v) { ret
template <typename T> __device__ __forceinline__ T saturate_cast(short v) { return T(v); }
template <typename T> __device__ __forceinline__ T saturate_cast(uint v) { return T(v); }
template <typename T> __device__ __forceinline__ T saturate_cast(int v) { return T(v); }
template <typename T> __device__ __forceinline__ T saturate_cast(signed long v) { return T(v); }
template <typename T> __device__ __forceinline__ T saturate_cast(unsigned long v) { return T(v); }
template <typename T> __device__ __forceinline__ T saturate_cast(signed long long v) { return T(v); }
template <typename T> __device__ __forceinline__ T saturate_cast(unsigned long long v) { return T(v); }
template <typename T> __device__ __forceinline__ T saturate_cast(float v) { return T(v); }

View File

@@ -50,7 +50,7 @@
#include "opencv2/core/cuda/cuda_compat.hpp"
namespace cv {
using cv::cuda::device::compat::double4;
using cv::cuda::device::compat::make_double4;
@@ -76,6 +76,8 @@ CV_CUDEV_MAKE_VEC_INST(int)
CV_CUDEV_MAKE_VEC_INST(uint)
CV_CUDEV_MAKE_VEC_INST(float)
CV_CUDEV_MAKE_VEC_INST(double)
CV_CUDEV_MAKE_VEC_INST(long)
CV_CUDEV_MAKE_VEC_INST(ulong)
#undef CV_CUDEV_MAKE_VEC_INST
@@ -142,6 +144,8 @@ CV_CUDEV_VEC_TRAITS_INST(int)
CV_CUDEV_VEC_TRAITS_INST(uint)
CV_CUDEV_VEC_TRAITS_INST(float)
CV_CUDEV_VEC_TRAITS_INST(double)
CV_CUDEV_VEC_TRAITS_INST(long)
CV_CUDEV_VEC_TRAITS_INST(ulong)
#undef CV_CUDEV_VEC_TRAITS_INST