pawel@alberta.UUCP (Pawel Gburzynski) (10/07/87)
I am looking for a package to perform integer arithmetic (addition, subtraction, multiplication, division) for multiple-length integer numbers. The package must be runnable on a Vax 11/780 running 4.3 BSD UNIX. I understand that it is not a big deal to write such a package (and if I get no response I will have to do it); however, it would save me two or three days, if the package I'm looking for were ready somewhere around. The source code is absolutely necessary as I will have to make certain adjustments to fit the package into the program I need it for. Please respond via E-mail. Thanks in advance, Pawel Gburzynski The University of Alberta Department of Computing Science Edmonton, Alberta, Canada T6G 2H1
guy%gorodish@Sun.COM (Guy Harris) (10/08/87)
> I am looking for a package to perform integer arithmetic > (addition, subtraction, multiplication, division) for multiple-length > integer numbers. The package must be runnable on a Vax 11/780 running > 4.3 BSD UNIX. Will the "mp" package, whose source is supplied with 4.3BSD (or with V7, for that matter), do? Guy Harris {ihnp4, decvax, seismo, decwrl, ...}!sun!guy guy@sun.com
exodus@uop.UUCP (Freddy Kreuger) (10/10/87)
In article <30329@sun.uucp>, guy%gorodish@Sun.COM (Guy Harris) writes: > > I am looking for a package to perform integer arithmetic > > (addition, subtraction, multiplication, division) for multiple-length > > integer numbers. The package must be runnable on a Vax 11/780 running > > 4.3 BSD UNIX. > > Will the "mp" package, whose source is supplied with 4.3BSD (or with V7, for > that matter), do? > Guy Harris > {ihnp4, decvax, seismo, decwrl, ...}!sun!guy > guy@sun.com mp uses odd storage techniques, etc. I have the basic four functions (+,-,/, *) written in C to handle any-length BCD strings (two digits/byte). The { routines were written for a Data Structures class (which was taught in Ada) and are not as optimized as they could be but they work. If the poster of the original request wants them, mail me!! Greg Onufer GEnie: G.ONUFER University of the Pacific UUCP: ...!ucbvax!\ **POSTMASTER @ UOP** -ucdavis!\ ...!lll-crg!/ -uop.edu!{exodus, exodusr, postmaster, root} ...!ptsfa!cogent!/ ...!cepu!retix!/