diff -r 4891d49809bb -r 2b3996fc09a1 core/com.nokia.carbide.cpp.compiler.doc.user/html/pragmas/p_opt_strength_reduction_strict.htm --- a/core/com.nokia.carbide.cpp.compiler.doc.user/html/pragmas/p_opt_strength_reduction_strict.htm Mon Jul 19 15:31:48 2010 -0500 +++ b/core/com.nokia.carbide.cpp.compiler.doc.user/html/pragmas/p_opt_strength_reduction_strict.htm Mon Jul 19 16:13:24 2010 -0500 @@ -1,27 +1,27 @@ - - - - - - - opt_strength_reduction_strict - - - - -

opt_strength_reduction_strict

-

Uses a safer variation of strength reduction optimization.

-
Syntax
-

#pragma opt_strength_reduction_strict on | off | reset -

-
Targets
- All platforms.
-
Remarks
-

Like the pragma opt_strength_reduction, this setting replaces multiplication instructions that are inside loops with addition instructions to speed up the loops. However, unlike the regular strength reduction optimization, this variation ensures that the optimization is only applied when the array element arithmetic is not of an unsigned type that is smaller than a pointer type.

-

This pragma does not correspond to any panel setting. To check this setting, use __option (opt_strength_reduction_strict), described in Checking Settings. The default varies according to the compiler.

-

- - - - - + + + + + + + opt_strength_reduction_strict + + + + +

opt_strength_reduction_strict

+

Uses a safer variation of strength reduction optimization.

+
Syntax
+

#pragma opt_strength_reduction_strict on | off | reset +

+
Targets
+ All platforms.
+
Remarks
+

Like the pragma opt_strength_reduction, this setting replaces multiplication instructions that are inside loops with addition instructions to speed up the loops. However, unlike the regular strength reduction optimization, this variation ensures that the optimization is only applied when the array element arithmetic is not of an unsigned type that is smaller than a pointer type.

+

This pragma does not correspond to any panel setting. To check this setting, use __option (opt_strength_reduction_strict), described in Checking Settings. The default varies according to the compiler.

+

+ + + + +