11 lines
276 B
C
11 lines
276 B
C
#ifndef FLOAT16_H
|
|
#define FLOAT16_H
|
|
|
|
// Helper function to convert float16 to float (from StackOverflow)
|
|
float float16_to_float(uint16_t float16_val);
|
|
|
|
// Convert Refloat float16 to int16_t (scaled by 10)
|
|
int16_t refloat_float16_to_int16_scaled(uint16_t float16_val);
|
|
|
|
#endif
|