From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 113499 invoked by alias); 7 Jul 2017 14:45:48 -0000 Mailing-List: contact newlib-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-owner@sourceware.org Received: (qmail 113161 invoked by uid 89); 7 Jul 2017 14:45:46 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=advised 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 ESMTP; Fri, 07 Jul 2017 14:45:44 +0000 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7CE2E3B73C for ; Fri, 7 Jul 2017 14:45:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 7CE2E3B73C Authentication-Results: ext-mx06.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx06.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=vinschen@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 7CE2E3B73C Received: from calimero.vinschen.de (ovpn-116-16.ams2.redhat.com [10.36.116.16]) by smtp.corp.redhat.com (Postfix) with ESMTP id 353F2782C6 for ; Fri, 7 Jul 2017 14:45:43 +0000 (UTC) Received: by calimero.vinschen.de (Postfix, from userid 500) id 9B1C8A805A4; Fri, 7 Jul 2017 16:45:42 +0200 (CEST) Date: Fri, 07 Jul 2017 14:45:00 -0000 From: Corinna Vinschen To: newlib@sourceware.org Subject: Re: [PATCH] Synchronize RTEMS with FreeBSD Message-ID: <20170707144542.GG12696@calimero.vinschen.de> Reply-To: newlib@sourceware.org Mail-Followup-To: newlib@sourceware.org References: <20170707051210.15337-1-sebastian.huber@embedded-brains.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="UFHRwCdBEJvubb2X" Content-Disposition: inline In-Reply-To: <20170707051210.15337-1-sebastian.huber@embedded-brains.de> User-Agent: Mutt/1.8.0 (2017-02-23) X-SW-Source: 2017/txt/msg00579.txt.bz2 --UFHRwCdBEJvubb2X Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1516 On Jul 7 07:12, Sebastian Huber wrote: > Signed-off-by: Sebastian Huber > --- > newlib/libc/sys/rtems/include/sys/bitset.h | 17 ++++++++++++++++- > 1 file changed, 16 insertions(+), 1 deletion(-) >=20 > diff --git a/newlib/libc/sys/rtems/include/sys/bitset.h b/newlib/libc/sys= /rtems/include/sys/bitset.h > index ec75223e9..4c58f1fb7 100644 > --- a/newlib/libc/sys/rtems/include/sys/bitset.h > +++ b/newlib/libc/sys/rtems/include/sys/bitset.h > @@ -26,7 +26,7 @@ > * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE= OF > * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. > * > - * $FreeBSD: head/sys/sys/bitset.h 318781 2017-05-24 10:09:54Z kib $ > + * $FreeBSD: head/sys/sys/bitset.h 320755 2017-07-06 21:47:17Z kib $ > */ >=20=20 > #ifndef _SYS_BITSET_H_ > @@ -216,6 +216,21 @@ > __bit; \ > }) >=20=20 > +#define BIT_FLS(_s, p) __extension__ ({ \ > + __size_t __i; \ > + int __bit; \ > + \ > + __bit =3D 0; \ > + for (__i =3D __bitset_words((_s)) - 1; __i >=3D 0; __i--) { \ > + if ((p)->__bits[__i] !=3D 0) { \ > + __bit =3D flsl((p)->__bits[__i]); \ > + __bit +=3D __i * _BITSET_BITS; \ > + break; \ > + } \ > + } \ > + __bit; \ > +}) > + > #define BIT_COUNT(_s, p) __extension__ ({ \ > __size_t __i; \ > int __count; \ > --=20 > 2.12.3 Please apply. Thanks, Corinna --=20 Corinna Vinschen Cygwin Maintainer Red Hat --UFHRwCdBEJvubb2X Content-Type: application/pgp-signature; name="signature.asc" Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJZX56WAAoJEPU2Bp2uRE+gc60P/2Anblsxd4t4hAuef0VOTDsD q42nX+9XLzfWn+OY19PclS6jcRQUrqcbmhfkl1X8mYoXqmyyXjBNIiJkAAXrO28A Q1y2RfXetIywSjeqtLHGuTeCNJtaQKb16CmFKz6j7T80GHWzrJCu9NXpiTh58Wga y2NYHdw7uxgSqpkBhazG/UvbyL6G7+BfMj4wK/fiP9aFmAEVKHsXxurKZwBos/RZ 8EHB20dvkCAOO2SpUtSRgABWOvI6IEillQKdGbW5Vi12AZ9Qy0WijH0/yUN7+HUf jGFP0UagXC4w6zGE/h2bYUlGANoo8GvxjE3j/lxqueKry2oWjo4sWbaFrac5OB9/ 6z1lTQ7TQ8mADXSmZacBrw2255/DJyNRcriT92WX+ofbUPmbCHxSDijk+b4/Ppo7 7o8HIIpmcmSsGq+dwY9NA4CFvN02QnHG6MVyjkwo70Pc8JhptX+JOwy3Rrih2pe+ hrieL6IzwfdZ1fH4KH8O3k1+ey44EQQMaBJUuBUzUP7GXAdaO05DzHaj5hyBeYsu zgd++YroJ58DOwUkzLKMKuzt2Ym2gE1/Ou7TsUca2SZa61nPQui6PQhqYd/DSgWF IweIpf2KnZH8uAMOHRT9T48CZzgEv300E068kU++oupNcHVKdZB81t3ezWhV/2wb S5vnvdyUi+Jc9irhP5LU =Vo97 -----END PGP SIGNATURE----- --UFHRwCdBEJvubb2X--