This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdbool.h> | |
#include <stdint.h> | |
#include <math.h> // for NaN | |
#include <assert.h> | |
union BoxedValue_t { | |
uint64_t bits; // to inspect the raw bits | |
double number; // to interpret the value as an IEEE float |