Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 #ifndef strings_h
2 #define strings_h
4 /* MSVC doesn't define ffs/ffsl. This dummy strings.h header is provided
5 * for both */
6 #include <intrin.h>
7 #pragma intrinsic(_BitScanForward)
8 static __forceinline int ffsl(long x)
9 {
10 unsigned long i;
12 if (_BitScanForward(&i, x))
13 return (i + 1);
14 return (0);
15 }
17 static __forceinline int ffs(int x)
18 {
20 return (ffsl(x));
21 }
23 #endif