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.
please implement the 64 bits to long double type.
-
- Posts: 272
- Joined: 17 Feb 2009 02:39
- Location: Colombia
- Contact:
Re: please implement the 64 bits to long double type.
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.
(The if statement is there so the variables are not optimized out. volatile as well, but is not needed for the ints.)
oC
Note: I am using mC PRO PIC32. The sizeof operator indicates 8 bytes for a long double.
(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
to add when needed: usbUART (FT232R) ~ audioCodec (WM8731) ~ icd2Connector
- janko.kaljevic
- Posts: 3565
- Joined: 16 Jun 2011 13:48
Re: please implement the 64 bits to long double type.
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.
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.
-
- Posts: 272
- Joined: 17 Feb 2009 02:39
- Location: Colombia
- Contact:
Re: please implement the 64 bits to long double type.
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
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 (57.38 KiB) Viewed 4407 times
- janko.kaljevic
- Posts: 3565
- Joined: 16 Jun 2011 13:48
Re: please implement the 64 bits to long double type.
Hello,
Thanks for suggesting.
I will forward this request to our developers and we will consider it thoroughly.
Best regards.
Thanks for suggesting.
I will forward this request to our developers and we will consider it thoroughly.
Best regards.