constant-time

Tag

Cards List
#constant-time

Branches in branch-free code

Lobsters Hottest ↗ · 2026-10-09 Cached

A blog post shows how LLVM compiles branch-free bit-manipulation code (like 128-bit integer addition and constant-time select) into actual conditional branches on RISC-V targets, because RV32/64 lack conditional-move instructions, and how this behavior has changed across clang versions.

0 favorites 0 likes
← Back to home

Submit Feedback