From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13347 invoked by alias); 16 Feb 2004 18:55:02 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 13299 invoked from network); 16 Feb 2004 18:54:56 -0000 Received: from unknown (HELO localhost.redhat.com) (216.129.200.20) by sources.redhat.com with SMTP; 16 Feb 2004 18:54:56 -0000 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 93C1D2B92; Mon, 16 Feb 2004 13:54:55 -0500 (EST) Message-ID: <403111FF.3040700@gnu.org> Date: Mon, 16 Feb 2004 18:55:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030820 MIME-Version: 1.0 To: Andreas Schwab Cc: gdb-patches@sources.redhat.com Subject: Re: [patch/rfc] v2 bigcore.exp References: <402D0438.6010203@gnu.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-02/txt/msg00420.txt.bz2 > Andrew Cagney writes: > > >> + /* Compute an initial chunk size. The math is dodgy but it works >> + for the moment. Perhaphs there's a constant around somewhere. */ >> + { >> + size_t tmp; >> + for (tmp = 1; tmp > 0; tmp <<= 1) >> + max_chunk_size = tmp; > > > max_chunk_size = ~((size_t) -1 >> 1); What's to stop the right shift smearing the sign bit? (I've just checked in the current test, we can fix this once we know a better equation). Andrew