src/siri/db/series.c
/*
 * Updates series->flags and remove SIRIDB_SERIES_HAS_OVERLAP if possible.
 * This function never sets an overlap and therefore should not be called
 * as long as the overlap flag is not set.
 */
Updates series->flags and remove SIRIDB_SERIES_HAS_OVERLAP if possible.
This function never sets an overlap and therefore should not be called
as long as the overlap flag is not set.
Updates series - > flags and remove SIRIDB_SERIES_HAS_OVERLAP if possible . This function never sets an overlap and therefore should not be called as long as the overlap flag is not set .
static void SERIES_update_overlap(siridb_series_t *__restrict series)
{
#ifdef DEBUG
    assert (series->flags & SIRIDB_SERIES_HAS_OVERLAP);
#endif
    for (uint_fast32_t i = 1; i < series->idx_len; i++)
    {
        if (series->idx[i - 1].end_ts > series->idx[i].start_ts)
        {
            return;
        }
    }
    series->flags &= ~SIRIDB_SERIES_HAS_OVERLAP;
}
static void SERIES_update_overlap ( siridb_series_t * __restrict series ) { #ifdef DEBUG assert ( series -> flags & SIRIDB_SERIES_HAS_OVERLAP ) ; #endif for ( uint_fast32_t i = 1 ; i < series -> idx_len ; i ++ ) { if ( series -> idx [ i - 1 ] . end_ts > series -> idx [ i ] . start_ts ) { return ; } } series -> flags &= ~ SIRIDB_SERIES_HAS_OVERLAP ; }
Updates series->flags and remove SIRIDB_SERIES_HAS_OVERLAP if possible.
Updates series - > flags and remove SIRIDB_SERIES_HAS_OVERLAP if possible .