EIP Radar
@ 41a838d ·
EIP-7939

Count leading zeros (CLZ) opcode

Opcode to count the number of leading zero bits in a 256-bit word

FinalSplurge

Status history

  1. Draft28 Apr 2025
  2. Finaldate not observed

Abstract

Introduce a new opcode, CLZ(x), which pops x from the stack and pushes the number of leading zero bits in x to the stack. If x is zero, pushes 256.

Created
28 Apr 2025
Authors
Vectorized, Georgios Konstantopoulos, Jochem Brouwer, Ben Adams, Giulio Rebuffo
Upgrades
Requires
—
Required by
—