From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,491e9c743fa9ad77,start X-Google-Attributes: gid1164f8,public X-Google-Thread: 1051a8,491e9c743fa9ad77,start X-Google-Attributes: gid1051a8,public X-Google-ArrivalTime: 1991-02-11 13:02:48 PST Path: gmdzi!unido!mcsun!sunic!dkuug!dkuugin!shj From: shj@login.dkuug.dk (Stig Jacobsen) Newsgroups: comp.sys.mips,comp.sys.dec Subject: BSD library for DECstation? Keywords: bsd,library,decstation Message-ID: Date: 11 Feb 91 18:50:42 GMT Sender: news@slyrf.dkuug.dk Followup-To: comp.sys.mips Xref: gmdzi comp.sys.mips:1089 comp.sys.dec:3828 BCD Math package for MIPS processors : I'm in urgent need for a BCD math package for a DECstation 3100 written in either ANSI C or preferably Mips assembler - has anybody heard of such a thing and/or know where I can get it ? It should basically be able to do the following things: add, sub, div, mul, cmp, neq, sqrt, round, trunc, frac, pow, log, ln, convert bcd to and from double, signed short, unsigned short, signed long, unsigned long etc. etc. and convert to and from ascii string. I don't care much what the underlying format of the BCD numbers are, as long as the package as such has a sufficient precision to use in an accounting system. (You know, accountants are picky about numbers !). If no one knows about such a gizmo - can anyone elaborate on the feasabi- lity of using 64 or 128 bit scaled integers to solve the problem. Thanks... B^) Please reply by mail to: wes@dd.dk -- Stig Jacobsen shj@login.dkuug.dk / sysadm