FAUST compiler  0.9.9.6b8
Functions
floats.hh File Reference
#include <iostream>
Include dependency graph for floats.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

const char * isuffix ()
 suffix for math functions More...
 
const char * inumix ()
 suffix for numeric constants More...
 
const char * ifloat ()
 
const char * icast ()
 
const char * xfloat ()
 
const char * xcast ()
 
void printfloatdef (std::ostream &fout)
 

Function Documentation

const char* icast ( )

Definition at line 47 of file floats.cpp.

References castname, and gFloatSize.

Referenced by MaxPrim::generateCode(), MinPrim::generateCode(), and ScalarCompiler::generateInput().

47 { return castname[gFloatSize]; }
const char * castname[]
Definition: floats.cpp:41
int gFloatSize
Definition: main.cpp:153

Here is the caller graph for this function:

const char* ifloat ( )
const char* inumix ( )

suffix for numeric constants

Definition at line 44 of file floats.cpp.

References gFloatSize, and numsuffix.

Referenced by T().

Here is the caller graph for this function:

const char* isuffix ( )
void printfloatdef ( std::ostream &  fout)

Definition at line 52 of file floats.cpp.

References FLOATMACRO.

Referenced by main().

53 {
54  fout << "#ifndef " << FLOATMACRO << std::endl;
55  fout << "#define " << FLOATMACRO << " " << "float" << std::endl;
56  fout << "#endif " << std::endl;
57  fout << std::endl;
58  fout << "typedef long double quad;" << std::endl;
59 }
#define FLOATMACRO
Definition: floats.cpp:24

Here is the caller graph for this function:

const char* xcast ( )

Definition at line 50 of file floats.cpp.

References castname.

Referenced by SchedulerCompiler::compileMultiSignal(), VectorCompiler::compileMultiSignal(), ScalarCompiler::compileMultiSignal(), and ScalarCompiler::generateOutput().

50 { return castname[0]; }
const char * castname[]
Definition: floats.cpp:41

Here is the caller graph for this function:

const char* xfloat ( )