(value, divisor int)
| 19 | } |
| 20 | |
| 21 | func floorDiv(value, divisor int) int { |
| 22 | result := value / divisor |
| 23 | if value%divisor != 0 && ((value < 0) != (divisor < 0)) { |
| 24 | result-- |
| 25 | } |
| 26 | return result |
| 27 | } |
| 28 | |
| 29 | func pythonSliceEnd(length, end int) int { |
| 30 | if end < 0 { |