History log of /netbsd-src/lib/libm/src/k_rem_pio2.c (Results 1 – 15 of 15)
Revision Date Author Comments
# 195e7a08 08-Aug-2023 mrg <mrg@NetBSD.org>

avoid uninitialised variable accesses.

if __kernel_rem_pio2() or __kernel_rem_pio2f() are called with "nx" less
than 2, the local variable fq[0] may be accessed uninitialised.

__kernel_rem_pio2() h

avoid uninitialised variable accesses.

if __kernel_rem_pio2() or __kernel_rem_pio2f() are called with "nx" less
than 2, the local variable fq[0] may be accessed uninitialised.

__kernel_rem_pio2() has direct calls with nx = 1, and __kernel_rem_pio2f()
is called with a value starting at 3, but may be decreased to less than 2,
implied by this code , if not actually avoided by the tx[] setup above:
nx = 3;
while(tx[nx-1]==zero) nx--; /* skip zero term */
n = __kernel_rem_pio2f(tx,y,e0,nx,2,two_over_pi);

found by GCC 12.

show more ...


# 892b7744 24-Aug-2022 christos <christos@NetBSD.org>

sync with FreeBSD; bring some more inline functions.


# 5b9f4165 22-Jun-2017 maya <maya@NetBSD.org>

Correct misleading indentation. NFC

From GCC8


# d4def068 23-Apr-2010 drochner <drochner@NetBSD.org>

-build ldexp/frexp/modf locally again rather than relying on libc
reaching over, to get things into a sane state,
-do the usual namespace protection game with scalbn(f) because it
is used internall

-build ldexp/frexp/modf locally again rather than relying on libc
reaching over, to get things into a sane state,
-do the usual namespace protection game with scalbn(f) because it
is used internally
(more symbol renamings are necessary)

The weak_alias change for mc68881 is untested.

show more ...


# 617b132a 04-Jan-2003 wiz <wiz@NetBSD.org>

Spell output with two ts.


# aa30599e 26-May-2002 wiz <wiz@NetBSD.org>

__STDC__ is always defined on NetBSD.


# 42724dd4 02-Jul-1999 simonb <simonb@NetBSD.org>

More trailing white space.


# dd7adfbf 09-Oct-1997 lukem <lukem@NetBSD.org>

rcsid facism, WARNSify


# d042a3eb 10-May-1995 jtc <jtc@NetBSD.org>

Id -> NetBSD


# d1f06e0b 22-Sep-1994 jtc <jtc@NetBSD.org>

LIBM_SCCS must be defined for the RCS ID to be defined.
This library will soon be used by DJGPP. And since memory is often tight
on DOS machines, there is little benifit to be had from including RCS

LIBM_SCCS must be defined for the RCS ID to be defined.
This library will soon be used by DJGPP. And since memory is often tight
on DOS machines, there is little benifit to be had from including RCS IDs.

show more ...


# b0c9d092 18-Aug-1994 jtc <jtc@NetBSD.org>

Change int -> int32_t and unsigned int -> u_int32_t to improve portabilty
to machines where int != 32 bits.


# 8346e333 10-Aug-1994 jtc <jtc@NetBSD.org>

Float versions of math functions. From Ian Taylor (ian@cygnus.com), with
minor changes by me.


# bc3f7bf6 18-Feb-1994 jtc <jtc@NetBSD.org>

Add RCS ID's.


# b0122e80 11-Feb-1994 jtc <jtc@NetBSD.org>

Include <math.h> instead of "fdlibm.h"
Byteorder fix for s_frexp.c.


# 13618394 11-Feb-1994 jtc <jtc@NetBSD.org>

Fdlibm 5.1