flat assembler
Message board for the users of flat assembler.
Index
> Main > limiting a variable to a certain range |
Author |
|
bitRAKE 18 Jul 2008, 03:04
PCMP* instructions can be used to test multiple values. There are many ways to use the mask produced. If possible it's better to use the mask directly than to branch execution. Usually, clamping can be integrated into the algorithm with saturation instructions, but PMIN*/PMAX* work too.
There are examples on the board - search for "SSE2". _________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
18 Jul 2008, 03:04 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.