What does 'restrict' mean?
I see a lot of use in function declarations, such as
size_t fread(void* restrict ptr, size_t size, size_t nobj, FILE*
restrict fp);
but what does the keyword 'restrict' mean? there is no definition found
in K&R 2nd.
.
Relevant Pages
- Re: Language enhancement idea: C# method instance fields
... like Restrict to method or Scoping may ... improve the usability of the other variations. ... This is why the keyword is better. ... using the "static" keyword keeps feature in line with the same ... (microsoft.public.dotnet.languages.csharp) - Re: Why is the kfree() argument const?
... "restrict" is the C99 keyword for such requirement (or better ... The restrict keyword controls aliasing, ... inserting const there would do anything at all. ... that a function taking a const pointer argument will not modify the memory ... (Linux-Kernel) - Re: SELECT and RESTRICT statements
... As long as you stay in the SQL World, ... RESTRICT is part of SQL's data definition language subset. ... keyword is analogous to relational algebra's "project" operation. ... Relational algebra term Relational algebra symbol SQL keyword ... (comp.databases.theory) - Re: what is restrict keyword used for
... eg int *restrict p; ... See 6.7.3.1 Formal definition of restrict. ... Without the 'restrict' keyword, a compiler is required to coordinate the code generated by those two so that 'i' ends up with the right value. ... It has always been undefined behavior to use memcpy() if the source for your copy overlaps the target. ... (comp.lang.c) - Re: Matlab Vectorisation Speed - How is it done in c++?
... since the 1999 C standard introduced the "restrict" keyword. ... Microsoft's C compiler does not support ISO C. ... (comp.soft-sys.matlab) |
|