[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: restrict
From: |
Jeffrey Walton |
Subject: |
Re: restrict |
Date: |
Mon, 10 Feb 2020 03:39:23 -0500 |
On Sun, Feb 9, 2020 at 10:03 PM Bruno Haible <address@hidden> wrote:
> ...
> Which function declarations could therefore profit from the 'restrict'
> keyword?
[SNIP ...]
I think the case of interest is subobjects of arrays:
char a[] = "Hello World";
char* b = a+5;
memcpy(a,b,5) would get you in trouble due to restrict. memmov(a,b,5)
would be OK.
Punning might be another interesting case, like the way the internet
functions seem to cast everything to byte arrays.
Jeff
- Possible testing case of snprintf., Mats Erik Andersson, 2020/02/09
- Re: Possible testing case of snprintf., Tim Rühsen, 2020/02/09
- Re: restrict, Bruno Haible, 2020/02/09
- Re: restrict,
Jeffrey Walton <=
- Re: restrict, Tim Rühsen, 2020/02/10
- Re: restrict, Paul Eggert, 2020/02/16
- Re: restrict, Bruno Haible, 2020/02/16
- Re: restrict, Bruno Haible, 2020/02/16
- Re: restrict, Paul Eggert, 2020/02/16
- Re: restrict, Bruno Haible, 2020/02/16
- Re: restrict, Tim Rühsen, 2020/02/17
- Re: restrict, Bruno Haible, 2020/02/17
- Re: restrict, Paul Eggert, 2020/02/17
- Re: restrict, Bruno Haible, 2020/02/17