Init
This commit is contained in:
31
cppdraft/expr/or.md
Normal file
31
cppdraft/expr/or.md
Normal file
@@ -0,0 +1,31 @@
|
||||
[expr.or]
|
||||
|
||||
# 7 Expressions [[expr]](./#expr)
|
||||
|
||||
## 7.6 Compound expressions [[expr.compound]](expr.compound#expr.or)
|
||||
|
||||
### 7.6.13 Bitwise inclusive OR operator [expr.or]
|
||||
|
||||
[inclusive-or-expression:](#nt:inclusive-or-expression "7.6.13 Bitwise inclusive OR operator [expr.or]")
|
||||
[*exclusive-or-expression*](expr.xor#nt:exclusive-or-expression "7.6.12 Bitwise exclusive OR operator [expr.xor]")
|
||||
[*inclusive-or-expression*](#nt:inclusive-or-expression "7.6.13 Bitwise inclusive OR operator [expr.or]") | [*exclusive-or-expression*](expr.xor#nt:exclusive-or-expression "7.6.12 Bitwise exclusive OR operator [expr.xor]")
|
||||
|
||||
[1](#1)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/expressions.tex#L7719)
|
||||
|
||||
The | operator groups left-to-right[.](#1.sentence-1)
|
||||
|
||||
The operands shall be of integral or unscoped enumeration type[.](#1.sentence-2)
|
||||
|
||||
The usual arithmetic conversions ([[expr.arith.conv]](expr.arith.conv "7.4 Usual arithmetic conversions")) are performed[.](#1.sentence-3)
|
||||
|
||||
Given the coefficients xi and yi of the base-2 representation ([[basic.fundamental]](basic.fundamental "6.9.2 Fundamental types"))
|
||||
of the converted operands x and y,
|
||||
the coefficient ri of the base-2 representation of the result r is 1 if at least one of xi and yi is 1, and 0 otherwise[.](#1.sentence-4)
|
||||
|
||||
[*Note [1](#note-1)*:
|
||||
|
||||
The result is the bitwise inclusive or function of the operands[.](#1.sentence-5)
|
||||
|
||||
â *end note*]
|
||||
Reference in New Issue
Block a user