Age | Commit message (Collapse) | Author |
|
|
|
|
|
Only the functions needed with the current code are defined.
The header will not work with other compilers. It will need to be updated for
each compiler that doesn't have stdatomic.h.
|
|
|
|
|
|
Do not force include the compat folder as it may contain headers that do exist
for the compiler. Include the compat headers individually when they are needed
and use an explicit path to compat/
|
|
|
|
|
|
|
|
That's the one used in mingw64
|
|
__builtin_ctz:
Returns the number of trailing 0-bits in x, starting at the least significant
bit position. If x is 0, the result is undefined.
_BitScanForward:
Search the mask data from least significant bit (LSB) to the most significant
bit (MSB) for a set bit (1). If a set bit is found, the bit position of the
first set bit found is returned in the first parameter. If no set bit is found,
0 is returned; otherwise, 1 is returned.
__builtin_clz:
Returns the number of leading 0-bits in x, starting at the most significant
bit position. If x is 0, the result is undefined.
_BitScanReverse:
Search the mask data from most significant bit (MSB) to least significant bit
(LSB) for a set bit (1). Returns Nonzero if Index was set, or 0 if no set bits
were found. Index is loaded with the bit position of the first set bit (1) found.
|
|
|
|
|
|
This prevents leaving the caller with a dangling pointer.
|
|
It is not valid in ISO C and doesn't differ from __func__
|
|
As it is forbidden by ISO C
|
|
Fixes mismatch in issue #14.
|
|
|
|
With minor contributions from:
- Jean-Baptiste Kempf <jb@videolan.org>
- Marvin Scholz <epirat07@gmail.com>
- Hugo Beauzée-Luyssen <hugo@videolan.org>
|
|
|