|
FAUST compiler
0.9.9.6b8
|
#include "compile_scal.hh"#include "timing.hh"#include "compile.hh"#include "sigtype.hh"#include <stdio.h>#include <iostream>#include <fstream>#include <sstream>#include <vector>#include <math.h>#include "floats.hh"#include "sigprint.hh"#include "sigtyperules.hh"#include "recursivness.hh"#include "simplify.hh"#include "privatise.hh"#include "prim2.hh"#include "xtended.hh"#include "compatibility.hh"#include "ppsig.hh"#include "sigToGraph.hh"
Go to the source code of this file.
Functions | |
| static Klass * | signal2klass (const string &name, Tree sig) |
| static bool | isPowerOf2 (int n) |
Variables | |
| bool | gDrawSignals |
| bool | gLessTempSwitch |
| int | gMaxCopyDelay |
| string | gClassName |
| string | gMasterDocument |
| bool | gDumpNorm |
| static bool isPowerOf2 | ( | int | n | ) | [static] |
Definition at line 892 of file compile_scal.cpp.
Referenced by ScalarCompiler::generateIota().
{
return !(n & (n - 1));
}

| static Klass* signal2klass | ( | const string & | name, |
| Tree | sig | ||
| ) | [static] |
Definition at line 62 of file compile_scal.cpp.
References ScalarCompiler::compileSingleSignal(), getCertifiedSigType(), Compiler::getClass(), and kInt.
Referenced by ScalarCompiler::generateSigGen(), and ScalarCompiler::generateStaticSigGen().
{
Type t = getCertifiedSigType(sig); //, NULLENV);
if (t->nature() == kInt) {
ScalarCompiler C( new SigIntGenKlass(name) );
C.compileSingleSignal(sig);
return C.getClass();
} else {
ScalarCompiler C( new SigFloatGenKlass(name) );
C.compileSingleSignal(sig);
return C.getClass();
}
}


| string gClassName |
Definition at line 156 of file main.cpp.
Referenced by main(), process_cmdline(), and replaceClassName().
| bool gDrawSignals |
Definition at line 115 of file main.cpp.
Referenced by ScalarCompiler::prepare(), and process_cmdline().
| bool gDumpNorm |
Definition at line 148 of file main.cpp.
Referenced by ScalarCompiler::prepare(), and process_cmdline().
| bool gLessTempSwitch |
| string gMasterDocument |
| int gMaxCopyDelay |
1.8.0