19 lines
224 B
C
Executable file
19 lines
224 B
C
Executable file
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
union ieeefloat
|
|
{
|
|
float f;
|
|
struct {
|
|
uint32_t mantisse:23;
|
|
uint32_t exponent:8;
|
|
uint32_t sign:1;
|
|
};
|
|
};
|
|
typedef union ieeefloat IEEEFLOAT;
|
|
|
|
#define IEEEFLOAT(p) ((IEEEFLOAT*)p)
|
|
|
|
|