mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-08 18:30:18 +00:00
Update.
2000-05-28 Ulrich Drepper <drepper@redhat.com> * manual/arith.texi (Rounding Functions): Fix documentation of trunc. Patch by Steven G. Johnson <stevenj@gil-galad.mit.edu>.
This commit is contained in:
parent
f0f8ed4e3f
commit
e6e813911c
@ -1,3 +1,8 @@
|
|||||||
|
2000-05-28 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* manual/arith.texi (Rounding Functions): Fix documentation of trunc.
|
||||||
|
Patch by Steven G. Johnson <stevenj@gil-galad.mit.edu>.
|
||||||
|
|
||||||
2000-05-27 Andreas Jaeger <aj@suse.de>
|
2000-05-27 Andreas Jaeger <aj@suse.de>
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/i386/pread.c: Removed, we can use the
|
* sysdeps/unix/sysv/linux/i386/pread.c: Removed, we can use the
|
||||||
|
@ -29,8 +29,8 @@ These functions are declared in the header files @file{math.h} and
|
|||||||
|
|
||||||
The C language defines several integer data types: integer, short integer,
|
The C language defines several integer data types: integer, short integer,
|
||||||
long integer, and character, all in both signed and unsigned varieties.
|
long integer, and character, all in both signed and unsigned varieties.
|
||||||
The GNU C compiler extends the language to contain long long integers
|
The GNU C compiler extends the language to contain long long integers
|
||||||
as well.
|
as well.
|
||||||
@cindex signedness
|
@cindex signedness
|
||||||
|
|
||||||
The C integer types were intended to allow code to be portable among
|
The C integer types were intended to allow code to be portable among
|
||||||
@ -79,7 +79,7 @@ structure with @emph{at least} N bits, use one of these:
|
|||||||
@item uint64_least_t
|
@item uint64_least_t
|
||||||
@end itemize
|
@end itemize
|
||||||
|
|
||||||
If you don't need a specific storage size, but want the data structure
|
If you don't need a specific storage size, but want the data structure
|
||||||
that allows the fastest access while having at least N bits (and
|
that allows the fastest access while having at least N bits (and
|
||||||
among data structures with the same access speed, the smallest one), use
|
among data structures with the same access speed, the smallest one), use
|
||||||
one of these:
|
one of these:
|
||||||
@ -95,7 +95,7 @@ one of these:
|
|||||||
@item uint64_fast_t
|
@item uint64_fast_t
|
||||||
@end itemize
|
@end itemize
|
||||||
|
|
||||||
If you want an integer with the widest range possible on the platform on
|
If you want an integer with the widest range possible on the platform on
|
||||||
which it is being used, use one of the following. If you use these,
|
which it is being used, use one of the following. If you use these,
|
||||||
you should write code that takes into account the variable size and range
|
you should write code that takes into account the variable size and range
|
||||||
of the integer.
|
of the integer.
|
||||||
@ -1398,7 +1398,9 @@ integer, returning that value as a @code{double}. Thus, @code{floor
|
|||||||
@comment math.h
|
@comment math.h
|
||||||
@comment ISO
|
@comment ISO
|
||||||
@deftypefunx {long double} truncl (long double @var{x})
|
@deftypefunx {long double} truncl (long double @var{x})
|
||||||
@code{trunc} is another name for @code{floor}
|
The @code{trunc} functions round @var{x} towards zero to the nearest
|
||||||
|
integer (returned in floating-point format). Thus, @code{trunc (1.5)}
|
||||||
|
is @code{1.0} and @code{trunc (-1.5)} is @code{-1.0}.
|
||||||
@end deftypefun
|
@end deftypefun
|
||||||
|
|
||||||
@comment math.h
|
@comment math.h
|
||||||
@ -2131,7 +2133,7 @@ returned on overflow is @code{ULONG_MAX} (@pxref{Range of Type}).
|
|||||||
If @var{string} depicts a negative number, @code{strtoul} acts the same
|
If @var{string} depicts a negative number, @code{strtoul} acts the same
|
||||||
as @var{strtol} but casts the result to an unsigned integer. That means
|
as @var{strtol} but casts the result to an unsigned integer. That means
|
||||||
for example that @code{strtoul} on @code{"-1"} returns @code{ULONG_MAX}
|
for example that @code{strtoul} on @code{"-1"} returns @code{ULONG_MAX}
|
||||||
and an input more negative than @code{LONG_MIN} returns
|
and an input more negative than @code{LONG_MIN} returns
|
||||||
(@code{ULONG_MAX} + 1) / 2.
|
(@code{ULONG_MAX} + 1) / 2.
|
||||||
|
|
||||||
@code{strtoul} sets @var{errno} to @code{EINVAL} if @var{base} is out of
|
@code{strtoul} sets @var{errno} to @code{EINVAL} if @var{base} is out of
|
||||||
|
Loading…
Reference in New Issue
Block a user