From 24e8cd1a78a12b5193820dcad52da07208d52fd1 Mon Sep 17 00:00:00 2001 From: nnorwitz Date: Thu, 6 Apr 2017 12:54:56 -0700 Subject: [PATCH] Use %% for inline assembly rather than % so this compiles with clang. Same as https://github.com/opencv/opencv/pull/8525/commits/9210cefb36868e201f7e0c8b84e4ee4f91b5432b but for this file too. --- modules/core/include/opencv2/core/cuda/warp.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/include/opencv2/core/cuda/warp.hpp b/modules/core/include/opencv2/core/cuda/warp.hpp index ae1f8ea5d2..8af7e6a212 100644 --- a/modules/core/include/opencv2/core/cuda/warp.hpp +++ b/modules/core/include/opencv2/core/cuda/warp.hpp @@ -64,7 +64,7 @@ namespace cv { namespace cuda { namespace device static __device__ __forceinline__ unsigned int laneId() { unsigned int ret; - asm("mov.u32 %0, %laneid;" : "=r"(ret) ); + asm("mov.u32 %0, %%laneid;" : "=r"(ret) ); return ret; } -- GitLab