From: prathika <prathika@deeopl.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] floating point operation in powerpc
Date: Thu, 06 Aug 2009 12:03:42 +0530 [thread overview]
Message-ID: <4A7A7946.6080007@deeopl.com> (raw)
hi all
i am porting u-boot on powerpc 440.
i am also running a simple hello world application on it and I want to
use floating point unit.
i have declared a floating point variable like this :
/float ftemp;
/ i am trying to print the floating point value like this:
/printf("ftemp=%f\n",ftemp);
/ i have included "float.h"
but still it doesnt print me the exact floating point value.
my output is like this:
/ftemp=%f
/ i have not edited MSR register. should i set the bit 18 for using the
FPU in PPC?
where am I going wrong in using floating point? is there any switch or
library that i should include while compiling the hello_world.c?
this might be seem very silly, but please help in sorting out this issue.
--
Regards,
Prathika R
next reply other threads:[~2009-08-06 6:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-06 6:33 prathika [this message]
2009-08-06 9:09 ` [U-Boot] floating point operation in powerpc Wolfgang Denk
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=4A7A7946.6080007@deeopl.com \
--to=prathika@deeopl.com \
--cc=u-boot@lists.denx.de \
/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.