Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Dot product

Name: Anonymous 2011-08-02 14:18

Single precision floating point.
System V AMD64 ABI convention.


sses_dot:
    movaps xmm0, [rdi]
    mulps xmm0, [rsi]
    haddps xmm0, xmm0
    haddps xmm0, xmm0
    ret

Name: Anonymous 2011-08-02 22:51

>>20
This. And then you need to write your own versions of operator *, operator +, map and foldr that are SSE-aware and can detect when the operands are SSE vectors.

Also, to the FIOC faggot >>16, do you honestly think that CPython, IronPython, or any other Python will generate SSE instructions for those functions? They do not. Instead you will end up with a bunch of shitty FIOC table lookups to infer types at runtime, and scalar code hidden behind multiple layers of function invocations.

Fucking faggots the lot of you.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List