Lokathor/safe_arch

doc nge vs lt

Closed this issue · 3 comments

document why a person would use negated comparisons.

@Evrey what's the reason again? seems to be the same op with two different immediate values passed according to the comparison you want.

__m128 _mm_cmpgt_ps (__m128 a, __m128 b)
#include <xmmintrin.h>
Instruction: cmpps xmm, xmm, imm8
CPUID Flags: SSE

__m128 _mm_cmpnle_ps (__m128 a, __m128 b)
#include <xmmintrin.h>
Instruction: cmpps xmm, xmm, imm8
CPUID Flags: SSE

Oh it's probably a dumb NaN thing.

Alright we're gonna close this because there's no arg order subtlety like was first thought.