ODD's and EVEN's in ASM
Posted: Mon Oct 16, 2023 11:45 am
Oh no it's him... AGAIN. He sucks at ASM! Hide!
Experimenting with Multi Voice prim etc...
Above atleast "looks" ok when i'm checking the Poly readout:
Poly readout directly from V-P prim's Id...
1st voice id 0 : 0
2nd voice id 1 : 0+1 = 1
3rd voice id 2 : 1+2 = 3
4th voice id 3 : 1+2+3 = 6
5th voice id 4 : 1+2+3+4 = 10
6th voice id 5 : 1+2+3+4+5 = 15
7th voice id 6 : 1+2+3+4+5+6 = 21
etc
Poly readout from my ASM snippet (connected to V-P prim's Id)
1st voice id 0 : 1
2nd voice id 1 : 1+0 = 1
3rd voice id 2 : 1+0+1 = 2
4th voice id 3 : 1+0+1+0 = 2
5th voice id 4 : 1+0+1+0+1 = 3
6th voice id 5 : 1+0+1+0+1+0 = 3
7th voice id 6 : 1+0+1+0+1+0+1 = 4
etc...
Can someone confirm my asm snippet is (atleast remotely) correct... or will it explode for unknown itty bit:y reason?
Experimenting with Multi Voice prim etc...
- Code: Select all
streamin in; streamout out;
float f1 = 1;
cvtps2dq xmm0,in;
cvtps2dq xmm1,f1;
andps xmm0,xmm1;
cmpps xmm0, xmm1, 1;
andps xmm0,f1;
movaps out,xmm0;
Above atleast "looks" ok when i'm checking the Poly readout:
Poly readout directly from V-P prim's Id...
1st voice id 0 : 0
2nd voice id 1 : 0+1 = 1
3rd voice id 2 : 1+2 = 3
4th voice id 3 : 1+2+3 = 6
5th voice id 4 : 1+2+3+4 = 10
6th voice id 5 : 1+2+3+4+5 = 15
7th voice id 6 : 1+2+3+4+5+6 = 21
etc
Poly readout from my ASM snippet (connected to V-P prim's Id)
1st voice id 0 : 1
2nd voice id 1 : 1+0 = 1
3rd voice id 2 : 1+0+1 = 2
4th voice id 3 : 1+0+1+0 = 2
5th voice id 4 : 1+0+1+0+1 = 3
6th voice id 5 : 1+0+1+0+1+0 = 3
7th voice id 6 : 1+0+1+0+1+0+1 = 4
etc...
Can someone confirm my asm snippet is (atleast remotely) correct... or will it explode for unknown itty bit:y reason?