We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
i want to Implement an ABS (absolute value) function for a registered value using only two instructions.
See How to get absolute value of a 32-bit signed integer as fast as possible?
Where there's a couple of ways plus also saturating abs. Using SIMD one can do a number of ABS's in parallel.