To subscribe or unsubscribe via the World Wide Web, visit
http://lists.freebsd.org/mailman/listinfo/freebsd-arm
or, via email, send a message with subject or body 'help' to
freebsd-a...@freebsd.org
You can reach the person managing the list at
freebsd-...@freebsd.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of freebsd-arm digest..."
Today's Topics:
1. Re: printf(long double) (Maks Verver)
2. Current problem reports assigned to freeb...@FreeBSD.org
(FreeBSD bugmaster)
----------------------------------------------------------------------
Message: 1
Date: Mon, 12 Apr 2010 02:42:06 +0200
From: Maks Verver <maksv...@geocities.com>
Subject: Re: printf(long double)
To: Alexander Motin <m...@FreeBSD.org>
Cc: freeb...@FreeBSD.org
Message-ID: <4BC26C5E...@geocities.com>
Content-Type: text/plain; charset="iso-8859-1"
Hi Alexander,
On 03/30/10 17:39, Alexander Motin wrote:
> #include <stdio.h> int main (void) { printf("%Lf %f\n", (long
> double)14.5, (double)14.5); return(0); }
>
> It compiles cleanly on both arm and amd64, but still not working on
> arm: %./a.out 6.500000 14.500000
I investigated this in detail and it seems to be caused by a bug in the
__ldtoa function that fails to account for the implicit mantissa bit of
the double value (6 = 14 - 8) because the ARM port doesn't define
LDBL_IMPLICIT_NBIT.
Attached is a patch to lib/libc/arm/_fpmath.h that corrects this
problem and also corrects the value for LDBL_MANH_SIZE. Warner, do you
know if there is a subtle reason why arm/_fpmath.h contains the
definitions it does now, or are these errors that should be fixed in the
trunk?
Kind regards,
Maks Verver.
-------------- next part --------------
--- lib/libc/arm/_fpmath.h.orig 2010-04-11 23:23:37.000000000 +0200
+++ lib/libc/arm/_fpmath.h 2010-04-11 23:25:48.000000000 +0200
@@ -56,8 +56,9 @@
#define LDBL_NBIT 0
#define mask_nbit_l(u) ((void)0)
+#define LDBL_IMPLICIT_NBIT
-#define LDBL_MANH_SIZE 32
+#define LDBL_MANH_SIZE 20
#define LDBL_MANL_SIZE 32
#define LDBL_TO_ARRAY32(u, a) do { \
------------------------------
Message: 2
Date: Mon, 12 Apr 2010 11:06:55 GMT
From: FreeBSD bugmaster <bugm...@FreeBSD.org>
Subject: Current problem reports assigned to freeb...@FreeBSD.org
To: freeb...@FreeBSD.org
Message-ID: <201004121106....@freefall.freebsd.org>
Note: to view an individual PR, use:
http://www.freebsd.org/cgi/query-pr.cgi?pr=(number).
The following is a listing of current problems submitted by FreeBSD users.
These represent problem reports covering all versions including
experimental development code and obsolete releases.
S Tracker Resp. Description
--------------------------------------------------------------------------------
o arm/134368 arm [patch] nslu2_led driver for the LEDs on the NSLU2
o arm/134338 arm [patch] Lock GPIO accesses on ixp425
2 problems total.
------------------------------
End of freebsd-arm Digest, Vol 211, Issue 1
*******************************************