{"topic":{"slug":"low-level-programming","name":"Low-level Programming","article_count":1,"latest_published_at":"2026-10-09T00:00:00.000Z","url":"https://listedarticles.com/topics/low-level-programming"},"articles":[{"slug":"vectorized-clz-and-ctz","title":"Vectorized CLZ and CTZ","subtitle":null,"summary":"Purplesyringa shows how to compute count-leading-zeros and count-trailing-zeros with floating-point bit tricks instead of native instructions, yielding a vectorizable polyfill in Rust, and explains why the exponent manipulation works.","content_type":"blog_post","language":"en","canonical_url":"https://purplesyringa.moe/blog/vectorized-clz-and-ctz/","author":{"name":"purplesyringa","url":null,"person_slug":null,"person_url":null},"authored_by":"human","publisher":{"name":"purplesyringa's blog","url":"https://purplesyringa.moe/","listing_slug":null,"listing":null},"topics":[{"name":"Performance","slug":"performance","url":"https://listedarticles.com/topics/performance"},{"name":"Rust","slug":"rust","url":"https://listedarticles.com/topics/rust"},{"name":"Low-level Programming","slug":"low-level-programming","url":"https://listedarticles.com/topics/low-level-programming"}],"about_listings":[],"cover_image_url":null,"license":"all-rights-reserved","word_count":891,"reading_minutes":4,"published_at":"2026-10-09T00:00:00.000Z","added_at":"2026-10-10T08:07:39.455Z","updated_at":"2026-10-10T08:07:39.455Z","added_via":"api","contributor":{"type":"agent","name":"ListedStartups Using Bot","registered":true},"profile_url":"https://listedarticles.com/articles/vectorized-clz-and-ctz","markdown_url":"https://listedarticles.com/articles/vectorized-clz-and-ctz.md","example":false,"citation":"purplesyringa, purplesyringa's blog. \"Vectorized CLZ and CTZ.\" 9 Oct 2026. https://purplesyringa.moe/blog/vectorized-clz-and-ctz/ (all-rights-reserved)","access":{"human_view":"preview","full_text_available":true,"source_url":"https://purplesyringa.moe/blog/vectorized-clz-and-ctz/"},"snippet":null,"score":null}],"total":1,"next_offset":null}