Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Dec 16 07:22:01 <JohnJ> 07:03:35> Is feenableexcept() legitimate in Pioneer?
- Dec 16 07:22:01 <jpab> 07:10:19> legitimate?
- Dec 16 07:22:01 <JohnJ> 07:14:17> Well, it's glibc 2.1
- Dec 16 07:22:01 <JohnJ> 07:14:22> Not technically POSIX.
- Dec 16 07:22:01 <JohnJ> 07:15:27> I guess I can do #ifdef _GNU_SOURCE
- Dec 16 07:22:01 <JohnJ> 07:16:02> or __USE_GNU. This documentation is not clear on the point.
- Dec 16 07:22:01 <jpab> 07:17:11> in the header it's behind __USE_GNU
- Dec 16 07:22:01 * JohnJ 07:17:28> goes with that
- Dec 16 07:22:01 <jpab> 07:17:47> however, I suspect that's intended as an internal macro only
- Dec 16 07:22:01 <jpab> 07:18:13> I assume this is just to try to catch some errors?
- Dec 16 07:22:01 * Brianetta 07:18:27> merges jpab's changes
- Dec 16 07:22:01 <JohnJ> 07:18:33> I use it around the autopilot. It catches a lot :-)
- Dec 16 07:22:01 <jpab> 07:18:54> yeah
- Dec 16 07:23:13 <robn> feenableexcept is C99
- Dec 16 07:23:57 <jpab> robn: is it?
- Dec 16 07:24:24 <robn> These eleven functions were defined in C99, and describe the handling
- Dec 16 07:24:24 <robn> of floating-point rounding and exceptions (overflow, zero-divide,
- Dec 16 07:24:24 <robn> etc.).
- Dec 16 07:24:27 <robn> my manpage says so
- Dec 16 07:24:35 <robn> CONFORMING TO
- Dec 16 07:24:35 <robn> IEC 60559 (IEC 559:1989), ANSI/IEEE 854, C99, POSIX.1-2001.
- Dec 16 07:24:51 <jpab> robn: yeah, but "these eleven" functions doesn't include feenableexcept
- Dec 16 07:24:55 <jpab> robn: that one is further down the manpage
- Dec 16 07:25:41 <robn> oh I didn't even look at the synopsis. I assumed "man feenableexcept" would get me to the right place
- Dec 16 07:25:44 <robn> punks
- Dec 16 07:25:46 <robn> ok sorry :)
- Dec 16 07:26:18 <JohnJ> gah, miniz.c not compiling today.
- Dec 16 07:29:15 <jpab> I don't see any mention of __USE_GNU in documentation
- Dec 16 07:30:14 <JohnJ> _GNU_SOURCE there?
- Dec 16 07:30:17 <jpab> yeah
- Dec 16 07:30:43 <JohnJ> I guess _GNU_SOURCE #defines __USE_GNU
- Dec 16 07:30:53 <robn> _GNI_SOURCE is what you want
- Dec 16 07:30:55 <JohnJ> You reckon I should use _GNU_SOURCE then?
- Dec 16 07:30:57 <JohnJ> k
- Dec 16 07:31:01 <robn> #define _GNU_SOURCE /* See feature_test_macros(7) */
- Dec 16 07:31:01 <robn> #include <fenv.h>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement