zoukankan      html  css  js  c++  java
  • high performance program (SSE4.2 intrin instruction)


    In file included from mm_lddqu.si128.c:2:0:
    /usr/local/lib/gcc/x86_64-redhat-linux/4.7.1/include/nmmintrin.h:31:3: error: #error "SSE4.2 instruction set not enabled"
    这个问题产生的原因:
    没有加 
    Support for SSSE3 built-in functions and code generation are available via -mssse3.
    Support for SSE4.1 built-in functions and code generation are available via -msse4.1.
    Support for SSE4.2 built-in functions and code generation are available via -msse4.2.

    Both SSE4.1 and SSE4.2 support can be enabled via -msse4.


      1 #include <stdio.h>
      2 #include <nmmintrin.h>
      3 int main()
      4 {
      5         unsigned char pBuf[32];
      6         __m128i i;
      7         __m128i j;
      8         printf("%d
    ",sizeof(__m128i));
      9         return 0;
     10 }


    complier:
    gcc mm_lddqu.si128.c -msse4.2

     
    output:
             16

    版权声明:本文博客原创文章,博客,未经同意,不得转载。

  • 相关阅读:
    20161101学习笔记
    20161031学习笔记
    20161028学习笔记
    20161027学习笔记
    ReentrantLock Condition
    ReentrantLock 重入锁
    CountDownLatch用法与原理
    场景化解释 AQS原理
    Atomic
    多线程工具类
  • 原文地址:https://www.cnblogs.com/mengfanrong/p/4710918.html
Copyright © 2011-2022 走看看