File: fix-vsx-build-with-gcc-15.patch

package info (click to toggle)
opencv 4.10.0%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 282,280 kB
  • sloc: cpp: 1,178,077; xml: 682,621; python: 49,092; lisp: 31,150; java: 25,469; ansic: 11,039; javascript: 6,085; sh: 1,214; cs: 601; perl: 494; objc: 210; makefile: 173
file content (34 lines) | stat: -rw-r--r-- 1,428 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From: Maksim Shabunin <maksim.shabunin@gmail.com>
Subject: Fix VSX build with GCC 15
Origin: upstream, https://github.com/opencv/opencv/commit/3effe195cb2cf4b7f98fe5e9b4df55aa4951d706
Bug-Debian: https://bugs.debian.org/1116253
Last-Update: 2025-01-16

---
 modules/core/include/opencv2/core/vsx_utils.hpp | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

--- a/modules/core/include/opencv2/core/vsx_utils.hpp
+++ b/modules/core/include/opencv2/core/vsx_utils.hpp
@@ -257,8 +257,8 @@
 VSX_IMPL_1VRG(vec_udword2, vec_dword2,  vpopcntd, vec_popcntu)
 
 // converts between single and double-precision
-VSX_REDIRECT_1RG(vec_float4,  vec_double2, vec_cvfo, __builtin_vsx_xvcvdpsp)
-VSX_REDIRECT_1RG(vec_double2, vec_float4,  vec_cvfo, __builtin_vsx_xvcvspdp)
+VSX_REDIRECT_1RG(vec_float4,  vec_double2, vec_cvfo, vec_floate)
+VSX_REDIRECT_1RG(vec_double2, vec_float4,  vec_cvfo, vec_doubleo)
 
 // converts word and doubleword to double-precision
 #undef vec_ctd
@@ -399,10 +399,6 @@
 VSX_REDIRECT_1RG(vec_uint4,   vec_uint4,   vec_popcntu, vec_popcnt)
 VSX_REDIRECT_1RG(vec_udword2, vec_udword2, vec_popcntu, vec_popcnt)
 
-// converts between single and double precision
-VSX_REDIRECT_1RG(vec_float4,  vec_double2, vec_cvfo, __builtin_vsx_xvcvdpsp)
-VSX_REDIRECT_1RG(vec_double2, vec_float4,  vec_cvfo, __builtin_vsx_xvcvspdp)
-
 // converts word and doubleword to double-precision
 #ifdef vec_ctd
 #   undef vec_ctd