News for hackers. Stuff that matters.
Re:Branchless Coding in Go by jimktrains2 on Tuesday May 04, 2021 @06:39PM (#27043747)
I thought TEST did a subtract, setting the appropriate flags and discarded the result?
Re:Branchless Coding in Go by gnum4n on Wednesday May 05, 2021 @02:39AM (#27046870)
You're probably thinking of the CMP instruction: https://www.aldeid.com/wiki/X86-assembly/Instructions/cmp

TEST does a boolean AND test: https://www.aldeid.com/wiki/X86-assembly/Instructions/test