History log of /openbsd/lib/libc/arch/sparc64/fpu/fpu_explode.c (Results 1 – 12 of 12)
Revision Date Author Comments
# 6244ddcc 29-Mar-2024 miod <miod@openbsd.org>

Do not include <machine/frame.h> in libc sparc64 fpu routines, they don't
need any of its contents.
ok claudio@ kettenis@


# 77f9746c 17-Sep-2021 deraadt <deraadt@openbsd.org>

sys/param.h is not needed in these files


# dcaa94fa 21-Jun-2019 jca <jca@openbsd.org>

Fix conversions to long double on sparc64

Bug exposed by erratic sqlite3 behavior used in ports/devel/proj,
as pointed out by landry@. Richard Hipps (SQLite) pointed at the
culprit (_Qp_div), many

Fix conversions to long double on sparc64

Bug exposed by erratic sqlite3 behavior used in ports/devel/proj,
as pointed out by landry@. Richard Hipps (SQLite) pointed at the
culprit (_Qp_div), many thanks.

Adapted from FreeBSD revision 146673 by Stephen Paskaluk and
stefanf@FreeBSD. FreeBSD commit message:

"""
Fix long (and long long) to long double, unsigned to long double and
unsigned long (and unsigned long long) to long double conversions.
- Add a parameter that specifies the position of the sign bit to the _QP_TTOQ
macro, previously it always looked at bit 31. Pass a negative number to
disable sign inspection for unsigned types. This fixes _Qp_xtoq(),
_Qp_uitoq() and _Qp_uxtoq().
- In the functions __fpu_itof() and __fpu_xtof(), look at the sign
bit to decide whether we're doing a conversion from an unsigned type. If so, don't
negate the mantissa if the integer exceeds the biggest signed number.
"""

ok deraadt@

show more ...


# 075a6035 15-Mar-2019 kevlo <kevlo@openbsd.org>

Remove FBSDID.

ok deraadt@


# 19e206fb 08-May-2016 guenther <guenther@openbsd.org>

Hide __fpu_* and make internal _Qp_* calls go direct.

ok kettenis@


# 4a39ccd0 05-Dec-2012 deraadt <deraadt@openbsd.org>

Remove excessive sys/cdefs.h inclusion
ok guenther millert kettenis


# 5ecfcfc9 23-Dec-2006 deraadt <deraadt@openbsd.org>

please gcc


# 90c97895 28-Sep-2004 otto <otto@openbsd.org>

Fix unsigned {int, long, long long} to long double conversions for
values with the high bit set. ok kettenis@ jason@


# f817f925 24-Mar-2004 jason <jason@openbsd.org>

From the how many ways can you screw up replacing one line of code
department: cast 'i' to u_int64_t so the sign comparison actually
makes sense. Any other bugs in here just ship in the release, I'm

From the how many ways can you screw up replacing one line of code
department: cast 'i' to u_int64_t so the sign comparison actually
makes sense. Any other bugs in here just ship in the release, I'm done.

show more ...


# 5aa4bfdd 23-Mar-2004 jason <jason@openbsd.org>

use absolute value like rev 1.1 did; pointed out by tom and ok deraadt.


# 78c5984c 23-Mar-2004 jason <jason@openbsd.org>

gcc3 doesn't align things the same as gcc2. Casting upwards is dangerous
to a program's health, avoid it. ok deraadt


# 02b90bea 21-Jul-2003 jason <jason@openbsd.org>

quad float emulation stuff. Mostly based on freebsd (which is based on
NetBSD's kernel emulation stuff). Not enabled yet.