Re: Is PSHUFW instruction MMX or SSE or SSE2? Is NASM manual correct?



Frank Kotler wrote:
Betov wrote:
The problem is not with speed, nor size. It is with
readability. Recently shown C++ example:

NminusI = (i==0)? 0 : (N-i);

... meaning (we have been told):

If I = 0
NminusI = 0
Else NminusI = DN - I
End_If

I seriously doubt a beginner could understand the
first version, whereas i don't doubt that he could
understand quite easily the Assembly version, and
even more easily with a bit of If/Then/Else Macros.


cmp eax, byte 1
adc eax, byte -1

Where's the macro?

Sorry, I misread that... proving your point! I *knew* I shouldn't have had that last toke of mistletoe!

Best,
Frank
.



Relevant Pages

  • Re: Is PSHUFW instruction MMX or SSE or SSE2? Is NASM manual correct?
    ... NminusI = DN - I ... even more easily with a bit of If/Then/Else Macros. ... cmp eax, byte 1 ... That equals zero for zero or N-1 for nonzero, ...
    (alt.lang.asm)
  • Re: RosAsm User Interface
    ... > assembly into some bastardized half-HLL by using HLL constructs with ... macros to turn assembly into some pseudo-HLL, ... cmp eax Something | jne L0> ... cmp ecx 0 | je @End_While ...
    (alt.lang.asm)
  • Proper case
    ... I am a beginner at VB and have 2 questions... ... How do I convert a text field to Proper case. ... Is the a good site with examples of simple macros and ... Natalie ...
    (microsoft.public.access.queries)
  • Is there a way?
    ... I'm a beginner with macros but am quickly realizing how they can make ... I'd like to create a macro that Replaces all cells that have $J$2 in the ...
    (microsoft.public.excel.misc)