please implement the 64 bits to long double type.

Post your requests and ideas on the future development of mikroC PRO for dsPIC30/33 and PIC24.
Post Reply
Author
Message
alcidesramos
Posts: 272
Joined: 17 Feb 2009 02:39
Location: Colombia
Contact:

please implement the 64 bits to long double type.

#1 Post by alcidesramos » 02 Feb 2012 19:40

Please i have fincytion, with cos, sin , acos fuction. but if i use float 32 bits fuction; i lost resolution.


please implement the 64 bits long double type. I like to mplab C30.



King regard Alcides Ramos.

onClick
Posts: 55
Joined: 18 Dec 2011 08:27
Location: UTC - 8 hours

Re: please implement the 64 bits to long double type.

#2 Post by onClick » 03 Feb 2012 02:41

Do not know how efficient they will be. How hard have your tried ? Use a L suffix (there is also LL for integers).

Note: I am using mC PRO PIC32. The sizeof operator indicates 8 bytes for a long double.

longDouble.png
longDouble.png (76.63 KiB) Viewed 4422 times
(The if statement is there so the variables are not optimized out. volatile as well, but is not needed for the ints.)


oC
working configuration: mmPIC32 v.1.10 (PIC32MX460F512L) ~ mC PRO PIC32 v.2.1.0.0 ~ vTFT v.2.30.0.0 ~ mProgPIC v.2.15 ~ uniReg ~ protoShield
to add when needed: usbUART (FT232R) ~ audioCodec (WM8731) ~ icd2Connector

User avatar
janko.kaljevic
Posts: 3565
Joined: 16 Jun 2011 13:48

Re: please implement the 64 bits to long double type.

#3 Post by janko.kaljevic » 03 Feb 2012 15:10

Hello,

long long or long double is used to declare long types (8 bytes) in PIC32 compilers.

In dsPIC compilers maximum size of types is long (4 bytes).

Best regards.

alcidesramos
Posts: 272
Joined: 17 Feb 2009 02:39
Location: Colombia
Contact:

Re: please implement the 64 bits to long double type.

#4 Post by alcidesramos » 03 Feb 2012 17:09

I have fuction with float munber, but i have problem with roundind float.

i have the project en dspic30.

i try the fuction in c30 and the problem it equal but if i enable the C30 option: "use 64 bit double".

The my functio work ok.

I think that it important that mikroc fro dspic i this option.


best reagrd.

Alcides Ramos
Attachments
double.JPG
double.JPG (57.38 KiB) Viewed 4407 times

User avatar
janko.kaljevic
Posts: 3565
Joined: 16 Jun 2011 13:48

Re: please implement the 64 bits to long double type.

#5 Post by janko.kaljevic » 07 Feb 2012 10:04

Hello,

Thanks for suggesting.
I will forward this request to our developers and we will consider it thoroughly.

Best regards.

Post Reply

Return to “mikroC PRO for dsPIC30/33 and PIC24 Wish List”