compile_scal.cpp File Reference

#include "compile_scal.hh"
#include "compile.hh"
#include "sigtyperules.hh"
#include "tlib.hh"
#include "property.hh"
#include "timing.hh"
#include "sigtype.hh"
#include <stdio.h>
#include <iostream>
#include <sstream>
#include <vector>
#include <math.h>
#include "floats.hh"
#include "sigprint.hh"
#include "recursivness.hh"
#include "simplify.hh"
#include "privatise.hh"
#include "prim2.hh"
#include "xtended.hh"
#include "compatibility.hh"
#include "ppsig.hh"
Include dependency graph for compile_scal.cpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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

Variables

bool gLessTempSwitch
bool gSchedulerSwitch
int gMaxCopyDelay

Function Documentation

static bool isPowerOf2 ( int  n  )  [static]

Definition at line 842 of file compile_scal.cpp.

Referenced by ScalarCompiler::generateIota().

00843 {
00844     return !(n & (n - 1));
00845 }

Here is the caller graph for this function:

static Klass* signal2klass ( const string &  name,
Tree  sig 
) [static]

Definition at line 56 of file compile_scal.cpp.

References ScalarCompiler::compileSingleSignal(), Compiler::getClass(), getSigType(), and kInt.

Referenced by ScalarCompiler::generateSigGen(), and ScalarCompiler::generateStaticSigGen().

00057 {
00058     Type t = getSigType(sig); //, NULLENV);
00059     if (t->nature() == kInt) {
00060 
00061         ScalarCompiler C( new SigIntGenKlass(name) );
00062         C.compileSingleSignal(sig);
00063         return C.getClass();
00064 
00065     } else {
00066 
00067         ScalarCompiler C( new SigFloatGenKlass(name) );
00068         C.compileSingleSignal(sig);
00069         return C.getClass();
00070 
00071     }
00072 }

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

Definition at line 123 of file main.cpp.

Definition at line 124 of file main.cpp.

Generated on Wed Apr 28 23:45:46 2010 for FAUST compiler by  doxygen 1.6.3