From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 109d8a,232e89dd4cc3c154 X-Google-NewGroupId: yes X-Google-Thread: 1014db,232e89dd4cc3c154 X-Google-NewGroupId: yes X-Google-Thread: 1094ba,232e89dd4cc3c154 X-Google-NewGroupId: yes X-Google-Thread: 101deb,dea70f96af442ea2 X-Google-NewGroupId: yes X-Google-Thread: 103376,232e89dd4cc3c154 X-Google-NewGroupId: yes X-Google-Attributes: gid9ef9b79ae9,gid4516fb5702,gid8d3408f8c3,gidbda4de328f,gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!teal.octanews.net!news-out.octanews.net!indigo.octanews.net!auth.brown.octanews.com.POSTED!not-for-mail Date: Sun, 01 May 2011 21:21:04 -0700 From: Thad Smith User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 Newsgroups: sci.math,comp.lang.c,comp.lang.fortran,comp.lang.pl1,comp.lang.ada Subject: Re: KISS4691, a potentially top-ranked RNG. References: <4dae2a4b$0$55577$c30e37c6@exi-reader.telstra.net> <4db90113$0$77724$c30e37c6@exi-reader.telstra.net> <4dbd6e9c$0$12957$892e0abb@auth.newsreader.octanews.com> <925saiFj03U7@mid.individual.net> In-Reply-To: <925saiFj03U7@mid.individual.net> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAABGdBTUEAAK/INwWK6QAAABl0 RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAAGUExURQAAAP///6XZn90AAAEiSURB VHjajJVRkoUwCAQ797/01nM1MjAQU+WHSssEB8IKC1ZZ+RnxlYkvCMf4ROByTQQf4oX4BhghHIDy 4Tm+ApiQXxBP7RKAVPdePoUCNbAQCGatoTkDYL8OieBJ54VH6XcZ/u8we00318UrhufRLqfVdwHX yzfEF5aY6ZYWfmer7wVIvZSQIHqxN17/Fby/s5TW+GNJSbYOyUAuKrt0e/PYflB/qVtZdgO63QT0 HYTuj2N/guk4vk0MaSDbC6paLULf9mRJpqzRsgUIjSFWE/vkoon1Ul+SJp8xf41vADqidT5DliNg B0OZU5ihtEbgeCwypjBGG+rRmO9ElHM6E7ns83S+LTQdxlQiz4gTgJ+Vg6T5HPYJhrnQSOrHwp8A AwCyFgY4Ien7rQAAAABJRU5ErkJggg== Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <4dbe2304$0$12961$892e0abb@auth.newsreader.octanews.com> Organization: Octanews NNTP-Posting-Date: 01 May 2011 22:20:38 CDT X-Complaints-To: abuse@octanews.net Xref: g2news2.google.com sci.math:234614 comp.lang.c:126731 comp.lang.fortran:41564 comp.lang.pl1:2454 comp.lang.ada:20090 Date: 2011-05-01T22:20:38-05:00 List-Id: On 5/1/2011 12:58 PM, Ian Collins wrote: > On 05/ 2/11 03:31 AM, Thad Smith wrote: >> >> Here is a modification of the program with masking to produce correct results >> with any conforming C implementation. It truncates where when required. A good >> optimizer should eliminate the unneeded masking for 32-bit unsigned long. > > Why oh why can't people just use fixed width types? What's the obsession with > unsigned long and masking? In my case, I work with a lot of compilers not supporting C99. The code is thus more portable to existing applications. Standard C doesn't guarantee the existence of a 32-bit integer type. -- Thad