1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00
freebsd-ports/science/afni/files/patch-misc_math.c
Pawel Pekala a44b4187c9 - Update to build 2012-04-17 [1]
- Projest has new homepage [1]
- Mark MAKE_JOBS_UNSAFE

PR:		ports/167651 [1]
Submitted by:	Jason Bacon <jwbacon@tds.net> (maintainer) [1]
2012-05-11 17:05:09 +00:00

17 lines
417 B
C

--- misc_math.c.orig 2012-04-18 13:42:55.000000000 -0500
+++ misc_math.c 2012-04-18 13:43:41.000000000 -0500
@@ -1,6 +1,13 @@
+/* For older libm */
+double log2(double n)
+{
+ return log(n) / log(2.0);
+}
+
/* move from Deconvolve.c into libmri.a 21 Jun 2010 [rickr] */
+
double legendre( double x , int m ) /* Legendre polynomials over [-1,1] */
{
if( m < 0 ) return 1.0 ; /* bad input */