(bitsValue uint64, index int)
| 371 | } |
| 372 | |
| 373 | func setNextBit(bitsValue uint64, index int) int { |
| 374 | result := bitsValue & (mask << index) |
| 375 | |
| 376 | if result != 0 { |
| 377 | return bits.TrailingZeros64(result) |
| 378 | } |
| 379 | |
| 380 | return -1 |
| 381 | } |
| 382 | |
| 383 | func elapseUntil(t time.Time, fieldType fieldType, value int) time.Time { |
| 384 | current := getTimeValue(t, fieldType.Field) |