aversive_10-03-12/modules/base/math/fixed_point/f16_double.c File Reference

#include <stdio.h>
#include <f16.h>

Go to the source code of this file.

Defines

#define POW2_8F   (256.0)

Functions

f16 f16_from_double (double d)
double f16_to_double (f16 f)


Define Documentation

#define POW2_8F   (256.0)

Definition at line 26 of file f16_double.c.

Referenced by f16_from_double(), and f16_to_double().


Function Documentation

f16 f16_from_double ( double  f  ) 

convert a double to a f16

Definition at line 31 of file f16_double.c.

References parse_symbols::f, and POW2_8F.

double f16_to_double ( f16  fix  ) 

convert a f16 to a double

Definition at line 40 of file f16_double.c.

References POW2_8F.

Referenced by f16_print().


Generated on Fri Mar 12 06:32:05 2010 for AVR by  doxygen 1.5.6