Re: Workaround for binary arithmatic

From: Date: Tue, 31 Jul 2001 14:55:12 +0000
Subject: Re: Workaround for binary arithmatic
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-60424@lists.php.net to get a copy of this message
On Tuesday 31 July 2001 15:26, Richard Ellerbrock wrote: > I thought about that but that would require almost everybody using my app > (OpenSource) requiring a rebuild of php. This would really detract from its > usefulness. > > -- > Richard Ellerbrock > richarde@eskom.co.za > > >>> Phil Driscoll <phil@dialsolutions.co.uk> 2001/07/31 04:02:50 >>> > > Use the gmp extension. Ok - then the only other solution I could think of (and for me it was easier just to build php with gmp) was to split all your integers up into 16 bit chunks and do the maths longhand on the 16 bit integers. That way, you'll avoid the top bit set problem. Cheers -- Phil Driscoll

« previous php.general (#60424) next »