StarPU Handbook

starpu_bitmap.h
Go to the documentation of this file.
1/* StarPU --- Runtime system for heterogeneous multicore architectures.
2 *
3 * Copyright (C) 2013-2021 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
4 * Copyright (C) 2013 Simon Archipoff
5 *
6 * StarPU is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License as published by
8 * the Free Software Foundation; either version 2.1 of the License, or (at
9 * your option) any later version.
10 *
11 * StarPU is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14 *
15 * See the GNU Lesser General Public License in COPYING.LGPL for more details.
16 */
17
18#ifndef __STARPU_BITMAP_H__
19#define __STARPU_BITMAP_H__
20
21#ifdef __cplusplus
22 extern "C"
23{
24#endif
25
33 struct starpu_bitmap *starpu_bitmap_create(void) STARPU_ATTRIBUTE_MALLOC;
35 void starpu_bitmap_destroy(struct starpu_bitmap *b);
36
38 void starpu_bitmap_set(struct starpu_bitmap *b, int e);
40 void starpu_bitmap_unset(struct starpu_bitmap *b, int e);
42 void starpu_bitmap_unset_all(struct starpu_bitmap *b);
43
45 int starpu_bitmap_get(struct starpu_bitmap *b, int e);
47 void starpu_bitmap_unset_and(struct starpu_bitmap *a, struct starpu_bitmap *b, struct starpu_bitmap *c);
49 void starpu_bitmap_or(struct starpu_bitmap *a, struct starpu_bitmap *b);
51 int starpu_bitmap_and_get(struct starpu_bitmap *b1, struct starpu_bitmap *b2, int e);
53 int starpu_bitmap_cardinal(struct starpu_bitmap *b);
54
56 int starpu_bitmap_first(struct starpu_bitmap *b);
58 int starpu_bitmap_last(struct starpu_bitmap *b);
60 int starpu_bitmap_next(struct starpu_bitmap *b, int e);
62 int starpu_bitmap_has_next(struct starpu_bitmap *b, int e);
63
66#ifdef __cplusplus
67}
68#endif
69
70#endif
starpu_bitmap_cardinal
int starpu_bitmap_cardinal(struct starpu_bitmap *b)
starpu_bitmap_first
int starpu_bitmap_first(struct starpu_bitmap *b)
starpu_bitmap_last
int starpu_bitmap_last(struct starpu_bitmap *b)
starpu_bitmap_has_next
int starpu_bitmap_has_next(struct starpu_bitmap *b, int e)
starpu_bitmap_destroy
void starpu_bitmap_destroy(struct starpu_bitmap *b)
starpu_bitmap_get
int starpu_bitmap_get(struct starpu_bitmap *b, int e)
starpu_bitmap_or
void starpu_bitmap_or(struct starpu_bitmap *a, struct starpu_bitmap *b)
starpu_bitmap_next
int starpu_bitmap_next(struct starpu_bitmap *b, int e)
starpu_bitmap_unset
void starpu_bitmap_unset(struct starpu_bitmap *b, int e)
starpu_bitmap_and_get
int starpu_bitmap_and_get(struct starpu_bitmap *b1, struct starpu_bitmap *b2, int e)
starpu_bitmap_create
struct starpu_bitmap * starpu_bitmap_create(void) STARPU_ATTRIBUTE_MALLOC
starpu_bitmap_unset_and
void starpu_bitmap_unset_and(struct starpu_bitmap *a, struct starpu_bitmap *b, struct starpu_bitmap *c)
starpu_bitmap_set
void starpu_bitmap_set(struct starpu_bitmap *b, int e)
starpu_bitmap_unset_all
void starpu_bitmap_unset_all(struct starpu_bitmap *b)
STARPU_ATTRIBUTE_MALLOC
#define STARPU_ATTRIBUTE_MALLOC
Definition: starpu_util.h:112