bitmap.doxy 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /*
  2. * This file is part of the StarPU Handbook.
  3. * Copyright (C) 2014 Centre National de la Recherche Scientifique
  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. \fn struct starpu_bitmap *starpu_bitmap_create(void)
  9. \ingroup API_Bitmap
  10. create a empty starpu_bitmap
  11. \fn void starpu_bitmap_destroy(struct starpu_bitmap *b)
  12. \ingroup API_Bitmap
  13. free a starpu_bitmap
  14. \fn void starpu_bitmap_set(struct starpu_bitmap *b, int e)
  15. \ingroup API_Bitmap
  16. set bit \p e in \p b
  17. \fn void starpu_bitmap_unset(struct starpu_bitmap *b, int e)
  18. \ingroup API_Bitmap
  19. unset bit \p e in \p b
  20. \fn void starpu_bitmap_unset_all(struct starpu_bitmap *b)
  21. \ingroup API_Bitmap
  22. unset all bits in \b b
  23. \fn int starpu_bitmap_get(struct starpu_bitmap *b, int e)
  24. \ingroup API_Bitmap
  25. return true iff bit \p e is set in \p b
  26. \fn void starpu_bitmap_unset_and(struct starpu_bitmap *a, struct starpu_bitmap *b, struct starpu_bitmap *c)
  27. \ingroup API_Bitmap
  28. Basically compute starpu_bitmap_unset_all(a) ; a = b & c;
  29. \fn void starpu_bitmap_or(struct starpu_bitmap *a, struct starpu_bitmap *b)
  30. \ingroup API_Bitmap
  31. Basically compute a |= b
  32. \fn int starpu_bitmap_and_get(struct starpu_bitmap *b1, struct starpu_bitmap *b2, int e)
  33. \ingroup API_Bitmap
  34. return 1 iff e set in b1 AND e set in b2
  35. \fn int starpu_bitmap_cardinal(struct starpu_bitmap *b)
  36. \ingroup API_Bitmap
  37. return the number of set bits in \p b
  38. \fn int starpu_bitmap_first(struct starpu_bitmap *b)
  39. \ingroup API_Bitmap
  40. return the index of first set bit of \p b, -1 if none
  41. \fn int starpu_bitmap_last(struct starpu_bitmap *b)
  42. \ingroup API_Bitmap
  43. return the position of the last set bit of \p b, -1 if none
  44. \fn int starpu_bitmap_next(struct starpu_bitmap *b, int e)
  45. \ingroup API_Bitmap
  46. return the position of set bit right after \p e in \p b, -1 if none
  47. \fn int starpu_bitmap_has_next(struct starpu_bitmap *b, int e)
  48. \ingroup API_Bitmap
  49. todo
  50. */