diff options
author | Daniel Engberg <diizzy@FreeBSD.org> | 2022-03-12 08:48:21 +0100 |
---|---|---|
committer | Daniel Engberg <diizzy@FreeBSD.org> | 2022-03-12 08:48:36 +0100 |
commit | fa49f6526d6cc24ebdf94471e0a4ae7635297ea6 (patch) | |
tree | 783c0583affc03eff0d593d6f05497e0263ff9f5 /math/nfft/files | |
parent | graphics/ocrad: Update 0.27 -> 0.28 (diff) |
math/nfft: Rework port to follow Porters Handbook
* Use upstream release archive
* Respect flags set by framework and do not use -march=native
* Add support for OpenMP and enable it on aarch64 and amd64 by default
* Overall rework of Makefile
* Enable all options to match packaging in other distros
PR: 261255
Diffstat (limited to 'math/nfft/files')
-rw-r--r-- | math/nfft/files/cpow.c | 56 | ||||
-rw-r--r-- | math/nfft/files/patch-3rdparty_Makefile.am | 14 |
2 files changed, 0 insertions, 70 deletions
diff --git a/math/nfft/files/cpow.c b/math/nfft/files/cpow.c deleted file mode 100644 index 082238b3a210..000000000000 --- a/math/nfft/files/cpow.c +++ /dev/null @@ -1,56 +0,0 @@ -/* $NetBSD: cpow.c,v 1.1 2007/08/20 16:01:35 drochner Exp $ */ - -/*- - * Copyright (c) 2007 The NetBSD Foundation, Inc. - * All rights reserved. - * - * This code is derived from software written by Stephen L. Moshier. - * It is redistributed by the NetBSD Foundation by permission of the author. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS - * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED - * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS - * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -#include <complex.h> -#include <math.h> - -double complex -cpow(double complex a, double complex z) -{ - double complex w; - double x, y, r, theta, absa, arga; - - x = creal(z); - y = cimag(z); - absa = cabs(a); - if (absa == 0.0) { - return (0.0 + 0.0 * I); - } - arga = carg(a); - r = pow(absa, x); - theta = x * arga; - if (y != 0.0) { - r = r * exp(-y * arga); - theta = theta + y * log(absa); - } - w = r * cos(theta) + (r * sin(theta)) * I; - return w; -} diff --git a/math/nfft/files/patch-3rdparty_Makefile.am b/math/nfft/files/patch-3rdparty_Makefile.am deleted file mode 100644 index f8d87898fa31..000000000000 --- a/math/nfft/files/patch-3rdparty_Makefile.am +++ /dev/null @@ -1,14 +0,0 @@ ---- 3rdparty/Makefile.am.orig 2016-10-16 14:46:04 UTC -+++ 3rdparty/Makefile.am -@@ -2,8 +2,8 @@ - - noinst_LTLIBRARIES = lib3rdparty.la - --lib3rdparty_la_SOURCES = -+lib3rdparty_la_SOURCES = cpow.c - - lib3rdparty_la_LIBADD = cstripack/libcstripack.la - --EXTRA_DIST = README -\ No newline at end of file -+EXTRA_DIST = README |