atferrari
Full Member level 4
- Joined
- Jun 29, 2004
- Messages
- 237
- Helped
- 7
- Reputation
- 14
- Reaction score
- 3
- Trophy points
- 1,298
- Location
- Buenos Aires - Argentina
- Activity points
- 1,996
I've tried to compile fixed point routines from the math library in Microchip AN 617.
I found that divide or multiply, almost at the very end, use a flag (BSF FPFLAGS,NAN ) that is suposed to be employed in floating point routines.
Obviously, the compiler gives error because FPFLAGS and NAN do not need to be defined and doesn't pertain to that app. note either!!
In the code.zip file acompannying that AN, there is an archive showing FPFLAGS and NAN , among other, as specific for floating point routines.
Curiously, the contents of that archive is not include in the .pdf version of the AN617.
Additional detail: from all the flags defined as "for floating point" that one is the only one showing up here. And it is never checked anywhere else before or after (??)
Anyone knows what's actually going on?
Help appreciated.
Agustín Tomás
I found that divide or multiply, almost at the very end, use a flag (BSF FPFLAGS,NAN ) that is suposed to be employed in floating point routines.
Obviously, the compiler gives error because FPFLAGS and NAN do not need to be defined and doesn't pertain to that app. note either!!
In the code.zip file acompannying that AN, there is an archive showing FPFLAGS and NAN , among other, as specific for floating point routines.
Curiously, the contents of that archive is not include in the .pdf version of the AN617.
Additional detail: from all the flags defined as "for floating point" that one is the only one showing up here. And it is never checked anywhere else before or after (??)
Anyone knows what's actually going on?
Help appreciated.
Agustín Tomás