TIP: Click on subject to list as thread! ANSI
echo: public_domain
to: Paul Edwards
from: Frank Malcolm
date: 1996-01-01 08:14:12
subject: math functions

Hi, Paul.

PE> One thing that I can't do in pdpclib, because I don't know
PE> how they are calculated, is the maths routines.

PE> I know that the 80387 provides a lot of math functions as
PE> instructions and was wondering how easy it would be to
PE> write assembler routines that just used the built-in
PE> instructions.  However, even knowing all the built-in
PE> op-codes, I don't think that is enough to do some of the
PE> stuff, you need to know the formula too.


PE> At the moment,
PE> 1. On a machine with no 80387 there is no maths functions.
PE> 2. On a machine with a 80387 there is no maths functions.

PE> It would be better if:
PE> 1. On a machine with no 80387 there is no maths functions.
PE> 2. On a machine with a 80386 there IS maths functions.

PE> Does anyone have the ability and tenacity to implement some
PE> or all of the following functions marked "unimplemented"
PE> (except the last 3, as I can do them myself?  I will post the
PE> descriptions of the functions in the next message, quoting
PE> from the ANSI C draft...

Why don't you just look at the code generated from one of your compilers
when you compile for 'copro present', then duplicate that? If C can't do
asm instructions (Turbo Pascal can) you might have to make external objs
with MASM or TASM.

Regards, FIM.

 * * Looking for taglines - see Dictionary of Quotations!
@EOT:

---
* Origin: Pedants Inc. (3:711/934.24)
SEEN-BY: 690/718 711/809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.