Advertisement
robn

Untitled

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