git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7858
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
#include "setset_private.h"
#include "xbt/sysdep.h"
#include "setset_private.h"
#include "xbt/sysdep.h"
+/*The function ffs doesn't exist for windows*/
+#ifdef WIN32
+ int XBT_INLINE ffs(int x)
+ {
+ int r;
+ __asm{
+ mov ecx, [x]
+ bsf eax, ecx
+ jnz ffs1
+ mov eax, -1
+ ffs1:
+ mov[r],eax
+ }
+ return(r);
+ }
+#endif
+
/**
* \brief Create a new setset data structure
* \param size The initial size of the setset (in number of elements)
/**
* \brief Create a new setset data structure
* \param size The initial size of the setset (in number of elements)