delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2016/01/05/05:34:55

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
Date: Tue, 5 Jan 2016 11:37:13 +0100 (CET)
X-X-Sender: igor2 AT igor2priv
To: "Gabriel Paubert (paubert AT iram DOT es) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
X-Debug: to=geda-user AT delorie DOT com from="gedau AT igor2 DOT repo DOT hu"
From: gedau AT igor2 DOT repo DOT hu
Subject: Re: [geda-user] Merging stuff. How to make it happen
In-Reply-To: <20160105090732.GA17930@visitor2.iram.es>
Message-ID: <alpine.DEB.2.00.1601051124150.9035@igor2priv>
References: <CAJXU7q8jLiY2oAGmkgfXfzdNoAg2xVRx8bxgAXyF_qqYs=9Dgw AT mail DOT gmail DOT com> <CAC4O8c8=Vh7DcVrdrG4GE7ssBNG_VuxDLw2JSyg=Bv7Lnvfysg AT mail DOT gmail DOT com> <CAJXU7q-iNx7PVbZHe_SC+VGs1SN-zOSPEyQjBc6CS2qD8wnpvw AT mail DOT gmail DOT com> <CAC4O8c8sm-jp7+jvV_QJ9Zskwb31JsmPUA+BY2UkUMg31_Htsg AT mail DOT gmail DOT com>
<CAJXU7q_K3xSdNWaZy3AZ_zCCAGWjvasc8TrJYrD5xz-CZujYDA AT mail DOT gmail DOT com> <CAC4O8c_=Hch0ttt56fyfTFaw+tcpsNG9ZA9wyfeLCynK=Bqp0A AT mail DOT gmail DOT com> <CAJXU7q8eto_ByskRgpQJB47YjEqOc5vaXwQ-7tGsQfefC403eQ AT mail DOT gmail DOT com> <201601041946 DOT u04Jkn25014629 AT envy DOT delorie DOT com>
<CAJXU7q831fi7+iNYD_9J75y3cjAp1__Ao8nHewuz1emNYYrvUg AT mail DOT gmail DOT com> <alpine DOT DEB DOT 2 DOT 00 DOT 1601050404350 DOT 9035 AT igor2priv> <20160105090732 DOT GA17930 AT visitor2 DOT iram DOT es>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
MIME-Version: 1.0
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--0-1681394706-1451990233=:9035
Content-Type: TEXT/PLAIN; charset=UTF-8; format=flowed
Content-Transfer-Encoding: QUOTED-PRINTABLE



On Tue, 5 Jan 2016, Gabriel Paubert (paubert AT iram DOT es) [via geda-user AT delori=
e.com] wrote:
>>
>> Since the coordinate type is an integer (I consider it sort of a
>> fixed point number, as it is in nanometer), and values are large,
>> calculations may overflow. E.g. assume signed 32 bit coords, you get
>> about 2.1 meters as max board size. Now look at rubber_callback():
>> at some point it does an x*=3Dx. This means x has to be wider than
>> int32_t else the actual limit comes down to sqrt(2.1).
>
> Confused, sqrt(2^31) is about 46000, so that's 46=C2=B5m.

You are right, I forgot to ^2 the nanometer multiplier.

> Please, do no use long doubles for anything. While doubles are more or
> less standardized on IEEE-754 (or 854?) representation (there are
> variations wrt the bit-level representation of NaN and infinities),
> there are at least 4 different flavours of long doubles I know of:

I agree.

An interesting theoretical option is to use 64 bit integers for=20
intermediate calculations (for 32 bit coords). If the geo code is=20
centralized, it's easier to experiment with things like that.

--0-1681394706-1451990233=:9035--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019