Fix mingw (#441)
This PR (#440) fixes portability issue of ffs on MinGW. Co-authored-by: Pierre Jolivet <pierre@joliv.et> Co-authored-by: Ruipeng Li <li50@euler.llnl.gov>
This commit is contained in:
parent
9117fc20f2
commit
b61461c909
@ -1792,7 +1792,7 @@ static inline HYPRE_Int
|
|||||||
first_lsb_bit_indx( hypre_uint x )
|
first_lsb_bit_indx( hypre_uint x )
|
||||||
{
|
{
|
||||||
HYPRE_Int pos;
|
HYPRE_Int pos;
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER) || defined(__MINGW64__)
|
||||||
if (x == 0)
|
if (x == 0)
|
||||||
{
|
{
|
||||||
pos = 0;
|
pos = 0;
|
||||||
@ -2880,3 +2880,4 @@ hypre_UnorderedBigIntMapPutIfAbsent( hypre_UnorderedBigIntMap *m,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@ -133,7 +133,7 @@ static inline HYPRE_Int
|
|||||||
first_lsb_bit_indx( hypre_uint x )
|
first_lsb_bit_indx( hypre_uint x )
|
||||||
{
|
{
|
||||||
HYPRE_Int pos;
|
HYPRE_Int pos;
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER) || defined(__MINGW64__)
|
||||||
if (x == 0)
|
if (x == 0)
|
||||||
{
|
{
|
||||||
pos = 0;
|
pos = 0;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user