A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Revert "Make gras compil with Visual C++." This commit is too large/unreadable. It...
[simgrid.git]
/
src
/
xbt
/
setset.c
diff --git
a/src/xbt/setset.c
b/src/xbt/setset.c
index
5c63ee0
..
a583713
100644
(file)
--- a/
src/xbt/setset.c
+++ b/
src/xbt/setset.c
@@
-45,10
+45,9
@@
void xbt_setset_elm_add(xbt_setset_t setset, void *obj)
{
xbt_setset_elm_entry_t new_entry = NULL;
xbt_setset_elm_t e = (xbt_setset_elm_t)obj;
- xbt_setset_elm_entry_t first_elm = NULL;
-
xbt_assert0(e->ID == 0, "Adding element with non NULL ID");
- first_elm = (xbt_setset_elm_entry_t)xbt_dynar_get_ptr(setset->elm_array, 0);
+ xbt_setset_elm_entry_t first_elm =
+ (xbt_setset_elm_entry_t)xbt_dynar_get_ptr(setset->elm_array, 0);
/* Before create a new elm entry check if there is one in the free elm list. */
/* If there is not free elm entries, then create a new one */
@@
-357,4
+356,4
@@
int bitcount(int v)
v = v - ((v >> 1) & 0x55555555); // reuse input as temporary
v = (v & 0x33333333) + ((v >> 2) & 0x33333333); // temp
return (((v + (v >> 4)) & 0xF0F0F0F) * 0x1010101) >> 24; // count
-}
+}
\ No newline at end of file