YuNing's Thought

Home

❯

Notes

❯

NaN Boxing

NaN Boxing

Dec 30, 20251 min read

Store and manipulate different types of values, such as integers, floating-point numbers, and pointers, within a single 64-bit word.

It leverages the NaN representation of floating-point numbers to distinguish between different types.

Links

  • Tagged Union
  • malloc
  • Introduction to Floating Point Number
  • ieee 754

Graph View

Backlinks

  • Introduction to Floating Point Number
  • Floating Point Representation

Created with Quartz v4.5.2 © 2025

  • GitHub
  • Discord Community