Floor and Ceil Versus Denormals on CPU and GPU
Summary
Floor and Ceil Versus Denormals on CPU and GPU analyzes how floor, ceil, trunc, and round behave with subnormal floats on CPU and GPU, highlighting platform differences in preserving versus flushing denormals and the resulting nondeterminism. The piece also offers a deterministic HLSL workaround for consistent floor/ceil behavior across hardware.