¡@

Home 

c++ Programming Glossary: shl

Difference between rdtscp, rdtsc : memory and cpuid / rdtsc?

http://stackoverflow.com/questions/12631856/difference-between-rdtscp-rdtsc-memory-and-cpuid-rdtsc

__asm__ __volatile__ rdtscp serializing read of tsc shl 32 rdx shift higher 32 bits stored in rdx up or rdx rax and.. out cpuid __asm__ __volatile__ rdtsc read of tsc shl 32 rdx shift higher 32 bits stored in rdx up or rdx rax and.. reordering __asm__ __volatile__ rdtsc read of tsc shl 32 rdx shift higher 32 bits stored in rdx up or rdx rax and..

modular arithmetics and NTT (finite field DFT) optimizations

http://stackoverflow.com/questions/18577076/modular-arithmetics-and-ntt-finite-field-dft-optimizations

DWORD dst n slow INTT DWORD src n DWORD arithmetics DWORD shl DWORD a DWORD shr DWORD a modular arithmetics DWORD mod DWORD.. dst j modmul a rN wj modmul wj iW DWORD fourier_NTT shl DWORD a return a 1 0xFFFFFFFE DWORD fourier_NTT shr DWORD a.. DWORD bb for bb p DWORD a DWORD bb DWORD bb 0x80000000 bb shl bb for if DWORD a DWORD bb a bb if bb p break bb shr bb return..

Looking for sse 128 bit shift operation for non-immediate shift value

http://stackoverflow.com/questions/9980801/looking-for-sse-128-bit-shift-operation-for-non-immediate-shift-value

on. #include emmintrin.h typedef __m128i XMM #define xmbshl x n _mm_slli_si128 x n xm 8 n BYTE shift #define xmbshr x n.. xmbshr x n _mm_srli_si128 x n xm 8 n BYTE shift #define xmshl64 x n _mm_slli_epi64 x n xm.hi n xm.lo n #define xmshr64 x n.. _mm_xor_si128 a b #define xmzero _mm_setzero_si128 XMM xm_shl XMM x unsigned nbits These macros generate 1 2 5 6 SSE2 instructions..