BUG: SQRT from FLOAT on ARM

Please add any bug reports that require discussion here

Moderator: Benj

Forum rules
Only bug reports will be considered here. General questions should not be posted in this forum.
Post Reply
User avatar
Mantas
Posts: 221
Joined: Tue May 15, 2012 10:32 pm
Location: Klaipeda, Lithuania - North sea, UK
Has thanked: 57 times
Been thanked: 27 times
Contact:

BUG: SQRT from FLOAT on ARM

Post by Mantas »

The same was in v5 and it's still not fixed, and now it's the same in v6, get a compilation error when you try to get a sqrt from floating point number:

Code: Select all

Test.c:94: warning: implicit declaration of function 'float32_sqrt'
BR,
Mantas
Science is my true religion.

User avatar
JonnyW
Posts: 1230
Joined: Fri Oct 29, 2010 9:13 am
Location: Matrix Multimedia Ltd
Has thanked: 63 times
Been thanked: 290 times
Contact:

Re: BUG: SQRT from FLOAT on ARM

Post by JonnyW »

Hi Mantas. Looks like the prototype hasn't been added, will mark this up on the todo list.

Jonny

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: BUG: SQRT from FLOAT on ARM

Post by Benj »

This has now been sorted and will be fixed in the next patch.

User avatar
Mantas
Posts: 221
Joined: Tue May 15, 2012 10:32 pm
Location: Klaipeda, Lithuania - North sea, UK
Has thanked: 57 times
Been thanked: 27 times
Contact:

Re: BUG: SQRT from FLOAT on ARM

Post by Mantas »

Hi Benj,

How can I fix this in v5 myself?

Regards,
Mantas
Science is my true religion.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: BUG: SQRT from FLOAT on ARM

Post by Benj »

Hi Mantas,

Add this line to the defines section of supplementary code window, or if you want to fix permanently then append to the CAL/ARM/ARM_CAL_Float.c file.

#define float32_sqrt(A) sqrt(A)

User avatar
Mantas
Posts: 221
Joined: Tue May 15, 2012 10:32 pm
Location: Klaipeda, Lithuania - North sea, UK
Has thanked: 57 times
Been thanked: 27 times
Contact:

Re: BUG: SQRT from FLOAT on ARM

Post by Mantas »

Thank you Benj!
Science is my true religion.

Post Reply