svn commit: r265045 - projects/random_number_generator/sys/dev/random

Mark R V Murray markm at FreeBSD.org
Mon Apr 28 17:41:26 UTC 2014


On 28 Apr 2014, at 14:12, John Baldwin <jhb at freebsd.org> wrote:

> On Monday, April 28, 2014 07:51:08 AM Mark Murray wrote:
>> -#if !defined(__arm__) && !defined(__mips__) && !defined(__i386__) &&
>> !defined(__pc98__) +#if !defined(__arm__) && !defined(__mips__) &&
>> !defined(__i386__) && !defined(__pc98__) && !defined(__powerpc__) /* We do
>> have an inbuilt __uint128_t type */
> 
> A better test would be to use
> 
> #ifdef __SIZEOF_INT128__
> 
> instead of listing architectures.  (Especially given it might be true on
> a given platform based on compiler options like -march.)  This is what
> Boost uses to detect a native 128-bit integer and works with both GCC and
> clang.

Thank you!

This was on my “to-ask” list.

M
-- 
Mark R V Murray

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 353 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/svn-src-projects/attachments/20140428/310214ba/attachment.sig>


More information about the svn-src-projects mailing list