|
FAUST compiler
0.9.9.6b8
|
#include "floats.hh"
Go to the source code of this file.
Defines | |
| #define | FLOATMACRO "FAUSTFLOAT" |
| #define | FLOATCAST "(" FLOATMACRO ")" |
Functions | |
| const char * | isuffix () |
| suffix for math functions | |
| const char * | inumix () |
| suffix for numeric constants | |
| const char * | ifloat () |
| const char * | icast () |
| const char * | xfloat () |
| const char * | xcast () |
| void | printfloatdef (std::ostream &fout) |
Variables | |
| int | gFloatSize |
| const char * | mathsuffix [] = {"", "f", "", "l"} |
| const char * | numsuffix [] = {"", "f", "", ""} |
| const char * | floatname [] = {FLOATMACRO, "float", "double", "quad"} |
| const char * | castname [] = {FLOATCAST, "(float)", "(double)", "(quad)"} |
| #define FLOATCAST "(" FLOATMACRO ")" |
Definition at line 25 of file floats.cpp.
| #define FLOATMACRO "FAUSTFLOAT" |
Definition at line 24 of file floats.cpp.
Referenced by printfloatdef().
| const char* icast | ( | ) |
Definition at line 47 of file floats.cpp.
References castname, and gFloatSize.
Referenced by ScalarCompiler::generateInput().
{ return castname[gFloatSize]; }

| const char* ifloat | ( | ) |
Definition at line 46 of file floats.cpp.
References floatname, and gFloatSize.
Referenced by ScalarCompiler::generateFloatCast(), ScalarCompiler::generateStaticTable(), ScalarCompiler::generateTable(), ScalarCompiler::getTypedNames(), DocCompiler::getTypedNames(), and SigFloatGenKlass::println().
{ return floatname[gFloatSize]; }

| const char* inumix | ( | ) |
suffix for numeric constants
Definition at line 44 of file floats.cpp.
References gFloatSize, and numsuffix.
Referenced by T().

| const char* isuffix | ( | ) |
suffix for math functions
Definition at line 43 of file floats.cpp.
References gFloatSize, and mathsuffix.
Referenced by AcosPrim::generateCode(), AtanPrim::generateCode(), SinPrim::generateCode(), TanPrim::generateCode(), AsinPrim::generateCode(), CosPrim::generateCode(), ExpPrim::generateCode(), FloorPrim::generateCode(), Atan2Prim::generateCode(), FmodPrim::generateCode(), CeilPrim::generateCode(), PowPrim::generateCode(), RemainderPrim::generateCode(), LogPrim::generateCode(), Log10Prim::generateCode(), SqrtPrim::generateCode(), AbsPrim::generateCode(), and RintPrim::generateCode().

| void printfloatdef | ( | std::ostream & | fout | ) |
Definition at line 52 of file floats.cpp.
References FLOATMACRO.
Referenced by main().
{
fout << "#ifndef " << FLOATMACRO << std::endl;
fout << "#define " << FLOATMACRO << " " << "float" << std::endl;
fout << "#endif " << std::endl;
fout << std::endl;
fout << "typedef long double quad;" << std::endl;
}

| const char* xcast | ( | ) |
Definition at line 50 of file floats.cpp.
References castname.
Referenced by SchedulerCompiler::compileMultiSignal(), VectorCompiler::compileMultiSignal(), ScalarCompiler::compileMultiSignal(), and ScalarCompiler::generateOutput().
{ return castname[0]; }

| const char* xfloat | ( | ) |
Definition at line 49 of file floats.cpp.
References floatname.
Referenced by SchedulerCompiler::compileMultiSignal(), VectorCompiler::compileMultiSignal(), ScalarCompiler::compileMultiSignal(), ScalarCompiler::generateButton(), ScalarCompiler::generateCheckbox(), ScalarCompiler::generateHBargraph(), ScalarCompiler::generateHSlider(), ScalarCompiler::generateNumEntry(), ScalarCompiler::generateVBargraph(), ScalarCompiler::generateVSlider(), Klass::printComputeMethodOpenMP(), Klass::printComputeMethodScalar(), Klass::printComputeMethodScheduler(), Klass::printComputeMethodVectorFaster(), and Klass::printComputeMethodVectorSimple().
{ return floatname[0]; }

Definition at line 41 of file floats.cpp.
| const char* floatname[] = {FLOATMACRO, "float", "double", "quad"} |
Definition at line 40 of file floats.cpp.
| int gFloatSize |
| const char* mathsuffix[] = {"", "f", "", "l"} |
Definition at line 38 of file floats.cpp.
Referenced by isuffix().
| const char* numsuffix[] = {"", "f", "", ""} |
Definition at line 39 of file floats.cpp.
Referenced by inumix().
1.8.0