How to use AVX/pclmulqdq on Mac OS X

后端 未结 5 1554
耶瑟儿~
耶瑟儿~ 2020-12-03 05:09

I am trying to compile a program that uses the pclmulqdq instruction present in new Intel processors. I\'ve installed GCC 4.6 using macports but when I compile my program (w

5条回答
  •  醉酒成梦
    2020-12-03 05:35

    It appears that I fixed my issue by using the gcc / asm syntax where asm{} function is passed a string consisting of assembler statements surrounded by quotes and separated by a backslash and newline or backslash and quoted string containing another assembler statement.

    https://www.ibiblio.org/gferg/ldp/GCC-Inline-Assembly-HOWTO.html#s3

提交回复
热议问题