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-2015 CNRS
4  * Copyright (C) 2013,2016 Université de Bordeaux
5  * Copyright (C) 2013 Simon Archipoff
6  *
7  * StarPU is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU Lesser General Public License as published by
9  * the Free Software Foundation; either version 2.1 of the License, or (at
10  * your option) any later version.
11  *
12  * StarPU is distributed in the hope that it will be useful, but
13  * WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15  *
16  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
17  */
18 
19 #ifndef __STARPU_BITMAP_H__
20 #define __STARPU_BITMAP_H__
21 
22 #ifdef __cplusplus
23 extern "C"
24 {
25 #endif
26 
27 struct starpu_bitmap *starpu_bitmap_create(void) STARPU_ATTRIBUTE_MALLOC;
28 void starpu_bitmap_destroy(struct starpu_bitmap *b);
29 
30 void starpu_bitmap_set(struct starpu_bitmap *b, int e);
31 void starpu_bitmap_unset(struct starpu_bitmap *b, int e);
32 void starpu_bitmap_unset_all(struct starpu_bitmap *b);
33 
34 int starpu_bitmap_get(struct starpu_bitmap *b, int e);
35 void starpu_bitmap_unset_and(struct starpu_bitmap *a, struct starpu_bitmap *b, struct starpu_bitmap *c);
36 void starpu_bitmap_or(struct starpu_bitmap *a, struct starpu_bitmap *b);
37 int starpu_bitmap_and_get(struct starpu_bitmap *b1, struct starpu_bitmap *b2, int e);
38 int starpu_bitmap_cardinal(struct starpu_bitmap *b);
39 
40 int starpu_bitmap_first(struct starpu_bitmap *b);
41 int starpu_bitmap_last(struct starpu_bitmap *b);
42 int starpu_bitmap_next(struct starpu_bitmap *b, int e);
43 int starpu_bitmap_has_next(struct starpu_bitmap *b, int e);
44 
45 #ifdef __cplusplus
46 }
47 #endif
48 
49 #endif
#define STARPU_ATTRIBUTE_MALLOC
Definition: starpu_util.h:62
int starpu_bitmap_and_get(struct starpu_bitmap *b1, struct starpu_bitmap *b2, int e)
struct starpu_bitmap * starpu_bitmap_create(void) STARPU_ATTRIBUTE_MALLOC
int starpu_bitmap_first(struct starpu_bitmap *b)
int starpu_bitmap_get(struct starpu_bitmap *b, int e)
void starpu_bitmap_destroy(struct starpu_bitmap *b)
int starpu_bitmap_has_next(struct starpu_bitmap *b, int e)
void starpu_bitmap_unset_all(struct starpu_bitmap *b)
void starpu_bitmap_unset_and(struct starpu_bitmap *a, struct starpu_bitmap *b, struct starpu_bitmap *c)
void starpu_bitmap_unset(struct starpu_bitmap *b, int e)
void starpu_bitmap_or(struct starpu_bitmap *a, struct starpu_bitmap *b)
int starpu_bitmap_last(struct starpu_bitmap *b)
int starpu_bitmap_cardinal(struct starpu_bitmap *b)
void starpu_bitmap_set(struct starpu_bitmap *b, int e)
int starpu_bitmap_next(struct starpu_bitmap *b, int e)