http://stereopsis.com/FPU.html
https://stackoverflow.com/questions/78619/what-is-the-fastest-way-to-convert-float-to-int-on-x86
SIMD
32 bit integer to 16 bit integer
__m256i _mm512_cvtepi32_epi16 (__m512i a)
floating point to 32 bit integer
__m512i _mm512_cvtps_epi32 (__m512 a)
unsigned short _cvtss_sh (float a, int rounding)
Saturday, January 8, 2022
Get current CPU core frequency - linux
1. Get the current application's permission
"getuid()"
"geteuid()"
2. turbostat: https://github.com/torvalds/linux/blob/master/tools/power/x86/turbostat/turbostat.c
Friday, January 7, 2022
Subscribe to:
Posts (Atom)