FreeBASIC  0.91.0
math_cvn.c File Reference
#include "fb.h"
Include dependency graph for math_cvn.c:

Go to the source code of this file.

Macros

#define hDoCVn(from, to_t, size)
 

Functions

FBCALL double fb_CVDFROMLONGINT (long long ll)
 
FBCALL float fb_CVSFROML (int l)
 
FBCALL int fb_CVLFROMS (float f)
 
FBCALL long long fb_CVLONGINTFROMD (double d)
 

Macro Definition Documentation

#define hDoCVn (   from,
  to_t,
  size 
)
Value:
do { \
if( (size) == sizeof(from) && (size) == sizeof(to_t) ) \
{ \
to_t to; \
memcpy( &to, &from, size ); \
return to; \
} \
else \
{ \
return (to_t)0; \
} \
} while (0)

Definition at line 5 of file math_cvn.c.

Function Documentation

FBCALL double fb_CVDFROMLONGINT ( long long  ll)

Definition at line 19 of file math_cvn.c.

FBCALL int fb_CVLFROMS ( float  f)

Definition at line 29 of file math_cvn.c.

FBCALL long long fb_CVLONGINTFROMD ( double  d)

Definition at line 34 of file math_cvn.c.

FBCALL float fb_CVSFROML ( int  l)

Definition at line 24 of file math_cvn.c.