Subversion Repositories filter_foundry

Compare Revisions

Regard whitespace Rev 299 → Rev 300

/trunk/funcs.c
831,6 → 831,18
 
// -------------------------------------------------------------------------------------------
 
/* pow(b,e) Calculates the base to the exponent power, that is, b^e. */
 
value_type ff_pow(value_type b, value_type e) {
#ifdef PARSERTEST
return 0;
#else
return (value_type)round(pow((double)b, (double)e));
#endif
}
 
// -------------------------------------------------------------------------------------------
 
/* sqr(x) Square root of x */
 
static uint32_t isqrt(uint32_t x) {
1551,6 → 1563,7
{0,TOK_FN2,"put", (pfunc_type)ff_put, 0},
{0,TOK_FN10,"cnv",(pfunc_type)ff_cnv, 0},
{0,TOK_FN1,"rst", (pfunc_type)ff_rst, 0}, // undocumented FilterFactory function
{0,TOK_FN2,"pow", (pfunc_type)ff_pow, 0}, // new function, also added in inofficial Filter Factory 3.1.0 patch
 
/* predefined variables (names with more than 1 character); most of them are undocumented in FilterFactory */
/* the predefined variables with 1 character are defined in lexer.l and process.c */