Xref: utzoo comp.unix.microport:1027 comp.unix.xenix:2687
Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!pasteur!ucbvax!cogsci.berkeley.edu!jsilva
From: jsilva@cogsci.berkeley.edu (John Silva)
Newsgroups: comp.unix.microport,comp.unix.xenix
Subject: Re: speeding up compress on 286
Summary: Replacement long int shift routines
Message-ID: <25097@ucbvax.BERKELEY.EDU>
Date: 16 Jul 88 10:44:16 GMT
References: <347@bdt.UUCP> <100@obie.UUCP>
Sender: usenet@ucbvax.BERKELEY.EDU
Reply-To: jsilva@cogsci.berkeley.edu.UUCP (John Silva)
Organization: University of California, Berkeley
Lines: 14

I just finished hacking compress to be MUCH faster on my AT system (SCO 2.2.0g)
by replacing the original 32 bit shift routines with a set of hand coded
routines.  I managed to speed up compress by about 24%!  (16 bit compressions
spend most of the time shifting around long integers, and the Microsoft
compiler uses a one bit at a time shift routine for 32 bit shifts)

If anyone would like a copy of these routines (two 8086 asm sources),
I would be happy to mail them.  However, keep in mind that they may not
function correctly on flavors of xenix other than SCO.

John P. Silva

---
UUCP:	ucbvax!cogsci!jsilva
DOMAIN:	jsilva@cogsci.berkeley.edu