Best way for calling transcendental functions on NeXTstep?

NeXT Computer, Inc. -> NeXT Black Hardware

Title: Best way for calling transcendental functions on NeXTstep?
Post by: ardi on July 08, 2015, 02:54:34 PM
Hi,

Given that the 68040 builtin FPU lacks transcendental functions and emulates them in software, I'm trying to find how to call their software emulation as a library instead of as exception traps, in order to avoid the overhead of traps.

The only thing I found is a user-developed library that fully implements transcendental functions in software... I'm wondering if there isn't any way of calling the official Motorola fp emulation as a library instead of the trap mechanism.

Isn't there any compiler option for doing that?

I'm targeting NeXTstep 3.3 if that matters.

Thanks!
Title: Best way for calling transcendental functions on NeXTstep?
Post by: Noth on July 11, 2015, 08:32:44 PM
Better try the newsgroup archives for this... Apparently using -DINLINE_MATH or using lookup tables is the way to go.

Also look at the libs here : https://ftp.nice.ch/pub/next/developer/hardware/m68k/.
Title: Best way for calling transcendental functions on NeXTstep?
Post by: ardi on July 12, 2015, 05:07:42 AM
Quote from: "Noth"Better try the newsgroup archives for this... Apparently using -DINLINE_MATH or using lookup tables is the way to go.

Also look at the libs here : https://ftp.nice.ch/pub/next/developer/hardware/m68k/.
Thanks a lot! Lookup tables are not an option, I have a lot of code that depends on trigonometric and exponential/logarithm functions, and the way to go is to use the official Motorola lib, IMHO. Thanks a lot for all these hints!!!
Title: Best way for calling transcendental functions on NeXTstep?
Post by: Noth on July 12, 2015, 09:04:56 AM
You're welcome! It was quite fun trawling through Usenet to find information on this...

Go to top  Forum index