From 3c1909394ff7037f3dd0e0d9e9e0fa6388dc40d9 Mon Sep 17 00:00:00 2001 From: Naoaki Okazaki Date: Tue, 21 Dec 2010 00:52:05 +0900 Subject: [PATCH] Fixed a serious mistake in applying the patch submitted by Tamas Nepusz; lbfgs() always returns LBFGSERR_INVALID_X_SSE when the SSE routine enabled. --- lib/lbfgs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lbfgs.c b/lib/lbfgs.c index 7a466de..0d099ee 100644 --- a/lib/lbfgs.c +++ b/lib/lbfgs.c @@ -290,7 +290,7 @@ int lbfgs( if (n % 8 != 0) { return LBFGSERR_INVALID_N_SSE; } - if ((uintptr_t)(const void*)x % 16 == 0) { + if ((uintptr_t)(const void*)x % 16 != 0) { return LBFGSERR_INVALID_X_SSE; } #endif/*defined(USE_SSE)*/