FAUST compiler  0.9.9.6b8
Functions | Variables
compile_scal.cpp File Reference
#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"
Include dependency graph for compile_scal.cpp:

Go to the source code of this file.

Functions

static Klasssignal2klass (const string &name, Tree sig)
static bool isPowerOf2 (int n)

Variables

bool gDrawSignals
bool gLessTempSwitch
int gMaxCopyDelay
string gClassName
string gMasterDocument
bool gDumpNorm

Function Documentation

static bool isPowerOf2 ( int  n) [static]

Definition at line 892 of file compile_scal.cpp.

Referenced by ScalarCompiler::generateIota().

{
    return !(n & (n - 1));
}

Here is the caller graph for this function:

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();

    }
}

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

string gClassName

Definition at line 156 of file main.cpp.

Referenced by main(), process_cmdline(), and replaceClassName().

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().

Definition at line 129 of file main.cpp.

Definition at line 104 of file main.cpp.

Definition at line 130 of file main.cpp.