Skip to content

Instantly share code, notes, and snippets.

View srijanpaul-deepsource's full-sized avatar

Srijan Paul srijanpaul-deepsource

View GitHub Profile
#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