@@ -134,68 +134,6 @@ internal actual fun safeMultiply(a: Int, b: Int): Int {
134
134
return total.toInt()
135
135
}
136
136
137
- /* *
138
- * Returns the floor division.
139
- *
140
- * This returns `0` for `floorDiv(0, 4)`.
141
- * This returns `-1` for `floorDiv(-1, 4)`.
142
- * This returns `-1` for `floorDiv(-2, 4)`.
143
- * This returns `-1` for `floorDiv(-3, 4)`.
144
- * This returns `-1` for `floorDiv(-4, 4)`.
145
- * This returns `-2` for `floorDiv(-5, 4)`.
146
- *
147
- * @param a the dividend
148
- * @param b the divisor
149
- * @return the floor division
150
- */
151
- internal fun floorDiv (a : Long , b : Long ): Long = if (a >= 0 ) a / b else (a + 1 ) / b - 1
152
-
153
- /* *
154
- * Returns the floor division.
155
- *
156
- * This returns `0` for `floorDiv(0, 4)`.
157
- * This returns `-1` for `floorDiv(-1, 4)`.
158
- * This returns `-1` for `floorDiv(-2, 4)`.
159
- * This returns `-1` for `floorDiv(-3, 4)`.
160
- * This returns `-1` for `floorDiv(-4, 4)`.
161
- * This returns `-2` for `floorDiv(-5, 4)`.
162
- *
163
- * @param a the dividend
164
- * @param b the divisor
165
- * @return the floor division
166
- */
167
- internal fun floorDiv (a : Int , b : Int ): Int = if (a >= 0 ) a / b else (a + 1 ) / b - 1
168
-
169
- /* *
170
- * Returns the floor modulus.
171
- *
172
- * This returns `0` for `floorMod(0, 4)`.
173
- * This returns `1` for `floorMod(-1, 4)`.
174
- * This returns `2` for `floorMod(-2, 4)`.
175
- * This returns `3` for `floorMod(-3, 4)`.
176
- * This returns `0` for `floorMod(-4, 4)`.
177
- *
178
- * @param a the dividend
179
- * @param b the divisor
180
- * @return the floor modulus (positive)
181
- */
182
- internal fun floorMod (a : Long , b : Long ): Long = (a % b + b) % b
183
-
184
- /* *
185
- * Returns the floor modulus.
186
- *
187
- * This returns `0` for `floorMod(0, 4)`.
188
- * This returns `1` for `floorMod(-1, 4)`.
189
- * This returns `2` for `floorMod(-2, 4)`.
190
- * This returns `3` for `floorMod(-3, 4)`.
191
- * This returns `0` for `floorMod(-4, 4)`.
192
- *
193
- * @param a the dividend
194
- * @param b the divisor
195
- * @return the floor modulus (positive)
196
- */
197
- internal fun floorMod (a : Int , b : Int ): Int = (a % b + b) % b
198
-
199
137
// org.threeten.bp.ZoneOffset#buildId
200
138
internal fun zoneIdByOffset (totalSeconds : Int ): String {
201
139
return if (totalSeconds == 0 ) {
0 commit comments