From owner-svn-src-head@FreeBSD.ORG Mon Jan 5 10:06:11 2015 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 00F89429; Mon, 5 Jan 2015 10:06:10 +0000 (UTC) Received: from mail108.syd.optusnet.com.au (mail108.syd.optusnet.com.au [211.29.132.59]) by mx1.freebsd.org (Postfix) with ESMTP id B344E1AB3; Mon, 5 Jan 2015 10:06:10 +0000 (UTC) Received: from c122-106-147-133.carlnfd1.nsw.optusnet.com.au (c122-106-147-133.carlnfd1.nsw.optusnet.com.au [122.106.147.133]) by mail108.syd.optusnet.com.au (Postfix) with ESMTPS id 353511A3E3A; Mon, 5 Jan 2015 20:45:14 +1100 (AEDT) Date: Mon, 5 Jan 2015 20:45:13 +1100 (EST) From: Bruce Evans X-X-Sender: bde@besplex.bde.org To: Garrett Cooper Subject: Re: svn commit: r276521 - head/contrib/netbsd-tests/lib/libm In-Reply-To: <9E7EDF01-88C2-4CB5-B26F-1F557E4441DF@gmail.com> Message-ID: <20150105195630.B1113@besplex.bde.org> References: <201501020057.t020vf4d063191@svn.freebsd.org> <20150102185046.K943@besplex.bde.org> <9E7EDF01-88C2-4CB5-B26F-1F557E4441DF@gmail.com> MIME-Version: 1.0 X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.1 cv=Qdxf4Krv c=1 sm=1 tr=0 a=7NqvjVvQucbO2RlWB8PEog==:117 a=PO7r1zJSAAAA:8 a=JzwRw_2MAAAA:8 a=nlC_4_pT8q9DhB4Ho9EA:9 a=cz2ZRIgtxKwA:10 a=wJWlkF7cXJYA:10 a=c3-DdYJoA5YA:10 a=2QSLavsyAAAA:8 a=JbzxhqCth5tsWHQe8-MA:9 a=45ClL6m2LaAA:10 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers , Garrett Cooper , Bruce Evans X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jan 2015 10:06:11 -0000 On Sun, 4 Jan 2015, Garrett Cooper wrote: > On Jan 2, 2015, at 0:03, Bruce Evans wrote: >>> =09=09rv =3D scalbnf(tests[i].inval, tests[i].exp); >>> =09=09ATF_CHECK_EQ_MSG(errno, tests[i].error, >>> =09=09 "test %zu: errno %d instead of %d", i, errno, >> >> The tests might set errno elsewhere, but scalbnf() obviously doesn't >> in FreeBSD (and shouldn't unless MATH_ERRNO), so the ATF_CHECK_EQ_MSG() >> test can have no effect. It is surprising that it doesn't sometimes >> fail if errno is always 0. If it always succeeds, then tests[i].error >> must be dead data (always 0) and the ATF_CHECK_EQ_MSG() test dead code >> (always pass). > > Hmmm=85 How is MATH_ERRNO supposed to work in FreeBSD. Based on documenta= tion I found =97 http://en.cppreference.com/w/cpp/numeric/math/math_errhand= ling =97 it=92s supposed to be used for reporting errors with errno since c= ++11, but that doesn=92t seem to be implemented in libc++/libstdc++ (at lea= st not based on my limited grep)? FWIW it seems like this value should be 0= , not 1... It works by never being set in math_errhandling, since its form of error handling is an implementation option that is only supported by bad implementations. The implementations that need it are mainly ones whose hardware doesn't support Infs and NaNs. IEEE754 made such hardware uncommon, and FreeBSD never supported such hardware. fdlibm has some support for errno, but this was never attached to math_errhandling and was removed in FreeBSD in 2005. math_errhandling is a macro in FreeBSD, with value always MATH_ERREXCEPT. Not supporting MATH_ERRNO only requires a single Inf (to replace ERANGE) and a single NaN (to replace EDOM). MATH_ERREXCEPT requires much more of IEEE754 to be useful. Bruce From owner-svn-src-head@FreeBSD.ORG Mon Jan 5 10:10:37 2015 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id F1B1F59E; Mon, 5 Jan 2015 10:10:36 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DE70E1AF6; Mon, 5 Jan 2015 10:10:36 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t05AAaSQ024578; Mon, 5 Jan 2015 10:10:36 GMT (envelope-from kevlo@FreeBSD.org) Received: (from kevlo@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t05AAaTn024577; Mon, 5 Jan 2015 10:10:36 GMT (envelope-from kevlo@FreeBSD.org) Message-Id: <201501051010.t05AAaTn024577@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: kevlo set sender to kevlo@FreeBSD.org using -f From: Kevin Lo Date: Mon, 5 Jan 2015 10:10:36 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r276693 - head/share/man/man4 X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jan 2015 10:10:37 -0000 Author: kevlo Date: Mon Jan 5 10:10:35 2015 New Revision: 276693 URL: https://svnweb.freebsd.org/changeset/base/276693 Log: Mention axge(4). Modified: head/share/man/man4/miibus.4 Modified: head/share/man/man4/miibus.4 ============================================================================== --- head/share/man/man4/miibus.4 Mon Jan 5 09:58:32 2015 (r276692) +++ head/share/man/man4/miibus.4 Mon Jan 5 10:10:35 2015 (r276693) @@ -8,7 +8,7 @@ .\" .\" $FreeBSD$ .\" -.Dd September 26, 2014 +.Dd January 5, 2015 .Dt MIIBUS 4 .Os .Sh NAME @@ -57,6 +57,8 @@ Atheros AR8121/AR8113/AR8114 PCIe Ethern ADMtek USB Ethernet .It Xr axe 4 ASIX Electronics AX88172 USB Ethernet +.It Xr axge 4 +ASIX Electronics AX88178A/AX88179 USB Ethernet .It Xr bce 4 Broadcom NetXtreme II Gigabit Ethernet .It Xr bfe 4 @@ -143,6 +145,7 @@ but as a result are not well behaved new .Xr arp 4 , .Xr aue 4 , .Xr axe 4 , +.Xr axge 4 , .Xr bce 4 , .Xr bfe 4 , .Xr bge 4 ,