Article View: comp.std.c
Article #4601Re: 64bit Int routines
From: Earl Chew
Date: Wed, 10 Jan 1996 02:14
Date: Wed, 10 Jan 1996 02:14
18 lines
1449 bytes
1449 bytes
Adam Nash wrote: > I need routines for bitshift, multiply, and divide. > Multiply should take two longs and return a wide. Divide should divide > a long into a wide, and bitshift should be able to shift a wide n bits, > either way (+ for right, - for left) Take a look at the source for g++. There are long long compatibility routines in there written in assembler and C. Earl -- +----------------------------------------------------------------------+ | Earl Chew Email: earl_chew@aus.hp.com | | Hewlett-Packard Australia Ltd Tel: +61 3 9210 5528 | | Australian Telecom Operation Fax: +61 3 9210 5550 | | 347 Burwood Highway GPS: 37 48'44"S 145 8'51"E | | Burwood East, Victoria 3151, Australia | +----------------------------------------------------------------------+
Technical Details
Message-ID:
<30F32100.5483@aus.hp.com>Path:
arc1-ca.pugleaf.net!news.corp.hp.com!newsReferences:
<adamnash-1412951604220001@gel.stanford.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.corp.hp.com!news From: Earl Chew <earl_chew@aus.hp.com> Newsgroups: comp.std.c Subject: Re: 64bit Int routines Date: Wed, 10 Jan 1996 13:14:24 +1100 Organization: Hewlett-Packard Co. Message-ID: <30F32100.5483@aus.hp.com> References: <adamnash-1412951604220001@gel.stanford.edu> NNTP-Posting-Host: hpautorb.aus.hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 2.0b3 (X11; I; HP-UX A.09.05 9000/715) To: Adam Nash <adamnash@cs.stanford.edu>