Operator (computer programming): Difference between revisions

Content deleted Content added
Examples: Organize by category
Examples: Make last two like the others
Line 76:
* [[Comma operator|Comma]]: <code>e{{red|,}} f</code>
 
<!-- This should probably become a separate article at a later stage ... or a new section ... or deleted -->
{{anchor|Compound operator|Fused operation}}
;Compound operators
Combining two or more* [[atomiccompound operation]]sassignment into one to simplify [[compound expressionoperator|expression]]s, eases compiler optimizations depending on the underlying hardware implementation, or improve performance for speed or size. An example are the set of [[compoundCompound assignment operator]]s (aka augmented assignmentsassignment) in C/C++: <code>+=</code>, <code>-=</code>, <code>*=</code>, <code>/=</code>, <code>%=</code>, <code><<=</code>, <code>>>=</code>, <code>&=</code>, <code>^=</code>, <code>|=</code> Similarly, some [[digital signal processor]]s provide special [[opcode]]s for [[fused operation]]s<!-- This should probably become a separate article at a later stage, possibly combined with the similar topic on compound operations --> like [[multiply–accumulate]] (MAC/MAD) or [[fused multiply–add]] (FMA) and some high-performance software libraries support functions like [[cis (mathematics)|{{math|1=cis ''x'' = cos ''x'' + ''i'' sin ''x''}}]] to boost processing speed or reduce code size.
* [[fused operation|Fused]]: such as [[cis (mathematics)|{{math|1=cis ''x'' = cos ''x'' + ''i'' sin ''x''}}]]
 
== Operator features in programming languages ==