Strange ASM stuff
Archive · 2009 3 old posts
From the original SynthMaker forum (2004–2014), with its members’ names and dates.
aliasant ·
Possible bug.
This code:
streamin In;
streamin threshold;
float T;
T = In > threshold;
Turns into this asm code:
streamin In;streamin threshold;float T=0;
movaps xmm0,In;
cmpps xmm0,threshold,6;
//Assignment> sLeft=xmm0
movaps T,xmm0;
Notice the strange 6 after threshold,
I dont understand. Were does it come from? what does it mean? If I remove it the code breaks.
rl ·
the 3rd param is the comparison predicate
6 means not less than or equal (110B = 4+2+0=6)
http://www.sesp.cse.clrc.ac.uk/html/Sof ... Comparison
aliasant ·
rl wrote: the 3rd param is the comparison predicate
6 means not less than or equal (110B = 4+2+0=6)
http://www.sesp.cse.clrc.ac.uk/html/Sof ... Comparison
Aha. Of course. Cool. 🙂 Thanx!