Csound Csound-dev Csound-tekno Search About

[Csnd] tables of arbitrary size

Date2013-09-18 04:15
Fromluis jure
Subject[Csnd] tables of arbitrary size

the manual page for f statements has the following note:

"Not all opcodes accept tables whose size is not a power of two, since they
may depend on this for internal optimization."


with respect to this i have two questions: 

- is there a list of all the opcodes that accept tables of arbitrary size?

- would it be too difficult or for some reason inconvenient that all the
  opcodes that normally access tables created with GEN01 could read tables
  of deferred size? (hint: fog)


best,


lj

Date2013-09-24 19:05
FromAndres Cabrera
SubjectRe: [Csnd] tables of arbitrary size
Hi Luis,

The thing is that there are some significant performance optimizations in the code that are only possible for table sizes that are powers of two (they are actually quite significant, and still relevant for mobile platforms). What could be done is write an opcode that does take arbitrary sized tables.

I don't think there is actually a list, but it would be ideal if each opcode had information about this. You can check in the sources where it will be clear when the opcode accesses the f-table, whether it requires a power of two or not.

Cheers,
Andrés


On Tue, Sep 17, 2013 at 8:15 PM, luis jure <ljc@internet.com.uy> wrote:


the manual page for f statements has the following note:

"Not all opcodes accept tables whose size is not a power of two, since they
may depend on this for internal optimization."


with respect to this i have two questions:

- is there a list of all the opcodes that accept tables of arbitrary size?

- would it be too difficult or for some reason inconvenient that all the
  opcodes that normally access tables created with GEN01 could read tables
  of deferred size? (hint: fog)


best,


lj


Send bugs reports to the Sourceforge bug trackers
csound6:
            https://sourceforge.net/p/csound/tickets/
csound5:
            https://sourceforge.net/p/csound/bugs/
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"