A question about the rate of ftlen, ftloop, ftend (5.9.6.1- 5.9.6.3).
The standard specifies ftlen as
opcode ftlen(table t);
Note, not kopcode or iopcode, but opcode, which makes it an x-rate opcode.
Although the standard does not specify how to treat table parameters for
intrinsic opcodes, I'm going to assume that table parameters are skipped
when determining the rate of an x-rate opcode. (Is that correct?)
If so, then by default rules, the opcode should evaluate at k-rate.
However, the following should also be true. Given
iopcode itlen(table t) {
return (ftlen(t));
}
itlen should evaluate at ftlen at I-rate since iopcode places a rate
restriction on the x-rate opcode ftlen. Is that correct?
This is an important question given that any serious attempt at a
roll-your-own version of oscil or loscil is going to have to perform some
pretty expensive divides at k-rate if ftlen, ftsr and ftbasecps can't be
evaluated at i-rate.
Regards,
Robin Davies.
This archive was generated by hypermail 2b29 : Mon Jan 28 2002 - 12:03:53 EST