특수 명령어 정리 중

2018/04/12

https://software.intel.com/sites/landingpage/IntrinsicsGuide/

https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/x86-Built-in-Functions.html#x86-Built-in-Functions

skylake cpuinfo 보면서..

FMA

곱셈 후 덧셈. 가장 흔한 고속 연산

POPCNT

1의 비트수 카운트

int _popcnt64 (__int64 a)
int _popcnt32 (int a)

BMI1

0인 비트수 카운트

unsigned int _tzcnt_u32 (unsigned int a) 
unsigned __int64 _tzcnt_u64 (unsigned __int64 a)

BMI2

  • ..?
  • 마스크에 걸린 비트 집합 만들어 줌..마스크가 3비트면 LSB 부터 최대 111 이 나올 듯.

_mm_malloc

= post_memalign

LZCNT

앞에 비트 0이 몇 개 있는지 셈

_mm_prefetch

캐시

bitscan, bittest

..