Clear a vector register with vpxor ymm0, ymm0, ymm0
Zero a 256-bit register with vpxor ymm0, ymm0, ymm0, which needs AVX2; NASM 2.16.03 example that proves the lanes are cleared.
Short posts that solve one thing: the code, the output we got, and why it works.
Zero a 256-bit register with vpxor ymm0, ymm0, ymm0, which needs AVX2; NASM 2.16.03 example that proves the lanes are cleared.
Find out which loops GCC 14 refused to vectorise with -fopt-info-vec-missed, which prints the loop's location and the reason it gave up.
Divide a 16-bit value by 10 on Cortex-M0 with one 32-bit multiply and a shift, exact for every input, instead of a slow library division call.
Start a program under SCHED_FIFO priority 80 with chrt on Linux 6.12, confirm the policy, and know the throttle that stops a runaway task freezing the box.
Record a CUDA timeline with nsys profile --trace=cuda,nvtx in Nsight Systems 2024 and print per-kernel totals from the report without opening the GUI.
See still-reachable and indirect leaks in Valgrind 3.23 with --show-leak-kinds=all, which --leak-check=full hides by default.
Turn on link-time optimisation in CMake 3.30 by setting CMAKE_INTERPROCEDURAL_OPTIMIZATION after check_ipo_supported, for GCC and Clang alike.
Run a program under numactl --interleave=all so its pages spread round-robin over every NUMA node, and confirm the policy took effect.
Set MIMALLOC_SHOW_STATS=1 and mimalloc 2.1 prints reserved, committed and peak heap numbers to stderr when the process exits, with no code changes.
Make Google Benchmark print items per second by calling state.SetItemsProcessed after the loop, so results compare across input sizes.
Read the x86 time-stamp counter from C with asm volatile and the =a, =d output constraints that map EDX:EAX.
Count instructions only inside one function by passing --toggle-collect=compute to callgrind, so setup code stays out of the profile.
We send one email when a new post is published. No spam.