On Wed, Apr 16, 2008 at 09:18:07AM +1000, Hasjim Williams wrote:
> glibc uses its own internal sqrt function, rather than the
> sqrtsf2/sqrtdf2 opcode, even on FPA or VFP.

Always.  That's how it is supposed to work; the expander allows GCC to
optimize sqrt operations inline, for architectures where it is
profitable to do so.  But the backing function remains "sqrt" (sqrtf,
sqrtl).  The implementation of that lives in the C library and is not
dependent on GCC for the body.

> Anyway, I misunderstood how the toolchain gets assembled and I would
> appreciate it someone could point out where the sqrt function is in
> glibc, on arm.
> Does arm use glibc/sysdeps/ieee754/dbl-64/mpsqrt.c ???

I don't know for sure, but it seems likely.  Build glibc with debug
info and step through it?

-- 
Daniel Jacobowitz
CodeSourcery

Reply via email to