This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Byteswapping floating point types


On Wed, Jul 15, 2009 at 12:20 PM, Andrew Haley<aph@redhat.com> wrote:
> Andrew Troschinetz wrote:
>> On Jul 15, 2009, at 10:13 AM, Andrew Haley wrote:
>>
>>> Andrew Troschinetz wrote:
>>>
>>>> It is not an area in which I am well versed so I probably can't give you
>>>> as good an answer as others on this list, but I'll give it a go. "Why
>>>> would it?" isn't actually a valid question, you should be asking "why
>>>> does it?" because all the tests I've done show that it does.

The original question was about the signature/implementation of the
swap function.  What you are talking about here really has nothing to
do with that, right?  Unless you are trying to treat the swapped float
as a valid (meaning useful) float, there is no problem with any
implementation of swap, right?  In other words, it's not the swapping
that causes the issue, its the subsequent use of the swapped value as
meaningful on the system, where it really has no business being
interpreted as such.

-- 
Andrew Bell
andrew.bell.ia@gmail.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]