I am having problems with simple programm which should approximate reflow profile by 7th order polynomial approximation.

main.c

#define F_CPU 3333333 #include <stdint.h> #include <xc.h> // F_CPU #include <avr/io.h> #include <util/delay.h> #include <math.h> #include <avr/pgmspace.h> const float koef[8] PROGMEM = {1.103965E-13, -1.218061E-10, 5.197188E-08, -1.109508E-05, 1.335485E-03, -1.060644E-01, 6.772042E+00, -1.131728E+02}; int main(void) { float y; uint8_t i; uint16_t x; while (1) { for (x = 25; x < 350; x++) { y = 0; asm("nop"); for (i = 8; i > 0; i--) { y += koef[8 - i] * powf(x, i - 1); } asm("nop"); } _delay_ms(500); } }

The stdint.h includes only:

# include "stdint-gcc.h" and this includes:

#ifdef __INT8_TYPE__

typedef __INT8_TYPE__ int8_t;

#endif

#ifdef __INT16_TYPE__

typedef __INT16_TYPE__ int16_t;

#endif

What's the problem ?