Re: [GD-General] The joy of type aliasing and C
Brought to you by:
vexxed72
From: Alen L. <ale...@cr...> - 2003-12-30 07:04:47
|
>There is no portable way to recompress to a float16, since float16 is >not portable. Surely, most hardware cannot work with float16 natively, but it is still useable for lossy compression of some data. As long as I define what I want my float16 to look like, it is not less portable than any other user defined type. Generally, trying to look at a float as if it's some kind of a black box that stores real numbers, is kinda silly. You have to be aware of its internal representation, or you can't work with it (without getting yourself into various precision losses, etc). And once you are aware, you should be able to access it. But I believe we all agree on that, and it's the standard that has a wrong approach here. Alen |