NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.

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 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.

E2e.jpg {{
  1. switchcategory:MultiCore=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article Restrict Type Qualifier here.

Keystone=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article Restrict Type Qualifier here.

C2000=For technical support on the C2000 please post your questions on The C2000 Forum. Please post only comments about the article Restrict Type Qualifier here. DaVinci=For technical support on DaVincoplease post your questions on The DaVinci Forum. Please post only comments about the article Restrict Type Qualifier here. MSP430=For technical support on MSP430 please post your questions on The MSP430 Forum. Please post only comments about the article Restrict Type Qualifier here. OMAP35x=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article Restrict Type Qualifier here. OMAPL1=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article Restrict Type Qualifier here. MAVRK=For technical support on MAVRK please post your questions on The MAVRK Toolbox Forum. Please post only comments about the article Restrict Type Qualifier here. For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article Restrict Type Qualifier here.

}}

Hyperlink blue.png Links

Amplifiers & Linear
Audio
Broadband RF/IF & Digital Radio
Clocks & Timers
Data Converters

DLP & MEMS
High-Reliability
Interface
Logic
Power Management

Processors

Switches & Multiplexers
Temperature Sensors & Control ICs
Wireless Connectivity