![]() |
Site Archive (Complete) | |||
|
ABOUT US |
CONTACT |
ADVERTISE |
SUBSCRIBE |
SOURCE CODE |
CURRENT PRINT ISSUE |
NEWSLETTERS
|
RESOURCES
|
BLOGS
|
PODCASTS
|
CAREERS
|
||||
July 01, 1999
Restricted Pointers are ComingArch D. Robison
C9X introduces the new type qualifier restrict. Why it's there and where it pays off takes a bit of explaining.
Figure 1: What possible compiler optimizations might look like if done by hand
#define N 1000
/* Kernel with hoisting of invariant done by hand. */
void
with_hoisting( float * restrict a, float * restrict b,
int n, int j ) {
|
|
||||||||||||||||||||||||||
|
|