SSE2 through AVX2 lacks unsigned comparison ability, so the usual trick is
also to subtract INT_MIN from both sides and perform a signed comparison. This
is a clear underflow situation.
An implementation could hide that fact when abstracting the SIMD details, but
that's another story. Libraries like Eigen aren't low-level SIMD manipulation,
but more like implementing certain useful algorithms. I don't think you can
abstract low-level SIMD and still get the most performance (which is the point
of SIMD).
--
Thiago Macieira - thiago (AT)
macieira.info - thiago (AT)
kde.org
Software Architect - Intel Open Source Technology Center