mirror of
https://github.com/apple/swift.git
synced 2026-06-20 15:42:51 +02:00
9ead8781d4
Co-authored-by: Alex Martini <amartini@apple.com> Co-authored-by: Graham Lee <glee23@apple.com> Co-authored-by: Chris Adamson <cadamson@apple.com> Co-authored-by: Kirby Turner <kirby_turner@apple.com> Co-authored-by: Paris Pinkney <ppinkney@apple.com> Co-authored-by: Dave Spector <dspector@apple.com> Co-authored-by: Sofia Rodriguez Morales <sofia_rodriguez@apple.com> Co-authored-by: Ethan Kusters <ekusters@apple.com> Co-authored-by: Goli Mohammadi <g_mohammadi@apple.com> Co-authored-by: Adora Vaz <a_vaz@apple.com> Co-authored-by: David Rönnqvist <ronnqvist@apple.com> Co-authored-by: Nate Merseth Cook <natecook@apple.com> Co-authored-by: Susan Conant <susan_c@apple.com>
90 lines
1.9 KiB
Markdown
90 lines
1.9 KiB
Markdown
# Integer Operators
|
|
|
|
Perform arithmetic and bitwise operations or compare values.
|
|
|
|
## Topics
|
|
|
|
### Arithmetic
|
|
|
|
- ``Swift/Int/+(_:_:)``
|
|
- ``Swift/Int/-(_:_:)``
|
|
- ``Swift/Int/*(_:_:)``
|
|
- ``Swift/Int//(_:_:)``
|
|
- ``Swift/Int/%(_:_:)-6lyj3``
|
|
|
|
### Arithmetic with Assignment
|
|
|
|
- ``Swift/Int/+=(_:_:)-57xij``
|
|
- ``Swift/Int/*=(_:_:)``
|
|
- ``Swift/Int//=(_:_:)``
|
|
- ``Swift/Int/%=(_:_:)-30t77``
|
|
|
|
### Masked Arithmetic
|
|
|
|
- ``Swift/Int/&+(_:_:)-2lmdu``
|
|
- ``Swift/Int/&-(_:_:)-3tqmb``
|
|
- ``Swift/Int/&*(_:_:)``
|
|
- ``Swift/Int/&+=(_:_:)``
|
|
- ``Swift/Int/&-=(_:_:)``
|
|
- ``Swift/Int/&*=(_:_:)``
|
|
|
|
### Bitwise Operations
|
|
|
|
- ``Swift/Int/&(_:_:)-8h2q8``
|
|
- ``Swift/Int/&=(_:_:)``
|
|
- ``Swift/Int/|(_:_:)-26x3w``
|
|
- ``Swift/Int/|=(_:_:)-4b29i``
|
|
- ``Swift/Int/^(_:_:)-591r5``
|
|
- ``Swift/Int/^=(_:_:)-1ypi9``
|
|
- ``Swift/Int/~(_:)``
|
|
|
|
### Bit Shift
|
|
|
|
- ``Swift/Int/<<(_:_:)-60q97``
|
|
- ``Swift/Int/<<(_:_:)-2xfjq``
|
|
- ``Swift/Int/<<=(_:_:)-66xgb``
|
|
- ``Swift/Int/>>(_:_:)-635pg``
|
|
- ``Swift/Int/>>(_:_:)-97tkh``
|
|
- ``Swift/Int/>>=(_:_:)-9p0ct``
|
|
- ``Swift/Int/&<<(_:_:)-3euzz``
|
|
- ``Swift/Int/&<<(_:_:)-voti``
|
|
- ``Swift/Int/&<<=(_:_:)-58orm``
|
|
- ``Swift/Int/&<<=(_:_:)-13miv``
|
|
- ``Swift/Int/&>>(_:_:)-35o0c``
|
|
- ``Swift/Int/&>>(_:_:)-76ndv``
|
|
- ``Swift/Int/&>>=(_:_:)-2i06i``
|
|
- ``Swift/Int/&>>=(_:_:)-704vj``
|
|
|
|
### Negation
|
|
|
|
- ``Swift/Int/-(_:)``
|
|
- ``Swift/Int/+(_:)``
|
|
|
|
### Comparison
|
|
|
|
- ``Swift/Int/==(_:_:)-29tqz``
|
|
- ``Swift/Int/==(_:_:)-1zalu``
|
|
- ``Swift/Int/!=(_:_:)``
|
|
- ``Swift/Int/!=(_:_:)-1baz3``
|
|
- ``Swift/Int/!=(_:_:)-4jphg``
|
|
- ``Swift/Int/<(_:_:)-3wpum``
|
|
- ``Swift/Int/<(_:_:)-3r70c``
|
|
- ``Swift/Int/<=(_:_:)-28qlv``
|
|
- ``Swift/Int/<=(_:_:)-yera``
|
|
- ``Swift/Int/>(_:_:)-9cdiy``
|
|
- ``Swift/Int/>(_:_:)-7d57p``
|
|
- ``Swift/Int/>=(_:_:)-443dp``
|
|
- ``Swift/Int/>=(_:_:)-7v58y``
|
|
|
|
### Range Expressions
|
|
|
|
- ``Swift/Int/..<(_:_:)``
|
|
- ``Swift/Int/...(_:_:)``
|
|
- ``Swift/Int/...(_:)-6ct66``
|
|
- ``Swift/Int/..<(_:)``
|
|
- ``Swift/Int/...(_:)-4mm5u``
|
|
|
|
### Deprecated
|
|
|
|
- ``Swift/Int/-=(_:_:)-3pws5``
|