freemint / fdlibm

Math library
78 stars 25 forks source link

Add support for 040/060 FPUs #4

Open mikrosk opened 3 years ago

mikrosk commented 3 years ago

As the 68040/68060 FPU have several instructions emulated, the current check based on -mhard-float (or __HAVE_68881__ to be precise) isn't enough. We should check also for given CPU macro and not enable instructions which are emulated so when compiled with -m68040 or -m68060 the library will be 100% exception-free.