Restrict Type Qualifier

From Texas Instruments Embedded Processors Wiki

Jump to: navigation, search
Translate this page to   

The restrict type qualifier can be used to greatly speed up certain loops. However, if not used properly, it can result in code that has undefined behavior. The following links describe the proper and improper use of the restrict type qualifier.

Also refer to the C99 standard, section 6.7.3.1.

In some instances, the restrict keyword may not affect performance in a way that the programmer expects. The wiki page Restrict Inlining Problem describes one such situation.

Leave a Comment
Personal tools
Namespaces
Variants
Actions
Navigation
Print/export
Toolbox