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:
parent
8cc8e74417
commit
3c1909394f
@ -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)*/
|
||||
|
Loading…
Reference in New Issue
Block a user