Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
double precision (64bit) with pic32
28-05-2015, 02:21 AM,
#1
double precision (64bit) with pic32
hello , some one can confirm

pic32-gcc -fno-short-double

will enable 64bit doube (8byte double precision ) ?

Math lib run with double 64bit?

thank you
Reply
28-05-2015, 09:32 AM,
#2
RE: double precision (64bit) with pic32
1/ Yes, you can get 64-bit double type using the -fno-short-double option

2/ p32-gcc has been build with gmp, mpfr, and mpc libraries for multi-precision arithmetic operations.
So if you need precision add #include<gmp.h> in your code and -lgmp option in the makefile and you will be able to use the gmp functions.

I'd be very glad to know more about all these mathematics libraries in order to turn them in a Pinguino library, so you're welcome to test them.

  Wink
It is easier to complain than it is to do, but it is better to do than it is to complain.
Reply
07-07-2015, 08:22 PM,
#3
RE: double precision (64bit) with pic32
ok Smile where find the make file? there is one for default?

ps need add -fno-short-double too
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)