mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[WINE]
add inline version of ffs svn path=/trunk/; revision=52382
This commit is contained in:
parent
b9472583c6
commit
47b5083e50
1 changed files with 11 additions and 0 deletions
|
@ -315,6 +315,17 @@ extern int spawnvp(int mode, const char *cmdname, const char * const argv[]);
|
|||
|
||||
#endif /* __i386___ && __GNUC__ */
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
__forceinline
|
||||
int
|
||||
ffs(int mask)
|
||||
{
|
||||
long index;
|
||||
if (_BitScanForward(&index, mask) == 0) return 0;
|
||||
return index;
|
||||
}
|
||||
#endif
|
||||
|
||||
#else /* NO_LIBWINE_PORT */
|
||||
|
||||
#define __WINE_NOT_PORTABLE(func) func##_is_not_portable func##_is_not_portable
|
||||
|
|
Loading…
Reference in a new issue