#ifndef __FP_H #define __FP_H // DO NOT MAKE CHANGES TO THIS FILE! // DO NOT MAKE CHANGES TO THIS FILE! // DO NOT MAKE CHANGES TO THIS FILE! // File Version: 0.01 // // Header file to hold the format_t and fixed_point_t types. // Nothing else. // // Written by: Omar Akkawi #include enum format_t { BINARY_POINT, EXPONENT_NOTATION }; typedef struct __fixed_point_t { uint32_t integer_portion; uint32_t fractional_portion; uint16_t current_exponent; uint8_t sign; uint8_t type; } fixed_point_t; // // // // // // // // Really, there's nothing else here. // // // // // // Why won't you believe me? There's nothing else here! // // // // // // // ... forget this, I'm going home... // // // // // // OK, you found it, here it is: the prototype for float_half_conversion and // printf_converted_float! fixed_point_t float_half_conversion(uint16_t f, enum format_t format); void printf_converted_float(fixed_point_t value); #endif