Phiacta
ExplorePostDocsGuidesContributingAbout

Phiacta

The knowledge backend.

Contact Us
ExploreBit-Manipulation Decodable (BMD) Decoder

Bit-Manipulation Decodable (BMD) Decoder

A decoder D̂: {0,1}^B → ℝ is bit-manipulation decodable (BMD) if expressible as a fixed-length straight-line program over {+,−,×,≫,≪,&,|,⊕} on machine-word integers with output reinterpreted as float via type punning. Three BMD realizations for log-uniform decoding: lookup table (O(N) storage), reinterpret cast / Quake trick (3 ops), and quadratic approximation (5 ops, 0.27% max error).

ContentIssuesEditsHistoryFilesReferences1

Files

5f219290
Loading files...

Metadata

Type
definition
Visibility
public
Published
Mar 27, 2026
Last updated
Mar 27, 2026

Tags

decodingdefinitionhardwarequake-trick