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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib/] [newlib/] [libm/] [libm.texinfo] - Blame information for rev 1777

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

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

powered by: WebSVN 2.1.0

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