Import of pkgsrc-2016Q3

This commit is contained in:
2016-10-14 07:49:11 +02:00
committed by Lionel Sambuc
parent 9d819b6d54
commit 1242aa1e36
35952 changed files with 949749 additions and 377083 deletions

View File

@@ -0,0 +1,33 @@
$NetBSD: patch-lib_fftlibvdsp__op.cpp,v 1.1 2015/11/21 17:36:10 adam Exp $
Fix building with newer OS X API.
--- lib/fftlibvdsp_op.cpp.orig 2015-11-21 17:32:57.000000000 +0000
+++ lib/fftlibvdsp_op.cpp
@@ -23,12 +23,12 @@ FFTLib_op::Initialize(int N, bool optimi
{
delete[] A.realp;
delete[] A.imagp;
- destroy_fftsetupD(SetupReal);
+ vDSP_destroy_fftsetupD(SetupReal);
}
A.realp = new double[ N/2];
A.imagp = new double[ N/2];
- SetupReal = create_fftsetupD(Exp, 0);
+ SetupReal = vDSP_create_fftsetupD(Exp, 0);
Init = true;
}
@@ -46,9 +46,9 @@ FFTLib_op::SetSize(int N, bool optimize,
void
FFTLib_op::ComputeFrame(int N, double *in, double *out)
{
- ctozD ((DSPDoubleComplex*) in, 2, &A, 1, N/2 );
+ vDSP_ctozD((DSPDoubleComplex*) in, 2, &A, 1, N/2 );
- fft_zripD(SetupReal, &A, 1, Exp, FFT_FORWARD);
+ vDSP_fft_zripD(SetupReal, &A, 1, Exp, FFT_FORWARD);
int i,j;
for (i=0; i<N/2; i++)