[Bug 666887] [0.11]gstinterpolationcontrolsource uses FP_NAN

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Dec 29 02:46:48 PST 2011


https://bugzilla.gnome.org/show_bug.cgi?id=666887
  GStreamer | gstreamer (core) | 0.11.x

--- Comment #5 from Stefan Sauer (gstreamer, gtkdoc dev) <ensonic at sonicpulse.de> 2011-12-29 10:46:44 UTC ---
Yep, its a good fit for ./gst/math-compat.h. I have found a coupld of isnan
calls in gst-ffmpeg, but nowhere else so far. For linux I found a define for
NAN in bits/nan.h (included from math.h). It is essentially:


# if __BYTE_ORDER == __BIG_ENDIAN
#  define __nan_bytes        { 0x7f, 0xc0, 0, 0 }
# endif
# if __BYTE_ORDER == __LITTLE_ENDIAN
#  define __nan_bytes        { 0, 0, 0xc0, 0x7f }
# endif

static union { unsigned char __c[4]; float __d; } __nan_union
    __attribute_used__ = { __nan_bytes };
# define NAN    (__nan_union.__d)

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list