SSE SSE2 and SSE3 for GNU C++

前端 未结 5 1994
清酒与你
清酒与你 2020-12-07 07:35

Is there a simple tutorial for me to get up to speed in SSE, SSE2 and SSE3 in GNU C++? How can you do code optimization in SSE?

5条回答
  •  佛祖请我去吃肉
    2020-12-07 08:08

    MSDN has pretty good description of SSE compiler built-ins (and those built-ins are de-facto standard, they even work in clang/XCode).

    • http://msdn.microsoft.com/en-us/library/26td21ds.aspx
    • http://msdn.microsoft.com/en-us/library/kcwz153a.aspx

    The nice thing about that reference is that it shows equivalent pseudocode, so e.g. you can learn that ADDPD instruction is:

    r0 := a0 + b0
    r1 := a1 + b1
    

    And here's good description of a cryptic shuffle instruction: http://www.songho.ca/misc/sse/sse.html

提交回复
热议问题