[Mesa-dev] [PATCH 0/5] util: Rework endian handling in python code

Roland Scheidegger sroland at vmware.com
Tue Apr 15 08:51:58 PDT 2014


FWIW the idea looks good to me. But my python skills are lacking...

Roland

Am 15.04.2014 15:54, schrieb Richard Sandiford:
> Ping
> 
> Richard Sandiford <rsandifo at linux.vnet.ibm.com> writes:
>> Ping (with fixed subject)
>>
>> Richard Sandiford <rsandifo at linux.vnet.ibm.com> writes:
>>> This is a refresh of:
>>>
>>>    https://urldefense.proofpoint.com/v1/url?u=http://lists.freedesktop.org/archives/mesa-dev/2013-June/040594.html&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=F4msKE2WxRzA%2BwN%2B25muztFm5TSPwE8HKJfWfR2NgfY%3D%0A&m=A0XB689ybhj8CnOyS%2FcGCNvDt5SLxFKtLLV%2Fjsyq9Lw%3D%0A&s=80fd22235ae707b05b19c94c7f104287be47f9c28a0ceb808aed3a2d3f88a10d
>>>
>>> At the moment the python code uses sys.byteorder to decide whether
>>> u_format_table.c should be for big or little endian.  With this series
>>> it instead generates both forms, using blocks like:
>>>
>>> #ifdef PIPE_ARCH_BIG_ENDIAN
>>> ...
>>> #else
>>> ...
>>> #endif
>>>
>>> in cases where endianness matters.
>>>
>>> Doing it this way is more cross-compiler-friendly.  It also means people
>>> working on LE systems can see what the differences would be for BE.
>>>
>>> Tested on x86_64 and z.  I don't have commit access so please apply if OK.
>>>
>>> Thanks,
>>> Richard
>>>
>>> _______________________________________________
>>> mesa-dev mailing list
>>> mesa-dev at lists.freedesktop.org
>>> https://urldefense.proofpoint.com/v1/url?u=http://lists.freedesktop.org/mailman/listinfo/mesa-dev&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=F4msKE2WxRzA%2BwN%2B25muztFm5TSPwE8HKJfWfR2NgfY%3D%0A&m=A0XB689ybhj8CnOyS%2FcGCNvDt5SLxFKtLLV%2Fjsyq9Lw%3D%0A&s=88dbb49f50f4dd6515faaefa6c45ec5db61a94e2a5292e967b90668082e4e4b1
>>
>> _______________________________________________
>> mesa-dev mailing list
>> mesa-dev at lists.freedesktop.org
>> https://urldefense.proofpoint.com/v1/url?u=http://lists.freedesktop.org/mailman/listinfo/mesa-dev&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=F4msKE2WxRzA%2BwN%2B25muztFm5TSPwE8HKJfWfR2NgfY%3D%0A&m=A0XB689ybhj8CnOyS%2FcGCNvDt5SLxFKtLLV%2Fjsyq9Lw%3D%0A&s=88dbb49f50f4dd6515faaefa6c45ec5db61a94e2a5292e967b90668082e4e4b1
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://urldefense.proofpoint.com/v1/url?u=http://lists.freedesktop.org/mailman/listinfo/mesa-dev&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=F4msKE2WxRzA%2BwN%2B25muztFm5TSPwE8HKJfWfR2NgfY%3D%0A&m=A0XB689ybhj8CnOyS%2FcGCNvDt5SLxFKtLLV%2Fjsyq9Lw%3D%0A&s=88dbb49f50f4dd6515faaefa6c45ec5db61a94e2a5292e967b90668082e4e4b1
> 


More information about the mesa-dev mailing list