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
int gMaxCopyDelay

Function Documentation

static bool isPowerOf2 ( int  n  )  [static]

Definition at line 837 of file compile_scal.cpp.

Referenced by ScalarCompiler::generateIota().

00838 {
00839     return !(n & (n - 1));
00840 }

Here is the caller graph for this function:

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

Definition at line 55 of file compile_scal.cpp.

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

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

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

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

Definition at line 128 of file main.cpp.

Definition at line 129 of file main.cpp.

Generated on Thu Jul 15 16:15:36 2010 for FAUST compiler by  doxygen 1.6.3