Re: [SLUG] [PIG] First post

From: Eben King (eben1@tampabay.rr.com)
Date: Thu Apr 27 2006 - 00:42:26 EDT


On Wed, 26 Apr 2006, Mario Lombardo wrote:

> On Wednesday 26 April 2006 21:55, Dylan William Hardison wrote:
>>
>> So, I'll throw something out there to start discussion.
>>
>> If SDL_BYTEORDER and SDL_BIG_ENDIAN are preprocessor constants,
>> is GCC smart enough to optimize this if-else expression away?
>> I have no idea, and I'm not sure how to test it.
>>
>> if (SDL_BYTEORDER == SDL_BIG_ENDIAN) {
>> color = SDL_MapRGBA(dst->format, colorptr[0], colorptr[1],
>> colorptr[2], colorptr[3]);
>> } else {
>> color = SDL_MapRGBA(dst->format, colorptr[3], colorptr[2],
>> colorptr[1], colorptr[0]);
>> }
>>
>
> What language is that? Ha! The non-programmer speaks.

Looks C-ish to me. GCC does primarily speak C (among other things).

But I guess you'd have to compile binaries with and without it and see where
they differ. There's probably too much additional crap in a compiled binary
to trace it straight off.

-- 
-eben    ebQenW1@EtaRmpTabYayU.rIr.OcoPm    home.tampabay.rr.com/hactar

Q: What kind of modem did Jimi Hendrix use? ----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 18:00:45 EDT