liquid-dsp: update to 1.8.0.

This commit is contained in:
classabbyamp
2026-06-18 10:26:46 -04:00
parent 83fc1ab4da
commit d8ff28e4ee
2 changed files with 4 additions and 69 deletions
-67
View File
@@ -1,67 +0,0 @@
--- a/configure.ac
+++ b/configure.ac
@@ -195,7 +195,7 @@ else
src/dotprod/src/dotprod_rrrf.av.o \
src/dotprod/src/dotprod_crcf.av.o \
src/dotprod/src/sumsq.o"
- ARCH_OPTION="-fno-common -faltivec";;
+ ARCH_OPTION="-fno-common -maltivec";;
armv1*|armv2*|armv3*|armv4*|armv5*|armv6*)
# assume neon instructions are NOT available
MLIBS_DOTPROD="src/dotprod/src/dotprod_cccf.o \
--- a/src/dotprod/src/dotprod_crcf.av.c
+++ b/src/dotprod/src/dotprod_crcf.av.c
@@ -26,6 +26,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <altivec.h>
#include "liquid.internal.h"
@@ -179,7 +180,7 @@ void dotprod_crcf_execute(dotprod_crcf _q,
// split into four vectors each with four 32-bit
// partial sums. Effectively each loop iteration
// operates on 16 input samples at a time.
- s0 = s1 = s2 = s3 = (vector float)(0);
+ s0 = s1 = s2 = s3 = (vector float){0.0f, 0.0f, 0.0f, 0.0f};
while (nblocks >= 4) {
s0 = vec_madd(ar[nblocks-1],d[nblocks-1],s0);
s1 = vec_madd(ar[nblocks-2],d[nblocks-2],s1);
@@ -200,7 +201,7 @@ void dotprod_crcf_execute(dotprod_crcf _q,
// move the result into the union s (effetively,
// this loads the four 32-bit values in s0 into
// the array w).
- s.v = vec_add(s0,(vector float)(0));
+ s.v = vec_add(s0,(vector float){0.0f, 0.0f, 0.0f, 0.0f});
// sum the resulting array
//*_r = s.w[0] + s.w[1] + s.w[2] + s.w[3];
--- a/src/dotprod/src/dotprod_rrrf.av.c
+++ b/src/dotprod/src/dotprod_rrrf.av.c
@@ -26,6 +26,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <altivec.h>
#include "liquid.internal.h"
@@ -173,7 +174,7 @@ void dotprod_rrrf_execute(dotprod_rrrf _q,
// split into four vectors each with four 32-bit
// partial sums. Effectively each loop iteration
// operates on 16 input samples at a time.
- s0 = s1 = s2 = s3 = (vector float)(0);
+ s0 = s1 = s2 = s3 = (vector float){0.0f, 0.0f, 0.0f, 0.0f};
while (nblocks >= 4) {
s0 = vec_madd(ar[nblocks-1],d[nblocks-1],s0);
s1 = vec_madd(ar[nblocks-2],d[nblocks-2],s1);
@@ -194,7 +195,7 @@ void dotprod_rrrf_execute(dotprod_rrrf _q,
// move the result into the union s (effetively,
// this loads the four 32-bit values in s0 into
// the array w).
- s.v = vec_add(s0,(vector float)(0));
+ s.v = vec_add(s0,(vector float){0.0f, 0.0f, 0.0f, 0.0f});
// sum the resulting array
*_r = s.w[0] + s.w[1] + s.w[2] + s.w[3];
+4 -2
View File
@@ -1,6 +1,6 @@
# Template file for 'liquid-dsp'
pkgname=liquid-dsp
version=1.7.0
version=1.8.0
revision=1
build_style=cmake
build_helper="qemu"
@@ -12,7 +12,7 @@ license="MIT"
homepage="http://liquidsdr.org/"
changelog="https://raw.githubusercontent.com/jgaeddert/liquid-dsp/master/CHANGELOG.md"
distfiles="https://github.com/jgaeddert/liquid-dsp/archive/v${version}.tar.gz"
checksum=33c42ebc2e6088570421e282c6332e899705d42b4f73ebd1212e6a11da714dd4
checksum=abef8b2ddfd58c0a84ecda4f62158c4824b916144af4a2b07776e1a144d8cda4
post_install() {
vlicense LICENSE
@@ -24,5 +24,7 @@ liquid-dsp-devel_package() {
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove usr/lib/cmake
vmove usr/lib/pkgconfig
}
}