The upstream fix https://github.com/opencv/opencv/pull/21614
and remove the previous workaroundepel9
parent
a17785dfcd
commit
f873fc3d71
@ -0,0 +1,23 @@
|
||||
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
|
||||
|
Loading…
Reference in new issue