starpu_bitmap.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /* StarPU --- Runtime system for heterogeneous multicore architectures.
  2. *
  3. * Copyright (C) 2013 Simon Archipoff
  4. * Copyright (C) 2014 CNRS
  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. #ifndef __STARPU_BITMAP_H__
  18. #define __STARPU_BITMAP_H__
  19. #ifdef __cplusplus
  20. extern "C"
  21. {
  22. #endif
  23. struct starpu_bitmap *starpu_bitmap_create(void) STARPU_ATTRIBUTE_MALLOC;
  24. void starpu_bitmap_destroy(struct starpu_bitmap *b);
  25. void starpu_bitmap_set(struct starpu_bitmap *b, int e);
  26. void starpu_bitmap_unset(struct starpu_bitmap *b, int e);
  27. void starpu_bitmap_unset_all(struct starpu_bitmap *b);
  28. int starpu_bitmap_get(struct starpu_bitmap *b, int e);
  29. void starpu_bitmap_unset_and(struct starpu_bitmap *a, struct starpu_bitmap *b, struct starpu_bitmap *c);
  30. void starpu_bitmap_or(struct starpu_bitmap *a, struct starpu_bitmap *b);
  31. int starpu_bitmap_and_get(struct starpu_bitmap *b1, struct starpu_bitmap *b2, int e);
  32. int starpu_bitmap_cardinal(struct starpu_bitmap *b);
  33. int starpu_bitmap_first(struct starpu_bitmap *b);
  34. int starpu_bitmap_last(struct starpu_bitmap *b);
  35. int starpu_bitmap_next(struct starpu_bitmap *b, int e);
  36. int starpu_bitmap_has_next(struct starpu_bitmap *b, int e);
  37. #ifdef __cplusplus
  38. }
  39. #endif
  40. #endif