ВходНаше всё Теги codebook 无线电组件 Поиск Опросы Закон Среда
3 июля
1309908 Топик полностью
SciFi (15.05.2023 18:04, просмотров: 150) ответил Nikolay_Po на Вот, попробовал почистить даблы, но облом: в AVR-GCC 12 нет функции возведения в степень одинарной точности, только дабл:
Чип и Дейл спешат на помощь: 

https://gcc.gnu.org/wiki/avr-gcc


In avr-gcc up to v9, double and long double are only 32 bits wide and implemented in the same way as float.

In avr-gcc v10 and higher, the layout of double and long double are determined by configure options --with-double= and --with-long-double=, respectively. The default layout of double is like float, and the default layout of long double is a 64-bit IEEE format, see GCC configure options for details. Depending on the configuration, command line options -mdouble=32 and -mdouble=64 are available so that the type layout of double can be chosen at compile time, similar for -mlong-double=32 and -mlong-double=64 for long double. In order to test in a program which type layout has been chosen, GCC built-in macros __SIZEOF_DOUBLE__ and __SIZEOF_LONG_DOUBLE__ can be used.

ส็็็็็็็็็็็็็็็็็็็็็็็็็༼ ຈل͜ຈ༽ส้้้้้้้้้้้้้้้้้้้้้้้