I have some integer processing code that is called very intensively and need to be as fast as possible, I therefore use &+ &- &/ &* instead of + - / * which results in a significant speedup.
However, I also need to use % and I noticed that there is no &% ... That is, FixedWidthInteger has: func remainderReportingOverflow(dividingBy: Self) but there is no: func unsafeRemainder(dividingBy: Self) which is different from the other …ReportingOverflow-unsafe…-pairs: func addingReportingOverflow(Self) func subtractingReportingOverflow(Self) func dividedReportingOverflow(by: Self) func multipliedReportingOverflow(by: Self) func unsafeAdding(Self) func unsafeSubtracting(Self) func unsafeMultiplied(by: Self) func unsafeDivided(by: Self) Is this intentional and if so why? /Jens
_______________________________________________ swift-users mailing list swift-users@swift.org https://lists.swift.org/mailman/listinfo/swift-users