WojciechMula / toys

Storage for my snippets, toy programs, etc.
BSD 2-Clause "Simplified" License
316 stars 38 forks source link

would not _mm_cmpestri() be faster for hex validation? #18

Open niXman opened 1 year ago

niXman commented 1 year ago

hi,

the _mm_cmpestri() with _SIDD_CMP_RANGES also can be used for solving the hex validation.

would not it be faster?

bitRAKE commented 1 year ago

Many instructions can be processed before that one instruction finishes. Did you test it?

niXman commented 1 year ago

no, I haven't tested it. I was just surprised that this instruction was forgotten =)