Open vitreo12 opened 4 years ago
static compilation of tables
#sine table table sineTable 1024: return sin((i / 1023.0) * twopi)
Internally, const + block is the way to go:
const
block
const mytable : array[100, float] = block: var t : array[100, float] for i in 0..<100: t[i] = float(i) t
static compilation of tables