public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
* fenv documentation
@ 2019-08-14 14:30 Joel Sherrill
  2019-08-15 10:05 ` Corinna Vinschen
  0 siblings, 1 reply; 2+ messages in thread
From: Joel Sherrill @ 2019-08-14 14:30 UTC (permalink / raw)
  To: Newlib

[-- Attachment #1: Type: text/plain, Size: 207 bytes --]

Thanks to Jon Turney for taking my attempt at fenv.texi and getting it
to actually show up in the output. :)

With the attached patch, fenv methods show up in the manual.

Is it OK to push?

Thanks.

--joel

[-- Attachment #2: 0001-fenv-Include-documentation-in-generated-.info-file.patch --]
[-- Type: application/octet-stream, Size: 3879 bytes --]

From d4a5256a264efd2185e7c747ca900af38ce0d34d Mon Sep 17 00:00:00 2001
From: Joel Sherrill <joel@rtems.org>
Date: Wed, 14 Aug 2019 11:24:37 +0100
Subject: [PATCH] fenv: Include documentation in generated .info file

---
 newlib/libm/fenv/Makefile.am |  2 +-
 newlib/libm/fenv/Makefile.in |  2 +-
 newlib/libm/fenv/fenv.tex    | 45 ++++++++++++++++++++++++++++++++++++
 newlib/libm/libm.in.xml      |  1 +
 newlib/libm/libm.texinfo     |  1 +
 5 files changed, 49 insertions(+), 2 deletions(-)
 create mode 100644 newlib/libm/fenv/fenv.tex

diff --git a/newlib/libm/fenv/Makefile.am b/newlib/libm/fenv/Makefile.am
index 8d7a70273..ebe03970b 100644
--- a/newlib/libm/fenv/Makefile.am
+++ b/newlib/libm/fenv/Makefile.am
@@ -29,7 +29,7 @@ CHEWOUT_FILES =	feclearexcept.def fegetenv.def \
 	feraiseexcept.def fesetenv.def fesetexceptflag.def fesetround.def \
 	fetestexcept.def feupdateenv.def
 
-CHAPTERS =
+CHAPTERS = fenv.tex
 
 # A partial dependency list.
 
diff --git a/newlib/libm/fenv/Makefile.in b/newlib/libm/fenv/Makefile.in
index c8760b2a7..b2adb823a 100644
--- a/newlib/libm/fenv/Makefile.in
+++ b/newlib/libm/fenv/Makefile.in
@@ -271,7 +271,7 @@ CHEWOUT_FILES = feclearexcept.def fegetenv.def \
 	feraiseexcept.def fesetenv.def fesetexceptflag.def fesetround.def \
 	fetestexcept.def feupdateenv.def
 
-CHAPTERS =
+CHAPTERS = fenv.tex
 all: all-am
 
 .SUFFIXES:
diff --git a/newlib/libm/fenv/fenv.tex b/newlib/libm/fenv/fenv.tex
new file mode 100644
index 000000000..3b76003d3
--- /dev/null
+++ b/newlib/libm/fenv/fenv.tex
@@ -0,0 +1,45 @@
+@node Fenv
+@chapter Floating-Point Environment (@file{fenv.h})
+
+This chapter groups the methods used to manipulate the floating-point
+status flags. Floating-point operations modify the floating-point
+status flags to indicate abnormal result information.
+
+The implementation of these methods is architecture specific.
+
+@menu
+* feclearexcept::		Clear floating-point exception
+* fegetenv::		Get current floating-point environment
+* fegetexceptflag::	Get floating-point status flags
+* fegetround::		Get current rounding direction
+* feholdexcept::		Save current floating-point environment
+* feraiseexcept::		Raise floating-point exception
+* fesetenv::		Set current floating-point environment
+* fesetexceptflag::	Set floating-point status flags
+* fesetround::		Set current rounding direction
+* fetestexcept::		Test floating-point exception flags
+* feupdateenv::		Update current floating-point environment
+@end menu
+
+@page
+@include fenv/feclearexcept.def
+@page
+@include fenv/fegetenv.def
+@page
+@include fenv/fegetexceptflag.def
+@page
+@include fenv/fegetround.def
+@page
+@include fenv/feholdexcept.def
+@page
+@include fenv/feraiseexcept.def
+@page
+@include fenv/fesetenv.def
+@page
+@include fenv/fesetexceptflag.def
+@page
+@include fenv/fesetround.def
+@page
+@include fenv/fetestexcept.def
+@page
+@include fenv/feupdateenv.def
diff --git a/newlib/libm/libm.in.xml b/newlib/libm/libm.in.xml
index dea8a0f6c..f60030478 100644
--- a/newlib/libm/libm.in.xml
+++ b/newlib/libm/libm.in.xml
@@ -7,6 +7,7 @@
 
   <xi:include href="complex.xml"/>
   <xi:include href="math.xml"/>
+  <xi:include href="fenv.xml"/>
 
   <!-- processing should insert index here -->
   <index/>
diff --git a/newlib/libm/libm.texinfo b/newlib/libm/libm.texinfo
index a579a1743..779615d32 100644
--- a/newlib/libm/libm.texinfo
+++ b/newlib/libm/libm.texinfo
@@ -94,6 +94,7 @@ into another language, under the above conditions for modified versions.
 @menu
 * Math::           The mathematical functions (`math.h').
 * Complex::        The mathematical complex functions (`complex.h').
+* Fenv::           The floating point environment functions ('fenv.h').
 * Reentrancy::     The functions in libm are not reentrant by default.
 * Long Double Functions:: The long double function support of libm.
 * Document Index::
-- 
2.21.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: fenv documentation
  2019-08-14 14:30 fenv documentation Joel Sherrill
@ 2019-08-15 10:05 ` Corinna Vinschen
  0 siblings, 0 replies; 2+ messages in thread
From: Corinna Vinschen @ 2019-08-15 10:05 UTC (permalink / raw)
  To: Joel Sherrill; +Cc: Newlib

[-- Attachment #1: Type: text/plain, Size: 362 bytes --]

On Aug 14 09:30, Joel Sherrill wrote:
> Thanks to Jon Turney for taking my attempt at fenv.texi and getting it
> to actually show up in the output. :)
> 
> With the attached patch, fenv methods show up in the manual.
> 
> Is it OK to push?
> 
> Thanks.
> 
> --joel

Pushed.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-08-15 10:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-14 14:30 fenv documentation Joel Sherrill
2019-08-15 10:05 ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).