OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.18.0/] [newlib/] [libm/] [libm.texinfo] - Blame information for rev 362

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 207 jeremybenn
\input texinfo.tex
2
@setfilename libm.info
3
@syncodeindex fn cp
4
 
5
@ifinfo
6
@format
7
START-INFO-DIR-ENTRY
8
* libm::                        An ANSI-C conforming mathematical library.
9
END-INFO-DIR-ENTRY
10
@end format
11
@end ifinfo
12
 
13
@ifinfo
14
This file documents an ANSI-C conforming mathematical subroutine library.
15
 
16
Copyright (C) 1992, 1993, 1995, 1996-2008 Red Hat, Inc.
17
 
18
@file{libm} includes software developed at SunPro, a Sun Microsystems,
19
Inc. business.  Permission to use, copy, modify, and distribute this
20
software is freely granted, provided that this notice is preserved.
21
 
22
Permission is granted to make and distribute verbatim copies of
23
this manual provided the copyright notice and this permission notice
24
are preserved on all copies.
25
 
26
@ignore
27
Permission is granted to process this file through Tex and print the
28
results, provided the printed document carries copying permission
29
notice identical to this one except for the removal of this paragraph
30
(this paragraph not being relevant to the printed manual).
31
 
32
@end ignore
33
Permission is granted to copy and distribute modified versions of this
34
manual under the conditions for verbatim copying, subject to the terms
35
of the GNU General Public License, which includes the provision that the
36
entire resulting derived work is distributed under the terms of a
37
permission notice identical to this one.
38
 
39
Permission is granted to copy and distribute translations of this manual
40
into another language, under the above conditions for modified versions.
41
@end ifinfo
42
@iftex
43
@finalout
44
@setchapternewpage odd
45
@settitle The Red Hat newlib C Math Library
46
@titlepage
47
@title The Red Hat newlib C Math Library
48
@sp 1
49
@subtitle @code{libm} 1.18.0
50
@subtitle December 2008
51
@author {Steve Chamberlain}
52
@author {Roland Pesch}
53
@author {Red Hat Support}
54
@author {Jeff Johnston}
55
@page
56
 
57
@tex
58
{\parskip=0pt
59
\hfill Red Hat Support\par
60
\hfill sac@@cygnus.com\par
61
\hfill pesch@@cygnus.com\par
62
\hfill jjohnstn@@redhat.com\par
63
}
64
\global\parindent=0pt % Steve likes it this way
65
@end tex
66
 
67
@vskip 0pt plus 1filll
68
Copyright @copyright{} 1992, 1993, 1994-2004 Red Hat, Inc.
69
 
70
@file{libm} includes software developed at SunPro, a Sun Microsystems,
71
Inc. business.  Permission to use, copy, modify, and distribute this
72
software is freely granted, provided that this notice is preserved.
73
 
74
Permission is granted to make and distribute verbatim copies of
75
this manual provided the copyright notice and this permission notice
76
are preserved on all copies.
77
 
78
Permission is granted to copy and distribute modified versions of this
79
manual under the conditions for verbatim copying, subject to the terms
80
of the GNU General Public License, which includes the provision that the
81
entire resulting derived work is distributed under the terms of a
82
permission notice identical to this one.
83
 
84
Permission is granted to copy and distribute translations of this manual
85
into another language, under the above conditions for modified versions.
86
@end titlepage
87
@end iftex
88
 
89
@ifinfo
90
@node Top
91
@top LIBM
92
@end ifinfo
93
 
94
@menu
95
* Math::           The mathematical functions (`math.h').
96
* Reentrancy::     The functions in libm are not reentrant by default.
97
* Long Double Functions:: The long double function support of libm.
98
* Index::
99
@end menu
100
 
101
@include targetdep.tex
102
 
103
@node Reentrancy
104
@chapter Reentrancy Properties of @code{libm}
105
 
106
@cindex reentrancy
107
@cindex @code{matherr} and reentrancy
108
When a libm function detects an exceptional case, @code{errno} may be
109
set, the @code{matherr} function may be called, and a error message
110
may be written to the standard error stream.  This behavior may not
111
be reentrant.
112
 
113
@c The exact behavior depends on the currently selected error handling
114
@c mode (IEEE, POSIX, X/Open, or SVID).
115
 
116
With reentrant C libraries like the Red Hat newlib C library, @code{errno} is
117
a macro which expands to the per-thread error value.  This makes it thread
118
safe.
119
 
120
When the user provides his own @code{matherr} function it must be
121
reentrant for the math library as a whole to be reentrant.
122
 
123
In normal debugged programs, there are usually no math subroutine
124
errors---and therefore no assignments to @code{errno} and no @code{matherr}
125
calls; in that situation, the math functions behave reentrantly.
126
 
127
@node Long Double Functions
128
@chapter The long double function support of @code{libm}
129
Currently, the full set of long double math functions is only provided
130
on platforms where long double equals double.
131
For such platforms, the long double math functions are implemented as calls to the double versions.
132
@node Index
133
@unnumbered Index
134
@printindex cp
135
 
136
@tex
137
% I think something like @colophon should be in texinfo.  In the
138
% meantime:
139
\long\def\colophon{\hbox to0pt{}\vfill
140
\centerline{The body of this manual is set in}
141
\centerline{\fontname\tenrm,}
142
\centerline{with headings in {\bf\fontname\tenbf}}
143
\centerline{and examples in {\tt\fontname\tentt}.}
144
\centerline{{\it\fontname\tenit\/} and}
145
\centerline{{\sl\fontname\tensl\/}}
146
\centerline{are used for emphasis.}\vfill}
147
\page\colophon
148
% Blame: pesch@cygnus.com, 28mar91.
149
@end tex
150
 
151
@contents
152
@bye
153
 
154
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.