public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
From: Steve Munroe <sjmunroe@us.ibm.com>
To: libc-hacker@sources.redhat.com
Cc: Mark Brown <bmark@us.ibm.com>
Subject: Accessing dl_hwcap from libm
Date: Wed, 12 May 2004 02:23:00 -0000	[thread overview]
Message-ID: <OF25177B54.E1844D9E-ON86256E92.000C28D4-86256E92.000CDE63@us.ibm.com> (raw)

For powerpc32 I can't assume that the fsqrt instruction is implemented.
Currently it is implemented on ALL PPC64 hardware. So I would
like to use the AT_HWCAP to detect this and conditionally use fsqrt.

Looking at i386/fpu/fesetround I see that dl_hwcap is used to check for
SSE.

        if ((GLRO(dl_hwcap) & HWCAP_I386_XMM) != 0)

But when I try something similar on powerpc w_sqrt I get:

../sysdeps/powerpc/fpu/w_sqrtf.c:37: undefined reference to
`_rtld_global_ro'

It seems that fesetround (and similar functions) are included in libc,
not libm. So is it fundamental that access to dl_dwcap (_rtld_global_ro)
is restricted to libc, or can access be extended to libm?

Steven J. Munroe
Linux on Power Toolchain Architect
IBM Corporation, Linux Technology Center


             reply	other threads:[~2004-05-12  2:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-12  2:23 Steve Munroe [this message]
2004-05-12  3:12 ` Ulrich Drepper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=OF25177B54.E1844D9E-ON86256E92.000C28D4-86256E92.000CDE63@us.ibm.com \
    --to=sjmunroe@us.ibm.com \
    --cc=bmark@us.ibm.com \
    --cc=libc-hacker@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).