220 38158 <1695197.Kxq4M8jdJr@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: memcpy/memset/etc overloads for volatile memory
Date: Wed, 23 May 2018 12:13:20 -0300
Lines: 23
Approved: news@gmane.org
Message-ID: <1695197.Kxq4M8jdJr@tjmaciei-mobl1>
References: <CAFdMc-0NAvWrkwzpgEKq4DQj=0vL_0F2s17XyR9MSUNJk5R0sw@mail.gmail.com> <5B0520CD.30204@gmx.net> <CAFdMc-3mTTm5hUovuzz51TrJKW8HhVRBjt8kf1obvN0g=+OMhg@mail.gmail.com>
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 1527088283 16459 195.159.176.226 (23 May 2018 15:11:23 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Wed, 23 May 2018 15:11:23 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCB4TK757YBRBFMKS3MAKGQENPDYKEI@isocpp.org Wed May 23 17:11:19 2018
Return-path: <std-proposals+bncBCB4TK757YBRBFMKS3MAKGQENPDYKEI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-qk0-f200.google.com ([209.85.220.200])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCB4TK757YBRBFMKS3MAKGQENPDYKEI@isocpp.org>)
	id 1fLVQ3-00047s-Cr
	for gclcip-std-proposals@m.gmane.org; Wed, 23 May 2018 17:11:15 +0200
Original-Received: by mail-qk0-f200.google.com with SMTP id c73-v6sf22784432qke.2
        for <gclcip-std-proposals@m.gmane.org>; Wed, 23 May 2018 08:13:26 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1527088406; cv=pass;
        d=google.com; s=arc-20160816;
        b=ksIF2p8FOi3WVRuZtOqMZqbvzjt/Ql1bzI5XcszXzKo1polABTABEB37G+FDTRas7N
         TaU9C765ZaeYt0WIdnQIbjYmShzrsASB0tB2eYIRSA8eCaolVLKAS3K8k/a1B0sHIc6A
         oVcF1xcbRHQJMFntc4hAT8fUZ+x+wdLP0vVCEW1cAHVJRLuQ62zxernREnH4GloKOSLx
         fPb8VHB2t/xVeo1niWIhK7TmgzUPZ8Oy5vQ0SGG0e5aHQQ8N3F5yMSdMLhZR4lLe06X9
         YQRhnjVZLXJzUqrxsKf6RQxvj6xlYtWhwRH5JMe2qO1HEMG6v6I8h6DzMSgfuGUDohva
         5++g==
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=LJTnYMh95vbPPvuL7Smn1w3lJg3yamyKS2gl98aAJgg=;
        b=JShYo2gKoMcLVg2GeU/mZORzQD7HgUS6JTi6Nk/l4rl9/s8D1q5abxMO1X+7JNOCMu
         Xly0r7AB5mCm9QWlgj5wh8hh9fgBXf0u4LCY0sZ9YJsygfE9rlYBAa7WKyfZ0SrdLx3K
         ACKtLMAkq0tCzKJuQaFp4noRbqlFlbVENGi7A+Lm6+evoaPHqA+r7G9LYImWuguzlBLD
         v0wkpzyccI78jJgbGtFi4Qpas08UdZwtT/U4OIMcEcF2VAcr6LG76mqiPZC/72bpry/p
         EmHwumFoW6LwTrOLgkFdfATXoKuU742A/HLf5AGPpmQbDWXrOwTGB0wmue2gk6AqdNd0
         zJzw==
ARC-Authentication-Results: i=2; mx.google.com;
       spf=pass (google.com: domain of thiago@macieira.org designates 2001:19f0:5:2221::1:3 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=LJTnYMh95vbPPvuL7Smn1w3lJg3yamyKS2gl98aAJgg=;
        b=H/dSScQtp7Lw3Q5Q23uaxFPT6jX/nG23QjCSyLc2ofRqcsORDzykZHZNcsOmBMytiD
         eyoDwmYPk/CaDUxFyJmiB2JRpgTMy6QO3mCDP2DwNG5n4bOHJg8+WP2QJQ5XBaPmjurL
         kJ3dcKAuwgPF8loXgOLZJDs8BCuV0fRi9WBIjU7VyNzMtajJn/wv/DQA2ubx2cHWQ9YH
         YSVjP8003Hl5uJJ2Gb8CjINuZK5/nBbtfJ2tu0C0qZ0LAYQFEw39LxMAUl01h21+eX0z
         Ur3jwSWsqNYGYNGLNXEOkQiunsJ9mx4seqdZnh5UcRDzJIbXtP8llQQnHagCeNBTM6BS
         U9uA==
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=LJTnYMh95vbPPvuL7Smn1w3lJg3yamyKS2gl98aAJgg=;
        b=YAOhUcgrUJi7JKfCC8Q4aC7LKVHBSwgKsVMu+vvAZ3lq8q5a3ufkhYycKqCEXOTss6
         XXE4uGFznratXXLGvlinkvDD+ggEhMSblGQa7MbBFIwDv9FHRILFXLBawZsQKbyV6GWP
         7WJ76VwPNohSTbGYdQSmQJuQ9NUi0zokIa1ZK3tsGZnJloyQi5TQN0hqRJEFHFAvJEo/
         jTTCBgBW+RXi5X7leq3djX8l+Q3GJtffbBH6LwI3ANG7/mFFAjt4oENi+evWOwiLBIRm
         f652mwVsGjGZcoTf8coaFWTPYMZBWRlkhETIkD3COe44Kur+F3CUvkyD/LhUIzfEfg7y
         XY6Q==
X-Gm-Message-State: ALKqPwfmVx70SfSqR1FUCV+tU91m7ecXp4Ol+uKDHGHGevR/LgzQMzng
	QVECxBUF99AtFUVkyPrS8KRNZg==
X-Google-Smtp-Source: AB8JxZrMv6UackMP1LJzrCT6A/6/GeKMWYkhPtftE+P/RW775PO741kArn5BnfS/VPIWaq7gqHsjIg==
X-Received: by 2002:a0c:e8c7:: with SMTP id m7-v6mr1689904qvo.13.1527088406440;
        Wed, 23 May 2018 08:13:26 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 2002:ac8:13c8:: with SMTP id i8-v6ls9909440qtj.2.gmail; Wed, 23
 May 2018 08:13:25 -0700 (PDT)
X-Received: by 2002:ac8:c41:: with SMTP id l1-v6mr2398728qti.317.1527088405403;
        Wed, 23 May 2018 08:13:25 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1527088405; cv=none;
        d=google.com; s=arc-20160816;
        b=xTnRIIAISJm+Q9sf1KGCUlA8ZJ/6qmlBKurELk8GrsXVzsQKY2eqbrieYk+M+pl1qD
         R3hpM3F/pJ+OSgnUiQ5NTWOPswS5+8pqeT4anH+GFp1L7Z+JwUwu3jiVoJCFWGVMssNK
         gl/y99H1UskDuizcUhRv9ICLJwHZk5wE2VVCMgGUig2R43itVEGbF7YWCTWF+uxtx635
         WXqS8fiwE+PD5rJTvK9HPoTL1Er1P9exipAsU292xqyiAhNyd36cWkZEnDi+RYLxXIFM
         2pEkEtJ7q92tw5G+VaHUy+Ekd73+9l38kt6LBAaXrpevn86TBJCQGKG31i4aaihUnB9U
         HAWg==
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=6p5pQk02sASiTPi/d8RUdGIcalI3xFOiuoI4QWSmd24=;
        b=c8V8Y2gNEDOKIHu8ncAfk400mIsw21fObKSHP20+4bgRJ3qPbTsCPOUVY5cqTfWiUC
         184xynS8nRz5hW7/cCT8FTSYUYriIyH4l8jHr28FOA73jlDJnNeHBS5CeM35ppstJgs8
         YODW1hKeOD/a2U7wAepHA8miAeRRuPKJI5E6KTSXGGFgbLmdNqf/3yN12GDnezhuEx+O
         4SLewM89j/YP6JsD5Bl7+CuNw9tsG3xq4fOFZbowvlrVYn0x616dkgYsDHGIM6+Negyh
         FF/awT/fXBoFmdPjtdGM7zLPX7/mI2icNDHcqlwiJm2r3JEl3TAu3NrlCigoiVis7aps
         OtcQ==
ARC-Authentication-Results: i=1; mx.google.com;
       spf=pass (google.com: domain of thiago@macieira.org designates 2001:19f0:5:2221::1:3 as permitted sender) smtp.mailfrom=thiago@macieira.org
Original-Received: from smtp.macieira.info (smtp.macieira.info. [2001:19f0:5:2221::1:3])
        by mx.google.com with ESMTPS id z4-v6si1342058qvm.127.2018.05.23.08.13.25
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Wed, 23 May 2018 08:13:25 -0700 (PDT)
Received-SPF: pass (google.com: domain of thiago@macieira.org designates 2001:19f0:5:2221::1:3 as permitted sender) client-ip=2001:19f0:5:2221::1:3;
Original-Received: from tjmaciei-mobl1.localnet (189-69-95-251.dsl.telesp.net.br [189.69.95.251])
	by smtp.macieira.info (Postfix) with ESMTPSA id 14573EDA9
	for <std-proposals@isocpp.org>; Wed, 23 May 2018 08:13:23 -0700 (PDT)
In-Reply-To: <CAFdMc-3mTTm5hUovuzz51TrJKW8HhVRBjt8kf1obvN0g=+OMhg@mail.gmail.com>
X-Original-Sender: thiago@macieira.org
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of thiago@macieira.org designates 2001:19f0:5:2221::1:3 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-Spam-Checked-In-Group: 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:38158
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/38158>

On Wednesday, 23 May 2018 10:31:15 -03 dgutson . wrote:
> I think that we could think about some requirements packed in something
> like a memory_traits, where it would specify:
>   - pointer type (optionally volatile-qualified)
>   - alignment requirements
>   - memory synchronization needs / specifications (an enumerator)
>   - vectorization habilities

Or, like I said, you can roll out your own memcpy or memset (which are quite 
trivial) if you have specific requirements.

-- 
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/1695197.Kxq4M8jdJr%40tjmaciei-mobl1.

.
