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>
1.9 KiB
1.9 KiB
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/+=(_:_:)-57xijSwift/Int/*=(_:_:)Swift/Int//=(_:_:)Swift/Int/%=(_:_:)-30t77
Masked Arithmetic
Swift/Int/&+(_:_:)-2lmduSwift/Int/&-(_:_:)-3tqmbSwift/Int/&*(_:_:)Swift/Int/&+=(_:_:)Swift/Int/&-=(_:_:)Swift/Int/&*=(_:_:)
Bitwise Operations
Swift/Int/&(_:_:)-8h2q8Swift/Int/&=(_:_:)Swift/Int/|(_:_:)-26x3wSwift/Int/|=(_:_:)-4b29iSwift/Int/^(_:_:)-591r5Swift/Int/^=(_:_:)-1ypi9Swift/Int/~(_:)
Bit Shift
Swift/Int/<<(_:_:)-60q97Swift/Int/<<(_:_:)-2xfjqSwift/Int/<<=(_:_:)-66xgbSwift/Int/>>(_:_:)-635pgSwift/Int/>>(_:_:)-97tkhSwift/Int/>>=(_:_:)-9p0ctSwift/Int/&<<(_:_:)-3euzzSwift/Int/&<<(_:_:)-votiSwift/Int/&<<=(_:_:)-58ormSwift/Int/&<<=(_:_:)-13mivSwift/Int/&>>(_:_:)-35o0cSwift/Int/&>>(_:_:)-76ndvSwift/Int/&>>=(_:_:)-2i06iSwift/Int/&>>=(_:_:)-704vj
Negation
Swift/Int/-(_:)Swift/Int/+(_:)
Comparison
Swift/Int/==(_:_:)-29tqzSwift/Int/==(_:_:)-1zaluSwift/Int/!=(_:_:)Swift/Int/!=(_:_:)-1baz3Swift/Int/!=(_:_:)-4jphgSwift/Int/<(_:_:)-3wpumSwift/Int/<(_:_:)-3r70cSwift/Int/<=(_:_:)-28qlvSwift/Int/<=(_:_:)-yeraSwift/Int/>(_:_:)-9cdiySwift/Int/>(_:_:)-7d57pSwift/Int/>=(_:_:)-443dpSwift/Int/>=(_:_:)-7v58y
Range Expressions
Swift/Int/..<(_:_:)Swift/Int/...(_:_:)Swift/Int/...(_:)-6ct66Swift/Int/..<(_:)Swift/Int/...(_:)-4mm5u
Deprecated
Swift/Int/-=(_:_:)-3pws5