|
FAUST compiler
0.9.9.6b8
|
#include "mterm.hh"#include "signals.hh"#include "ppsig.hh"#include "xtended.hh"#include <assert.h>
Go to the source code of this file.
Typedefs | |
| typedef map< Tree, int > | MP |
Functions | |
| static bool | isSigPow (Tree sig, Tree &x, int &n) |
| match x^p with p:int More... | |
| static Tree | sigPow (Tree x, int p) |
| produce x^p with p:int More... | |
| static int | common (int a, int b) |
| return the "common quantity" of two numbers More... | |
| mterm | gcd (const mterm &m1, const mterm &m2) |
| return a mterm that is the greatest common divisor of two mterms More... | |
| static bool | contains (int a, int b) |
| We say that a "contains" b if a/b > 0. More... | |
| static Tree | buildPowTerm (Tree f, int q) |
| produce the canonical tree correspoding to a mterm More... | |
| static void | combineMulLeft (Tree &R, Tree A) |
| Combine R and A doing R = R*A or R = A. More... | |
| static void | combineDivLeft (Tree &R, Tree A) |
| Combine R and A doing R = R*A or R = A. More... | |
| static void | combineMulDiv (Tree &M, Tree &D, Tree f, int q) |
| Do M = M * f**q or D = D * f**-q. More... | |
produce the canonical tree correspoding to a mterm
Build a power term of type f**q -> (((f.f).f)..f) with q>0
Definition at line 362 of file mterm.cpp.
References sigPow().
Referenced by combineMulDiv().


Combine R and A doing R = R*A or R = A.
Definition at line 386 of file mterm.cpp.
References sigDiv(), and tree().
Referenced by mterm::normalizedTree().


Do M = M * f**q or D = D * f**-q.
Definition at line 396 of file mterm.cpp.
References buildPowTerm(), and combineMulLeft().
Referenced by mterm::normalizedTree().


Combine R and A doing R = R*A or R = A.
Definition at line 376 of file mterm.cpp.
References sigMul().
Referenced by combineMulDiv(), and mterm::normalizedTree().


|
static |
|
static |
We say that a "contains" b if a/b > 0.
For example 3 contains 2 and -4 contains -2, but 3 doesn't contains -2 and -3 doesn't contains 1
Definition at line 325 of file mterm.cpp.
Referenced by mterm::hasDivisor().

return a mterm that is the greatest common divisor of two mterms
Definition at line 299 of file mterm.cpp.
References common(), mterm::fCoef, mterm::fFactors, and tree().
Referenced by aterm::greatestDivisor().


match x^p with p:int
Definition at line 77 of file mterm.cpp.
References CTree::branch(), getUserData(), gPowPrim, and isSigInt().
Referenced by mterm::operator*=(), and mterm::operator/=().


produce x^p with p:int
Definition at line 94 of file mterm.cpp.
References gPowPrim, sigInt(), xtended::symbol(), and tree().
Referenced by buildPowTerm().


1.8.7