Skip to content

Commit

Permalink
Documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
sletz committed Dec 13, 2023
1 parent 7ede397 commit bbe1d54
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions compiler/generator/compile.hh
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@

enum class DelayType {
kNotADelay = 0,
kZeroDelay,
kMonoDelay,
kSingleDelay,
kCopyDelay,
kDenseDelay,
kMaskRingDelay,
kSelectRingDelay
kZeroDelay, // delay = 0
kMonoDelay, // 1 sample delay where 1 single variable can be used (the delay appears once in the expression)
kSingleDelay, // 1 sample delay where the delay appears several times in the expression, so a buffer of size 2 is used
kCopyDelay, // longer delay with a cache
kDenseDelay, // longer delay with a cache, only when the read density is high enough
kMaskRingDelay, // sparse delay without cache, using wrapping index (based on a power-of-two size and a mask)
kSelectRingDelay // sparse delay without cache, using wrapping index (based on an if/select)
};
std::string nameDelayType(DelayType dt);

Expand Down
4 changes: 2 additions & 2 deletions compiler/generator/compile_scal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ string ScalarCompiler::generateOutput(Tree sig, const string& idx, const string&
string ScalarCompiler::generateBinOp(Tree sig, int opcode, Tree arg1, Tree arg2)
{
return generateCacheCode(sig, subst("($0 $1 $2)", CS(arg1), gBinOpTable[opcode]->fName, CS(arg2)));
}
}

/*****************************************************************************
Primitive Operations
Expand Down Expand Up @@ -1209,7 +1209,7 @@ bool ScalarCompiler::isSigSimpleRec(Tree sig)
*/
DelayType ScalarCompiler::analyzeDelayType(Tree sig)
{
Occurrences* occ = fOccMarkup->retrieve(sig);
Occurrences* occ = fOccMarkup->retrieve(sig);
faustassert(occ != nullptr);
int mxd = occ->getMaxDelay();
int count = occ->getDelayCount();
Expand Down

0 comments on commit bbe1d54

Please sign in to comment.