From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24637 invoked by alias); 23 Jul 2014 10:29:12 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 24617 invoked by uid 89); 23 Jul 2014 10:29:12 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 23 Jul 2014 10:29:11 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s6NAT9eu020020 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 23 Jul 2014 06:29:10 -0400 Received: from localhost (ovpn-116-68.ams2.redhat.com [10.36.116.68]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s6NAT8Ki019973; Wed, 23 Jul 2014 06:29:09 -0400 Date: Wed, 23 Jul 2014 10:44:00 -0000 From: Jonathan Wakely To: libstdc++@gcc.gnu.org Cc: Ulrich Drepper , gcc-patches@gcc.gnu.org Subject: Re: [PATCH] libstdc++: add uniform on sphere distribution Message-ID: <20140723102908.GM2361@redhat.com> References: <87a98eow4m.fsf@x240.local.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-SW-Source: 2014-07/txt/msg01508.txt.bz2 On 23/07/14 11:58 +0200, Marc Glisse wrote: >* can't we end up dividing by 0 if all values of the normal >distribution happen to be 0? As an aside, we already have divide-by-zero bugs in , it would be nice if someone could look at that. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60037