bitmap.doxy 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /*
  2. * This file is part of the StarPU Handbook.
  3. * Copyright (C) 2014, 2017 CNRS
  4. * See the file version.doxy for copying conditions.
  5. */
  6. /*! \defgroup API_Bitmap Bitmap
  7. \brief This section describes the bitmap facilities provided by StarPU.
  8. \struct starpu_bitmap
  9. \ingroup API_Bitmap
  10. todo
  11. \fn struct starpu_bitmap *starpu_bitmap_create(void)
  12. \ingroup API_Bitmap
  13. create a empty starpu_bitmap
  14. \fn void starpu_bitmap_destroy(struct starpu_bitmap *b)
  15. \ingroup API_Bitmap
  16. free \b
  17. \fn void starpu_bitmap_set(struct starpu_bitmap *b, int e)
  18. \ingroup API_Bitmap
  19. set bit \p e in \p b
  20. \fn void starpu_bitmap_unset(struct starpu_bitmap *b, int e)
  21. \ingroup API_Bitmap
  22. unset bit \p e in \p b
  23. \fn void starpu_bitmap_unset_all(struct starpu_bitmap *b)
  24. \ingroup API_Bitmap
  25. unset all bits in \p b
  26. \fn int starpu_bitmap_get(struct starpu_bitmap *b, int e)
  27. \ingroup API_Bitmap
  28. return true iff bit \p e is set in \p b
  29. \fn void starpu_bitmap_unset_and(struct starpu_bitmap *a, struct starpu_bitmap *b, struct starpu_bitmap *c)
  30. \ingroup API_Bitmap
  31. Basically compute \c starpu_bitmap_unset_all(\p a) ; \p a = \p b & \p c;
  32. \fn void starpu_bitmap_or(struct starpu_bitmap *a, struct starpu_bitmap *b)
  33. \ingroup API_Bitmap
  34. Basically compute \p a |= \p b
  35. \fn int starpu_bitmap_and_get(struct starpu_bitmap *b1, struct starpu_bitmap *b2, int e)
  36. \ingroup API_Bitmap
  37. return 1 iff \p e is set in \p b1 AND \p e is set in \p b2
  38. \fn int starpu_bitmap_cardinal(struct starpu_bitmap *b)
  39. \ingroup API_Bitmap
  40. return the number of set bits in \p b
  41. \fn int starpu_bitmap_first(struct starpu_bitmap *b)
  42. \ingroup API_Bitmap
  43. return the index of the first set bit of \p b, -1 if none
  44. \fn int starpu_bitmap_last(struct starpu_bitmap *b)
  45. \ingroup API_Bitmap
  46. return the position of the last set bit of \p b, -1 if none
  47. \fn int starpu_bitmap_next(struct starpu_bitmap *b, int e)
  48. \ingroup API_Bitmap
  49. return the position of set bit right after \p e in \p b, -1 if none
  50. \fn int starpu_bitmap_has_next(struct starpu_bitmap *b, int e)
  51. \ingroup API_Bitmap
  52. todo
  53. */