From owner-freebsd-current Sun Sep 27 18:04:00 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA22252 for freebsd-current-outgoing; Sun, 27 Sep 1998 18:04:00 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from smtp01.primenet.com (smtp01.primenet.com [206.165.6.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA22209 for ; Sun, 27 Sep 1998 18:03:36 -0700 (PDT) (envelope-from tlambert@usr05.primenet.com) Received: (from daemon@localhost) by smtp01.primenet.com (8.8.8/8.8.8) id SAA29302; Sun, 27 Sep 1998 18:03:25 -0700 (MST) Received: from usr05.primenet.com(206.165.6.205) via SMTP by smtp01.primenet.com, id smtpd029282; Sun Sep 27 18:03:20 1998 Received: (from tlambert@localhost) by usr05.primenet.com (8.8.5/8.8.5) id SAA08252; Sun, 27 Sep 1998 18:03:17 -0700 (MST) From: Terry Lambert Message-Id: <199809280103.SAA08252@usr05.primenet.com> Subject: Re: Compiler Problem in 64bit math? To: shimon@simon-shapiro.org Date: Mon, 28 Sep 1998 01:03:17 +0000 (GMT) Cc: freebsd-current@FreeBSD.ORG In-Reply-To: from "Simon Shapiro" at Sep 27, 98 08:22:41 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > works correctly. IF, however, I change the first line to be: > > register off_t top_size = QUAD_MAX, ... > > then the test at the bottom is always false. This is with large numbers, > such as QUAD_MAX... What processor are you using? If the Alpha, then I'm surprised. If Intel, well, you realize that registers are 32 bits, right? I'm not sure the compiler knows how to do a 64 bit register, but you might be confusing it into trying. 8-(. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message