home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!mnemosyne.cs.du.edu!nyx!ebergman
- From: ebergman@nyx.cs.du.edu (Eric Bergman-Terrell)
- Subject: Re: BCD arithmetic
- Message-ID: <1992Nov17.151258.18158@mnemosyne.cs.du.edu>
- X-Disclaimer: Nyx is a public access Unix system run by the University
- of Denver for the Denver community. The University has neither
- control over nor responsibility for the opinions of users.
- Sender: usenet@mnemosyne.cs.du.edu (netnews admin account)
- Organization: Nyx, Public Access Unix at U. of Denver Math/CS dept.
- References: <1992Nov17.124233.20938@cs.joensuu.fi>
- Date: Tue, 17 Nov 92 15:12:58 GMT
- Lines: 26
-
- In article <1992Nov17.124233.20938@cs.joensuu.fi> jmeri@cs.joensuu.fi (Juha Meriluoto) writes:
- >I am working on a project that needs BCD arithmetics.
- >Could anyone give me pointer(s) to BCD arithmetics packages
- >written in C (preferably public domain, I don't have money to
- >spend on this one...) Thanks in advance!
-
- There's a BCD class included with the Borland C++ compilers. Also, there is
- BCD arithmetic built directly into the 8x87 family of math coprocessors.
- If you're willing to write maybe 20 lines of in-line assembly code you can
- use the hardware BCD instructions. I don't know whether the 8x87 emulation
- library shipped with the Borland compiler emulates these instructions, or
- whether the emu87.dll in windows does either - but if you have the math chip
- or an 80486 DX, you've everything you need.
-
- Terrell
-
- >
- > JMe
- >
- >--
- >******************************************************************************
- >Juha Meriluoto e-mail: jmeri@cs.joensuu.fi
- > letters: Nuottaniementie 16 A 9 80140 JOENSUU FINLAND
- > phone: +358-49-379040
-
-
-