& reference not compatible with esp-idf
shaneapowell opened this issue · comments
Hi Rob.
I was going to try a few of your optimizations today with your latest code.
Unfortunately, the esp32-idf compiler doesn't like the references arg for your isincos256 function. espidf is primarily C
void isincos256(uint32_t v, int &si, int &co);
and also the
void isincos(float v, float &si, float &co);
Line 52 in f24882d
I changed the function prototype, and in code to use a *
and it seems to be compiling now at least, but I've not actually switched to your isincos256 function yet.
void isincos256(uint32_t v, int *si, int *co);
Hi,
Sounds like a bug as references do not exist in 'C'.
I'll try to fix it asap.
@shaneapowell
Created - https://github.com/RobTillaart/FastTrig/tree/develop with 2x fix + updated examples.
Please verify if this works with esp-idf
Merged into master and released 0.3.2