Re: [GD-General] The joy of type aliasing and C
Brought to you by:
vexxed72
From: Pierre T. <pie...@no...> - 2003-12-29 08:39:34
|
> No need to mention performance at all. Does anyone know of a way to test for > infinity, nan and denormalized, or to recompress a float into different word > size (float16 e.g.) - without reinterpreting the float as an int? Yep: int _fpclass(double); BTW I tend to write this: int x = ( int & ) f; instead of: int x = * ( int * ) &f; Any known difference ? Pierre |