public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Changing Mantissa's Width in Non-IEEE Floating Point implementation
@ 2014-09-11  1:31 Sheheryar Qazi
  0 siblings, 0 replies; only message in thread
From: Sheheryar Qazi @ 2014-09-11  1:31 UTC (permalink / raw)
  To: gcc-help

Hi,
I have a gcc cross compiler on an 18 bit soft-core processor target
that has the following datatypes defined:
Integer 18 bit, Long 36 bit and float 36-bit(single precision).
Right now my focus is on floating point operation. Since the width is
non-standard(36 bit), I have the following scheme: 27 bits for
Mantissa(significand), 8 bits for Exponents and 1 Sign bit.
I can see the widths are defined in the float.h file. of interest to
me are the following:
FLT_MANT_DIG  and FLT_DIG.
They are defined as:

FLT_MANT_DIG 24
FLT_DIG 6

I have changed them to

FLT_MANT_DIG 28
 FLT_DIG 9

As per my requirements in float.h and then build the gcc compiler. But
still I get 32 bit floating point output.Do anyone has any experience
implementing non-standard single precision floating point numbers
and/or know wat changes are needed please let me know.
Sincerely
Sheheryar

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-09-11  1:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-11  1:31 Changing Mantissa's Width in Non-IEEE Floating Point implementation Sheheryar Qazi

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).