Floor and Ceil Versus Denormals on CPU and GPU
Summary
The article investigates floor and ceil behavior on IEEE-754 floating-point numbers, focusing on denormals and whether CPUs or GPUs preserve or flush them. It includes platform tests (CPU vs Nvidia/Intel/AMD GPUs) and a deterministic HLSL workaround to ensure consistent results across architectures.