Menu
  • Blog
  • Archive
    • Motorcycle Safety Riding | 機車安全駕駛 | 機車防禦駕駛
    • A Day A Python Standard Library
    • IOTA
    • Opinion | 媒體投書 | 個人觀點
  • Projects
  • Album
  • Teaching
  • Signature
  • About Me

louie_lu's blog.

人生是個無盡的深淵

分類: C

Linux time difference in nano-second persision

In C, Linux2016-08-22Leave a comment louie.lu

在 Linux 中算出 nano-second 級時差 當你在需要跟時間差有高精確度的需求的時候,可能會先想到用 gettimeofday 來處理,像是這樣: gettimeofday [crayon-607d59558029a683927171/] 那如果要更高的精確度呢?例如說到 nano-seconds? 就必須要使用 clock_gettime 來處理。 nano-second diff [ …

Continue Reading

2016-08-08 SSE/AVX instruction set performance

In C, Linux2016-08-08Leave a comment louie.lu

github: https://github.com/grapherd/sse-avx-instruction-set-performance 今天照著 Performance of SSE and AVX Instruction Sets 看了一遍,然後實作了3個論文中提到的最佳化辦法: [crayon-607d5955807f2701488664/]把 repo clone 下來之後, …

Continue Reading

文章導覽

1 2

Site Footer