forked from haraldwolff/avr-fw-modules
19 lines
224 B
C
19 lines
224 B
C
|
#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)
|
||
|
|
||
|
|