Yet Another Needless Site

  • About Me

Programming

My first take on C++ coroutines

Carrot 2022-06-26

In this post I’ll go through the disassembly (commented inline) of the following C++ snippet: #include <concepts> #include <coroutine> class task { public: class promise_type { public: class always_suspend {Continue reading

Packing / unpacking FP32s as BFloat16s with AVX2 (truncating)

Carrot 2022-01-16

FP32 can be converted to BFloat16 simply by truncating the lower 16 bits. So we can do this with some bit operations. Internally two sets of FP32s (i.e., elements inContinue reading

Accelerate base64 encode using AVX2

Carrot 2021-05-22

Sort of an excersise.. The four LUTs for converting numeric values to ASCII chars is ugly. Besides, since both _mm256_shuffle_epi8 and _mm256_blendv_epi8 suffers from low throughput (1 CPI / 2Continue reading

Recent Posts
  • Stop /etc/resolv.conf from being updated automatically
  • My first take on C++ coroutines
  • Restart nginx on failure endlessly on Debian
  • Packing / unpacking FP32s as BFloat16s with AVX2 (truncating)
  • Build Linux 5.10 LTS for Phicomm N1
Categories
  • Linux
  • N1
  • Network
  • Programming
  • Router
  • U-Boot
  • Uncategorized
  • VPS
  • Website
Recent Comments
  • Carrot on Boot Phicomm N1 without emmc_autoscript / s905_autoscript
  • Carrot on Boot Phicomm N1 without emmc_autoscript / s905_autoscript
  • Justin on Boot Phicomm N1 without emmc_autoscript / s905_autoscript
  • Justin on Boot Phicomm N1 without emmc_autoscript / s905_autoscript
  • Anonymous on Boot Phicomm N1 without emmc_autoscript / s905_autoscript
Meta
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Copyright 2025 Yet Another Needless Site | Designed by CodeGearThemes

Powered by WordPress