POV-Ray : Newsgroups : povray.off-topic : C/C++ Data Type Ambiguity Backwards : Re: C/C++ Data Type Ambiguity Backwards Server Time
8 Jul 2024 08:17:45 EDT (-0400)
  Re: C/C++ Data Type Ambiguity Backwards  
From: Warp
Date: 3 Sep 2015 05:38:53
Message: <55e8152d@news.povray.org>
clipka <ano### [at] anonymousorg> wrote:
> One more thing that bugs me is that standards /still/ don't provide a
> straightforward way to detect the byte ordering of the standard integer
> data types (unless I missed some recent news).

You can detect it at runtime, but it's impossible to detect it at
compile time. (Yes, I have researched it. It's just not possible.)

(Ok, I'm not 100% certain that the runtime trick is 100% standard
kosher, but it works in all relevant modern hardware.)

-- 
                                                          - Warp


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.