ermig1979 / Simd

C++ image processing and machine learning library with using of SIMD: SSE, AVX, AVX-512, AMX for x86/x64, VMX(Altivec) and VSX(Power7) for PowerPC, NEON for ARM.
http://ermig1979.github.io/Simd
MIT License
2.01k stars 407 forks source link

Prevent underflow with sysconf returned value on exotic config #230

Closed s-trinh closed 1 year ago

s-trinh commented 1 year ago

This prevent underflow when sysconf returns -1 value on an exotic configuration, an s390x architecture mimiced on Github Action using https://github.com/uraimo/run-on-arch-action

In any case, it does not hurt to check for underflow.