ports/math/liblbfgs/files/patch-lib_arithmetic_sse_double.h
Wesley Shields a5691f37d9 This library is a C port of the implementation of Limited-memory
Broyden-Fletcher-Goldfarb-Shanno (L-BFGS) method written by Jorge Nocedal.
The original FORTRAN source code is available at:
http://www.ece.northwestern.edu/~nocedal/lbfgs.html

WWW:	http://www.chokkan.org/software/liblbfgs/

PR:		ports/147670
Submitted by:	Hung-Yi Chen <gaod@hychen.org>
Feature safe:	yes
2010-06-22 01:55:00 +00:00

19 lines
492 B
C

--- lib/arithmetic_sse_double.h.orig 2010-06-08 08:17:38.000000000 +0800
+++ lib/arithmetic_sse_double.h 2010-06-08 08:19:41.000000000 +0800
@@ -26,7 +26,6 @@
/* $Id: arithmetic_sse_double.h 65 2010-01-29 12:19:16Z naoaki $ */
#include <stdlib.h>
-#include <malloc.h>
#include <memory.h>
#if 1400 <= _MSC_VER
@@ -37,6 +36,8 @@
#include <emmintrin.h>
#endif/*HAVE_EMMINTRIN_H*/
+#define memalign(A,B) malloc(B)
+
inline static void* vecalloc(size_t size)
{
#ifdef _MSC_VER