Please note as of Wednesday, August 15th, 2018 this wiki has been set to read only. If you are a TI Employee and require Edit ability please contact x0211426 from the company directory.

Restrict Type Qualifier

From Texas Instruments Wiki
Jump to: navigation, search

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

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.