X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fadt%2Fset.h;h=9d924f9073e1431d55cdb3effe6e29e8f9b82aac;hb=6ddfdef22108fc17578388b6207e38bd2ba77b82;hp=a97ca622f72b4f0849bc7fbc407136e20ea60d06;hpb=ffe4c677aa8e6bac4fe345dd0c92d54792f013bf;p=libfirm diff --git a/ir/adt/set.h b/ir/adt/set.h index a97ca622f..9d924f907 100644 --- a/ir/adt/set.h +++ b/ir/adt/set.h @@ -35,8 +35,8 @@ typedef struct set set; typedef struct set_entry { unsigned hash; /**< the hash value of the element */ size_t size; /**< the size of the element */ - int dptr[1]; /**< the element itself, data copied in must not need more - alignment than this */ + int dptr[1]; /**< the element itself, data copied in must not need more + alignment than this */ } set_entry; /** @@ -50,17 +50,18 @@ typedef struct set_entry { * 0 if the elements are identically, non-zero else * * @note - * Although it is possible to define different meanings for equality of two - * elements of a sets, they can be only equal if there sizes are - * equal. This is checked before the compare function is called. + * Although it is possible to define different meanings of equality + * of two elements of a set, they can be only equal if their sizes are + * are equal. This is checked before the compare function is called. */ typedef int (*set_cmp_fun) (const void *elt, const void *key, size_t size); /** * Creates a new set. * - * @param func the compare function of this set - * @param slots number of initial slots + * @param func The compare function of this set. + * @param slots Initial number of collision chains. I.e., #slots + * different keys can be hashed without collisions. * * @returns * created set