220 35505 <1527647.07Qi8WvUZa@tjmaciei-mobl1> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Thiago Macieira <thiago@macieira.org>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Rotational shift operator
Date: Fri, 24 Nov 2017 16:09:48 -0800
Lines: 20
Approved: news@gmane.org
Message-ID: <1527647.07Qi8WvUZa@tjmaciei-mobl1>
References: <69593098-e2cc-487e-bd14-9001b27aa7c1@isocpp.org> <ad3a85eb-ae5e-4ea5-a68a-7521b5b12b3f@isocpp.org> <89af4d41-950e-4f4c-8f04-999db6c17b76@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: blaine.gmane.org 1511568599 17559 195.159.176.226 (25 Nov 2017 00:09:59 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Sat, 25 Nov 2017 00:09:59 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCB4TK757YBRBT7J4LIAKGQEJALNUUA@isocpp.org Sat Nov 25 01:09:51 2017
Return-path: <std-proposals+bncBCB4TK757YBRBT7J4LIAKGQEJALNUUA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wr0-f199.google.com ([209.85.128.199])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCB4TK757YBRBT7J4LIAKGQEJALNUUA@isocpp.org>)
	id 1eIO2X-0003d5-M2
	for gclcip-std-proposals@m.gmane.org; Sat, 25 Nov 2017 01:09:49 +0100
Original-Received: by mail-wr0-f199.google.com with SMTP id o20sf3413086wro.8
        for <gclcip-std-proposals@m.gmane.org>; Fri, 24 Nov 2017 16:09:52 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1511568592; cv=pass;
        d=google.com; s=arc-20160816;
        b=TCCyB1JhATK8ALhLABLuNaEl7esht2bv9ICwGTngfIt/VBISESeXCwd2xl1aT95aKl
         ySZw6pUXKu7n+wF0//RfHHi0Nb0jDG4apX6d37hoSxmq9PENMdgjskPjdap45VHriT97
         rH7ABw+UEC8KQ7fRrAIVym4yYSeTkEaq4n/mURRnMgWQIFM4m9qrfl8H9TXVuFq7Zlgo
         C24Bzo4Z12uDySTwqBtp243+Ed6xyfV8BSbUt0SGvjLXr6hx5FFfBUFX7GbwNV1msjTR
         HOLzerlxaaCn0AeGMItmS95byKiWtvpxGFIZRm2pNdrQ1T9qYyjnGiAC5l6ry1i6Czjt
         ccsw==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:reply-to:mime-version:references
         :in-reply-to:message-id:date:subject:to:from
         :arc-authentication-results:arc-message-signature:dkim-signature
         :arc-authentication-results;
        bh=qcSrBdydBRW4XfBhtSG42du3tvX1EC0ck2rqicJlBts=;
        b=Dij2AYrr1QSK3O0+YKP/Rski1DGGxaFAPBZrkiOtr0N4GknbgkkHdaPmd1eXR3+DtA
         IvirQX7ID7lGc+z/2CJCuocBp46J/0atw2bBkceepWIeOp+ZicjNk8vVs5Ad7MuPayZu
         KoUkZflcdrykncfA+S2f4r6yGbkUBuRk72iNFXMCAQHmjWgIcJSAKwJm0o7dDMgliMsw
         KDrx2levMatc3PWAo/dca/wsnofWDjHwFW2eRnpdydWMEkMtxzdeUgIdQ5B3pERXh5/Z
         oDee+VGEsO1DTcBABXirPjSzlQ5tl1LCiJQMFNfUgKgK9vHrL3Xe+DY9Q0rp2XnmPt2h
         DCeA==
ARC-Authentication-Results: i=2; mx.google.com;
       spf=pass (google.com: domain of thiago@macieira.org designates 78.47.120.188 as permitted sender) smtp.mailfrom=thiago@macieira.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=from:to:subject:date:message-id:in-reply-to:references:mime-version
         :x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=qcSrBdydBRW4XfBhtSG42du3tvX1EC0ck2rqicJlBts=;
        b=drXKUDSTM3yokbjY0laQmL+dyVDWqH7e666CEiBxMIPRylt0J7Lhcxt4F76sliSQWj
         infWJEypp25tNy9pANzTYydK1qiEa7UPy2/ya0im2A0Qkhtb8VTvOE5TBA8phGccfI+1
         4twfRQxrbCc+2fGfUfiBDCalWQcB//X5d2tgY+Q/PNC1U9bT0tvFFqpLS5GiEZ/S3Jjd
         swoRc0KFke8VTV8TSjc18CXizTfTiMIn+9yIQw37HRMg3pJLHk5DF+61FCz5YnVMuchJ
         NDYz8bYMnA+6AmVC9hShDPUyP88FSX4pxsG4DBJ62Ap95c7f+7S5OpVTnocp/1Jp/mF0
         eHVg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to
         :references:mime-version:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=qcSrBdydBRW4XfBhtSG42du3tvX1EC0ck2rqicJlBts=;
        b=sZYpfytLn4TsbOiUmqhmThZTpCDc+ENzniiWkgJCjXcS4o5HezyqZRajDYadnyqvXO
         wbvGHb9BhbgifKVfQk1ANpdHm6Go5BVf+zwJGQs7GQKokmIxnKkRFhiffc2EUGAYXDJ+
         JOCT/x/CVj3eIG3iP0OMbFf1Qd4S17cFJ+3aInvVlJU22E+CStFu/iB5wyh9KW8yjD7C
         NyNxLB17TAeU/m40jYo+heEIRRDbpRxOgvAiYjgJlQ5xKgq+LzJs20p4R1ThSEAQfAPd
         nXPvpH7Dayj5GtaKaol9wjJ5lWTYW8e3rUkEKEKJUHmaIUh6SAK9kQGZrK2c2tWk6S9c
         xu/g==
X-Gm-Message-State: AJaThX4Mat3GqVV5VkR6uBMAv/mSB61200vvvU+k56bQzgn+E7l9ItZo
	iaoZy/rO202yNGEf97CyS7RqNw==
X-Google-Smtp-Source: AGs4zMasBASReBevl7PY7wjnmOL/3htsCyMLKwOVjHg4+ToGMwXI518Z5ZBtoIgpkN2bOZkvv5ifTA==
X-Received: by 10.28.6.198 with SMTP id 189mr1280089wmg.26.1511568592170;
        Fri, 24 Nov 2017 16:09:52 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.28.188.132 with SMTP id m126ls2131013wmf.7.gmail; Fri, 24 Nov
 2017 16:09:50 -0800 (PST)
X-Received: by 10.223.197.201 with SMTP id v9mr24178233wrg.82.1511568590886;
        Fri, 24 Nov 2017 16:09:50 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1511568590; cv=none;
        d=google.com; s=arc-20160816;
        b=wL8Fg4x44LC9CsrFdSlT0Elj2jGl68AJihf79JeYsSVk/KmZAwPtGqeUK/4c2O/bpH
         GLV5E/CkAfnLzu7oGeQw7TU3vcb+/Z4bAWl/63MYP+Ym+W/l7eeOLWgtAAP2HhnX7MIO
         3dR5UZcUFo3HPRnwNAhsJYfqOr5zaqnnE8tyjLcgovdE/+WgSEUlZLmRlAN5nhLZzXJ5
         qFQnxV1dDK2rRfREAUAMRp7w8LW6z1Hdn8cuntblMzmhYAyh2ZPwGkBfFq63cEbPC1R1
         bqxfbZDS8lDvuFOeS+0nW59YHw8C3WbxS03yFjX6uaKHN9sjgdWjyT/sIQ7UGI3qCpUe
         xMNw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=content-transfer-encoding:mime-version:references:in-reply-to
         :message-id:date:subject:to:from:arc-authentication-results;
        bh=9yY5NzMTTmhXE6Lu/NRV/YtNBKpgvn97LUzpjDjRKIQ=;
        b=yNC9v3K2SP7wyv4HL+qocQi5173VvTdS6TSBWeyq47zhljO/dDMDDo7/cMykn7+StV
         pUQSAuIvD1AwFisLMAeiaes7WnFVrIVxU0Jzy4Jj+sWuasnWtZ1qe2HWyWeP02V90Fdi
         B3LWvC7fcOEJ/CKbwlUc32cTt5OkUm+2KvD9BTuB9Z1I6UJkowyUgn3/rB/0E/ElvMwr
         n1aZFjwDPJ57pPWLnqrrWEp5+crnVQPQoQHnwhBVWqmw8Lperc1epS2O5mvfgi4DTPJB
         UXnzQhMef3+ZcNKKNL8ByuQQADcOTJ1/k7XdL5ZT+M1zc6VNbtBZCQSF9L/mhTZWeXZC
         zY1g==
ARC-Authentication-Results: i=1; mx.google.com;
       spf=pass (google.com: domain of thiago@macieira.org designates 78.47.120.188 as permitted sender) smtp.mailfrom=thiago@macieira.org
Original-Received: from gondolin.macieira.info (gondolin.macieira.info. [78.47.120.188])
        by mx.google.com with ESMTP id g17si18620333wrg.377.2017.11.24.16.09.50
        for <std-proposals@isocpp.org>;
        Fri, 24 Nov 2017 16:09:50 -0800 (PST)
Received-SPF: pass (google.com: domain of thiago@macieira.org designates 78.47.120.188 as permitted sender) client-ip=78.47.120.188;
Original-Received: from tjmaciei-mobl1.localnet (unknown [IPv6:2601:1c0:4501:5f9f:10a8:5dac:57fd:2747])
	by gondolin.macieira.info (Postfix) with ESMTPSA id 7E67111A4E6
	for <std-proposals@isocpp.org>; Fri, 24 Nov 2017 16:09:50 -0800 (PST)
In-Reply-To: <89af4d41-950e-4f4c-8f04-999db6c17b76@isocpp.org>
X-Original-Sender: thiago@macieira.org
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of thiago@macieira.org designates 78.47.120.188 as permitted sender) smtp.mailfrom=thiago@macieira.org
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Google-Group-Id: 399137483710
List-Post: <https://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <https://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <https://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:35505
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/35505>

On sexta-feira, 24 de novembro de 2017 10:46:09 PST Nicol Bolas wrote:
> Bit-*rotation* is a less common operation than bit shifting.

Proof: the fact that there's no built-in rotation operator in any major 
language, not even in C that was supposed to be "portable assembly". 
Especially in the olden days when you coudn't count on the compilers 
understanding what you meant.

And if you want an even less common operation: rotate with carry.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center

-- 
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/1527647.07Qi8WvUZa%40tjmaciei-mobl1.

.
