#pragma once
#ifndef FP16_BITCASTS_H
#define FP16_BITCASTS_H
#if defined(__cplusplus) && (__cplusplus >= 201103L)
#include <cstdint>
#elif !defined(__OPENCL_VERSION__)
#include <stdint.h>
#endif
#if defined(__INTEL_COMPILER)
#include <immintrin.h>
#endif
#if defined(_MSC_VER) && (defined(_M_ARM) || defined(_M_ARM64))
#include <intrin.h>
#endif
static inline float fp32_from_bits(uint32_t w) { … }
static inline uint32_t fp32_to_bits(float f) { … }
static inline double fp64_from_bits(uint64_t w) { … }
static inline uint64_t fp64_to_bits(double f) { … }
#endif