Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Jul 2013 17:00:39 +0100
From:      Andrew Turner <andrew@fubar.geek.nz>
To:        freebsd-arm@freebsd.org
Subject:   Call for Testers: VFP optimised float/double helper functions
Message-ID:  <20130720170039.72c1e9c5@bender.Home>

next in thread | raw e-mail | index | archive | help
I have been working on adding VFP versions of the ARM EABI float/double
helper functions in libc. The patch [1] is mostly ready to commit.

The patch only uses the VFP code when the VFP is enabled in the kernel,
otherwise it falls back to the softfloat code. To make use of the VFP
version of the functions you need to ensure you are using an EABI
world, and add the following to your kernel config (if they are not
already there):
device          vfp
options         ARM_VFP_SUPPORT

I would suggest when testing this to libc in a separate directory and
use LD_LIBRARY_PATH to load it as bugs in this code can manifest in
strange ways and I have found being able to test against the softfloat
code can help track them down.

I have minimally tested this on a Raspberry Pi but further testing there
would be useful.

TODO:
 - Update libm to get/set the rounding method correctly
 - Test if it works with < armv6

Andrew

[1] http://people.freebsd.org/~andrew/arm_float2.diff



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130720170039.72c1e9c5>