Hi,

I'm programming SHARC DSPs with VDSP 5.1.

I'd like to create variables with values that are based on a calculation.

I know it's possible with other IDEs I use (not from ADI).

Example:

.var LOG10_2_CONSTANT = 0.30103;

How can I solve this with a formula like LOG10(2.0)?

Also some other calculation would be helpful e.g. exp, sqrt, x^y etc.

Thanks!

Christian

Sorry there is no such support in VisualDSP++ or CCES. I'm guessing the processor that you have this support for has a maths co-processor and access to instructions to support LOG10 etc and the constants were defined useing that.

Obviously you will have access to the C and DSP runtime libraries to calculate log/sqrt results etc at runtime. Do you require directions for using runtime library functions?

Regards,

Stuart.