From: Karl Lessard <klessard@sunrisetelecom.com>
To: linux-mips <linux-mips@linux-mips.org>
Subject: Floating-point questions
Date: Thu, 06 Jan 2005 14:37:36 -0500 [thread overview]
Message-ID: <41DD9380.5080305@sunrisetelecom.com> (raw)
Hi all,
I just want to make sure that I understand correctly the behavior of
floating-points on systems without
FPU. There is 2 way for doing floating-point operations:
The first is to let the CPU generate exceptions on a FP operation call ,
which are handl e by the kernel that do the job in software,
using integers only.
The second is to build your app using the -msoft-float compilation flag,
making GCC to convert itself the FP operations
to integer operations, using its own libraries.
Also, I've test the both methods with simple float operations, and I
figured suprisingly that the first method is a bit
faster (I though the overhead would have been larger than the second one).
Do I miss something? Is there anything I can do to optimize
significantly float operations?
Thanks a lot,
Karl
reply other threads:[~2005-01-06 19:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=41DD9380.5080305@sunrisetelecom.com \
--to=klessard@sunrisetelecom.com \
--cc=linux-mips@linux-mips.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.