From: Abramo Bagnara <abramo@alsa-project.org>
To: Paul Davis <pbd@op.net>
Cc: Jaroslav Kysela <perex@perex.cz>, alsa-devel@lists.sourceforge.net
Subject: Re: Re: About integer64
Date: Thu, 09 May 2002 15:56:43 +0200 [thread overview]
Message-ID: <3CDA801B.9A10FE99@alsa-project.org> (raw)
In-Reply-To: 200205091339.g49Dd8907029@post2.fast.net
Paul Davis wrote:
>
> >b) if a 32 bit integer is not enough and a float is preferrable:
> >considered that an ieee754 floating point is in the form (1+man)*2^exp
> >what's the problem in converting it in your driver using ffs and some
> >shift?
>
> if the lkml crew see us using floating point in any form in the
> kernel, we will attract complaints, even if we use integer operations
> to do so. i am firmly convinced of this.
I don't think so: try to fgrep for float in kernel source, you'll find
several place where they're stored (and I suppose for good reason).
Also I've read a recent post from Alan Cox explaining *how* to use
floating point in kernel space. This presuppose that it's not a serious
sin if it's justified.
> >2) why use 64 bit integer
> >
> >Of course if a 64 bit integer is the best way to represent/report the
> >value all is fine, but in this case I doubt that you don't have
> >available the 64th bit for the sign.
>
> that seems likely to me also. i suspect we have somewhere between 32
> and 64 bits of information.
>
> i didn't say that i conclusively needed the sign bit - i was noting
> that the current API doesn't make unsigned values possible.
Please specify that then, you know, Jaroslav is faster than the dust to
insert new features, if you make him to believe they're needed ;-)
Better to insert them when and *if* they're needed: maintanance is
easier in this way.
--
Abramo Bagnara mailto:abramo@alsa-project.org
Opera Unica Phone: +39.546.656023
Via Emilia Interna, 140
48014 Castel Bolognese (RA) - Italy
ALSA project http://www.alsa-project.org
It sounds good!
_______________________________________________________________
Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: bandwidth@sourceforge.net
next prev parent reply other threads:[~2002-05-09 13:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200205091256.OAA26239@alsa.alsa-project.org>
2002-05-09 13:25 ` Re: About integer64 Abramo Bagnara
2002-05-09 13:40 ` Paul Davis
2002-05-09 13:56 ` Abramo Bagnara [this message]
2002-05-11 15:19 ` James Courtier-Dutton
2002-05-09 11:07 Paul Davis
2002-05-09 12:32 ` Abramo Bagnara
2002-05-09 12:57 ` Paul Davis
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=3CDA801B.9A10FE99@alsa-project.org \
--to=abramo@alsa-project.org \
--cc=alsa-devel@lists.sourceforge.net \
--cc=pbd@op.net \
--cc=perex@perex.cz \
/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.