actf 0.0.1
An acute CTF reader
Loading...
Searching...
No Matches
/home/adwe/code/actf/rng.h
Go to the documentation of this file.
1/*
2 * This file is a part of ACTF.
3 *
4 * Copyright (C) 2024 Adam Wendelin <adwe live se>
5 *
6 * ACTF is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU Lesser General Public License as
8 * published by the Free Software Foundation, either version 3 of the
9 * License, or (at your option) any later version.
10 *
11 * ACTF is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
14 * Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with ACTF. If not, see
18 * <https://www.gnu.org/licenses/>.
19 */
20
25#ifndef ACTF_RNG_H
26#define ACTF_RNG_H
27
28#include <stdbool.h>
29#include <stdint.h>
30
31
34
41bool actf_rng_set_intersect_rng_set(const actf_rng_set *restrict rs_a, const actf_rng_set *restrict rs_b);
42
49bool actf_rng_set_intersect_sint(const actf_rng_set *rs, int64_t pt);
50
57bool actf_rng_set_intersect_uint(const actf_rng_set *rs, uint64_t pt);
58
59#endif /* ACTF_RNG_H */
bool actf_rng_set_intersect_uint(const actf_rng_set *rs, uint64_t pt)
Check if a range set intersects with a point.
bool actf_rng_set_intersect_rng_set(const actf_rng_set *restrict rs_a, const actf_rng_set *restrict rs_b)
Check whether two range sets intersect.
struct actf_rng_set actf_rng_set
A range set.
Definition rng.h:33
bool actf_rng_set_intersect_sint(const actf_rng_set *rs, int64_t pt)
Check if a range set intersects with a point.