avr-fw-modules/math/fixpoint/include/math/fix16.h

25 lines
289 B
C

#pragma once
#include <stdint.h>
struct fp_00_16 {
uint16_t value;
};
struct fp_16_16 {
uint32_t value;
};
struct fp_48_16 {
uint64_t value;
};
int64_t float_fix16(float v);
typedef struct fp_00_16 fp0016_t;
typedef struct fp_16_16 fp1616_t;
typedef struct fp_48_16 fp4816_t;