You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
827 B
24 lines
827 B
From 8d88bb06b230b5c4b5bca78d84102f5d1adf48cf Mon Sep 17 00:00:00 2001
|
|
From: Alexander Alekhin <alexander.a.alekhin@gmail.com>
|
|
Date: Tue, 15 Feb 2022 07:23:32 +0300
|
|
Subject: [PATCH] core(vsx): update vec_absd() workaround condition
|
|
|
|
---
|
|
modules/core/include/opencv2/core/vsx_utils.hpp | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/modules/core/include/opencv2/core/vsx_utils.hpp b/modules/core/include/opencv2/core/vsx_utils.hpp
|
|
index 68863ffb36f2..5cbc066784d0 100644
|
|
--- a/modules/core/include/opencv2/core/vsx_utils.hpp
|
|
+++ b/modules/core/include/opencv2/core/vsx_utils.hpp
|
|
@@ -684,7 +684,8 @@ VSX_IMPL_LOAD_L8(vec_double2, double)
|
|
#endif
|
|
|
|
// absolute difference
|
|
-#ifndef vec_absd
|
|
+#ifndef _ARCH_PWR9
|
|
+# undef vec_absd
|
|
# define vec_absd(a, b) vec_sub(vec_max(a, b), vec_min(a, b))
|
|
#endif
|
|
|