realbasic-nug
[Top] [All Lists]

Re: Intel vs. PPC math gotcha

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Intel vs. PPC math gotcha
From: Norman Palardy <npalardy at great-white-software dot com>
Date: Thu, 31 May 2007 14:57:47 -0600
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <fed2e2560705301533t6d8f66cdw86e8a3125dcf4128 at mail dot gmail dot com> <15F7B30A-E60E-4AA0-AF1E-F48054C42201 at great-white-software dot com> <5d7ca37e0705301827k7040dabvb66af85f6972cd70 at mail dot gmail dot com> <fed2e2560705310906i5b2ca1f1h2d02bc2603d5a75d at mail dot gmail dot com> <4C41BA69-F26B-4AF0-A004-94C1BE42DC54 at great-white-software dot com> <fed2e2560705310918t346e76ddv457853d8e8fc5583 at mail dot gmail dot com> <F5C48B64-1B9A-4FA3-B27B-715E58A306EE at great-white-software dot com> <091FD75A-4356-4C3F-A54E-A91F3D97EF0F at declareSub dot com>
On 31-May-07, at 10:52 AM, Charles Yeomans wrote:

> Or try this code:
>
> dim N as UInt64 = constUInt64
>
> and inspect the result in the debugger -- I see 0.
>
> Charles Yeomans

reported as <http://www.realsoftware.com/feedback/viewreport.php? 
reportid=rhyvjndk>

Why I can use a const in a method with &h8000000000000000 as the  
value but a const added to a window gives me 0 is beyond me
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


From  Thu 31 May 2007 15:16:52 -0600
Return-Path: <realbasic-nug-bounces at lists dot realsoftware dot com>
X-Original-To: listarchive at realsoftware dot com
Delivered-To: listarchive at realsoftware dot com
Received: by xmail.realsoftware.com (Postfix, from userid 1037)
        id 1540B29E21FE; Thu, 31 May 2007 14:17:21 -0700 (PDT)
X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on 
        www.realsoftware.com
X-Spam-Level: 
X-Spam-Status: No, score=-3.0 required=4.5 tests=ALL_TRUSTED,AWL,BAYES_00,
        NO_REAL_NAME autolearn=ham version=3.1.1
Received: from lists.realsoftware.com (m.realsoftware.com [66.116.103.65])
        by xmail.realsoftware.com (Postfix) with ESMTP id B1D7C29E21D3;
        Thu, 31 May 2007 14:17:00 -0700 (PDT)
Received: from real-software-mini.local (localhost [127.0.0.1])
        by lists.realsoftware.com (Postfix) with ESMTP id 830CA339259;
        Thu, 31 May 2007 16:16:53 -0500 (CDT)
X-Original-To: realbasic-nug at lists dot realsoftware dot com
Delivered-To: realbasic-nug at lists dot realsoftware dot com
Received: from mail.verex.com (mail.verex.com [66.116.103.197])
        by lists.realsoftware.com (Postfix) with ESMTP id 1043333924C
        for <realbasic-nug at lists dot realsoftware dot com>;
        Thu, 31 May 2007 16:16:49 -0500 (CDT)
Received: from [66.116.103.197] (localhost [127.0.0.1])
        by mail.verex.com (Postfix) with SMTP id 40C7175D2AC
        for <realbasic-nug at lists dot realsoftware dot com>;
        Thu, 31 May 2007 15:16:52 -0600 (MDT)
Date: Thu, 31 May 2007 15:16:52 -0600
Subject: Re: DrawString Y offset
From: joe at strout dot net
To: realbasic-nug at lists dot realsoftware dot com
In-Reply-To: <3DF58E7E-E725-4650-A3E2-83CACE3C31D4 at stretchedout dot com>
X-Mailer: VerEx Email Gateway
Message-Id: <20070531211652 dot 40C7175D2AC at mail dot verex dot com>
X-BeenThere: realbasic-nug at lists dot realsoftware dot com
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: realbasic-nug-bounces at lists dot realsoftware dot com
Errors-To: realbasic-nug-bounces at lists dot realsoftware dot com

On May 31, 2007, at 20:55 UTC, GregO wrote:

> > Let's see, at 72 dpi, 32767 pixels is about 40 feet... you must
> > have one humongous monitor!  :)
> 
> Actually, a really long text file. Grrrr..... Well, back to the  
> drawing board.

I think you missed my point.  Unless you actually have a 40-foot
monitor, you don't need to ever call DrawString with coordinate values
outside +/- 32767.  Just check the coordinates of the string you're
about to draw, and if they're ridiculously far out, simply don't make
the call.  Better yet, check them against the bounds of whatever you're
drawing into, and skip any that are going to be entirely outside of
that.

Best,
- Joe

--
Joe Strout -- joe at strout dot net
Strout Custom Solutions


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>