<div dir="ltr">Hi Neale,<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>
ves_icall_System_Enum_GetEnumValuesAndNames.3229: 0. field=System_Runtime<br>
value=0<br>
ves_icall_System_Enum_GetEnumValuesAndNames.3229: 1.<br>
field=System_Runtime_InteropServices_WindowsRuntime value=16777216<br>
ves_icall_System_Enum_GetEnumValuesAndNames.3229: 2.<br>
field=System_ObjectModel value=33554432<br>
ves_icall_System_Enum_GetEnumValuesAndNames.3229: 3.<br>
field=System_Runtime_WindowsRuntime value=50331648<br>
ves_icall_System_Enum_GetEnumValuesAndNames.3229: 4.<br>
field=System_Runtime_WindowsRuntime_UI_Xaml value=67108864<br>
ves_icall_System_Enum_GetEnumValuesAndNames.3229: 5. field=Count<br>
value=83886080<br>
<br>
Note 16777216 is hex 10000000. Now to find out how that value gets placed<br>
there and to do some byte swapping on it.<br></blockquote><div><br></div><div>You are probably looking forĀ <a href="https://github.com/mono/mono/blob/master/mono/metadata/icall.c#L2961">https://github.com/mono/mono/blob/master/mono/metadata/icall.c#L2961</a>. There has been no endian changes there for years but due to different codepath this is now hit more often before.</div><div><br></div><div>Marek</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
P.S. I am wondering if it would be worth it to create a routine or more in<br>
icall.c to do the byte swap for 2/4/8 byte integers rather than coding up<br>
clumsy stuff in managed code.<br>
<span class="im"><br>
On 3/10/15, 3:01 PM, "Robert Jordan" <<a href="mailto:robertj@gmx.net">robertj@gmx.net</a>> wrote:<br>
<br>
</span><span class="im">>There was a recent commit which added MS' reference source Enum<br>
>support to Mono:<br>
><br>
><a href="https://github.com/mono/mono/commit/65dba595eaea2c871d1f72fbdc04f6440350af" target="_blank">https://github.com/mono/mono/commit/65dba595eaea2c871d1f72fbdc04f6440350af</a><br>
>96<br>
><br>
>Maybe it's an endian-related issue.<br>
<br>
</span><div class=""><div class="h5">_______________________________________________<br>
Mono-devel-list mailing list<br>
<a href="mailto:Mono-devel-list@lists.ximian.com">Mono-devel-list@lists.ximian.com</a><br>
<a href="http://lists.ximian.com/mailman/listinfo/mono-devel-list" target="_blank">http://lists.ximian.com/mailman/listinfo/mono-devel-list</a><br>
</div></div></blockquote></div><br></div></div>