flat assembler
Message board for the users of flat assembler.

Index > Tutorials and Examples > Box3D shared and static support for fasm2:

Goto page Previous  1, 2
Author
Thread Post new topic Reply to topic
Roman



Joined: 21 Apr 2012
Posts: 2132
Roman 31 Jul 2026, 16:02
bitRAKE
How on debug mode Box3D ?
You try debug mode ?
Post 31 Jul 2026, 16:02
View user's profile Send private message Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 2132
Roman 15 Aug 2026, 12:51
I looking avx2 code multiply two quaternions.

I found sse variant
Code:
macro quatmul a,b {  movups xmm0,xword [a]
                     movups xmm1,xword [b]
    movaps  xmm5, xmm0
    movaps  xmm3, xmm1
    movaps  xmm2, xmm0

    shufps  xmm5, xmm0,27
    movaps  xmm4, xmm5
    shufps  xmm3, xmm1,17
    shufps   xmm1, xmm1 ,187
    mulps    xmm2, xmm3
    mulps    xmm4,  xmm1
    mulps    xmm3,  xmm5
    mulps   xmm0,  xmm1
    hsubps  xmm2, xmm4
    haddps  xmm0, xmm3
    movaps  xmm1, xmm2
    shufps  xmm1, xmm0,177
    shufps  xmm0, xmm2,228
    addsubps        xmm0, xmm1
    shufps  xmm0, xmm0,156
 
   ;normalize
    movaps xmm1,xmm0
    mulps xmm0,xmm0
    haddps xmm0,xmm0
    haddps xmm0,xmm0
    rsqrtss  xmm0,xmm0
    vbroadcastss xmm0,xmm0
    mulps xmm1,xmm0  

}                 
    
Post 15 Aug 2026, 12:51
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2

< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2026, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.