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

#include <stdio.h>
#include <f32.h>

Go to the source code of this file.

Defines

#define POW2_16F   (65536.0)

Functions

f32 f32_from_double (double d)
double f32_to_double (f32 f)


Define Documentation

#define POW2_16F   (65536.0)

Definition at line 26 of file f32_double.c.

Referenced by f32_from_double(), and f32_to_double().


Function Documentation

f32 f32_from_double ( double  f  ) 

convert a double to a f32

Definition at line 31 of file f32_double.c.

References parse_symbols::f, and POW2_16F.

double f32_to_double ( f32  fix  ) 

convert a f32 to a double

Definition at line 40 of file f32_double.c.

References POW2_16F.

Referenced by f32_print().


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