NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: toolchain/45098: Cross build on Mac OS X 10.7.0 fails



The following reply was made to PR toolchain/45098; it has been noted by GNATS.

From: Paul Ripke <stixpjr%gmail.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: toolchain-manager%netbsd.org@localhost, gnats-admin%netbsd.org@localhost, 
        netbsd-bugs%netbsd.org@localhost
Subject: Re: toolchain/45098: Cross build on Mac OS X 10.7.0 fails
Date: Fri, 24 Jun 2011 19:53:23 +1000

 --0016368e2b7f25fc8504a6722c1f
 Content-Type: text/plain; charset=ISO-8859-1
 
 I guess you could always do:
 
 #undef ALIGN
 #define ALIGN(x) (((x) + sizeof(ldbl_t) - 1) & ~(sizeof(ldbl_t) - 1))
 
 but there's probably some crazy architecture with 6 byte long doubles.
 Yes, you could round up to a power of two... but really, why bother?
 So, just go with the following?
 
 #undef ALIGN
 #define ALIGN(x) (((x) + 15) & ~15)
 
 -- 
 Paul Ripke
 Ubi dubium ibi libertas
 
 --0016368e2b7f25fc8504a6722c1f
 Content-Type: text/html; charset=ISO-8859-1
 Content-Transfer-Encoding: quoted-printable
 
 I guess you could always do:<div><br></div><div><div><div>#undef ALIGN</div=
 ><div>#define ALIGN(x) (((x) + sizeof(ldbl_t) - 1) &amp; ~(sizeof(ldbl_t) -=
  1))<br clear=3D"all"></div></div></div><div><br></div><div>but there&#39;s=
  probably some crazy architecture with 6 byte long doubles.</div>
 <div>Yes, you could round up to a power of two... but really, why bother?</=
 div><div>So, just go with the following?</div><div><br></div><div><div>#und=
 ef ALIGN</div><div>#define ALIGN(x) (((x) + 15) &amp; ~15)<br clear=3D"all"=
 >
 </div></div><div><br></div><div>--=A0</div><div>Paul Ripke<br>Ubi dubium ib=
 i libertas<br>
 </div>
 
 --0016368e2b7f25fc8504a6722c1f--
 


Home | Main Index | Thread Index | Old Index