Fixed a serious mistake in applying the patch submitted by Tamas Nepusz;

lbfgs() always returns LBFGSERR_INVALID_X_SSE when the SSE routine enabled.
This commit is contained in:
Naoaki Okazaki 2010-12-21 00:52:05 +09:00
parent 8cc8e74417
commit 3c1909394f

View File

@ -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)*/