Skip to content

Commit

Permalink
Merge r107985 from HEAD.
Browse files Browse the repository at this point in the history
svn path=/branches/mono-2-0/mono/; revision=107988
  • Loading branch information
vargaz committed Jul 15, 2008
1 parent 3134972 commit 6bc7124
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
5 changes: 5 additions & 0 deletions mono/metadata/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2008-07-15 Zoltan Varga <vargaz@gmail.com>

* decimal.c (my_g_bit_nth_msf): Implement this directly without calling
g_bit_nth_msf () since that macro is not implemented in glib.

2008-07-13 Zoltan Varga <vargaz@gmail.com>

* class.c (mono_class_generic_sharing_enabled): Always disable generic sharing
Expand Down
10 changes: 9 additions & 1 deletion mono/metadata/decimal.c
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,15 @@ my_g_bit_nth_msf (gsize mask)
return bIndex;
return -1;
#else
return g_bit_nth_msf (mask, sizeof (gsize) * 8);
int i;

i = sizeof (gsize) * 8;
while (i > 0) {
i --;
if (mask & (1UL << i))
return i;
}
return -1;
#endif
}

Expand Down

0 comments on commit 6bc7124

Please sign in to comment.