public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Sandy Harris <pashley@storm.ca>
To: linux-kernel@vger.kernel.org
Subject: Re: Advice saught on math functions
Date: Sun, 14 Jul 2002 10:17:10 -0400	[thread overview]
Message-ID: <3D3187E6.426BB595@storm.ca> (raw)
In-Reply-To: 20020714002054.GB29007@codepoet.org

Erik Andersen wrote:
> 
> On Fri Jul 12, 2002 at 11:42:19AM -0400, Sandy Harris wrote:
> > Does dietlibc help?
> >
> 
> This is kernel space.  Using any math functions is forbidden
> in kernel space,

Exactly what do you mean by "forbidden"?

Granted the kernel does not normally contain math libraries,
and that linking in a 500 meg library would be spectacularly
silly, what's wrong with using a few carefully chosen math
functions in a driver?

The kernel does not, I think, normally use floating point.
Would things break if a library that does was linked in?
Is that what you mean?

> so using dietlibc, uClibc, or anything else
> is not going to work.

Just linking in a whole library won't work, but stealing code
from a size-optimized library might. 

> Moving the math stuff to userspace will
> help, at which point he can use any C library that suits him,

The guy asking the question thinks he needs math in his driver
because he needs a system that talks to blind users during the
boot process, before any userspace programs can run.

I've already suggested writing a scaled integer math library.
This should be faster than float, accurate enough for speech.
If what Erik is objecting to is floating point in the kernel,
not just any sort of math, then it avoids his objection.

Another possible solution:

Use two machines, both set to put boot messages on a serial
console and connected so that when either reboots, the other
is used as console. Do your sound in userspace (which I agree
is where it belongs). Now as long as you don't reboot both
at once (use a UPS!), you have sound for boot messages.

  reply	other threads:[~2002-07-14 15:09 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-12 14:08 Advice saught on math functions Kirk Reiser
2002-07-12 14:39 ` Alan Cox
2002-07-12 14:52   ` Kirk Reiser
2002-07-12 15:32     ` Alan Cox
2002-07-12 16:04       ` Kirk Reiser
2002-07-12 16:31         ` Alan Cox
2002-07-12 16:21           ` Dave Jones
2002-07-15  9:46           ` Eric W. Biederman
2002-07-16  5:26             ` H. Peter Anvin
2002-07-15 10:03         ` Eric W. Biederman
2002-07-15 14:10           ` Kirk Reiser
2002-07-15 16:38             ` Eric W. Biederman
2002-07-12 15:46     ` Nicolas Pitre
2002-07-12 16:30       ` Kirk Reiser
2002-07-12 17:03         ` Nicolas Pitre
2002-07-12 16:22   ` J.A. Magallon
2002-07-12 16:49     ` William Park
2002-07-13 14:00   ` Pavel Machek
2002-07-13 17:10     ` Alan Cox
2002-07-12 14:46 ` Richard B. Johnson
2002-07-12 15:42 ` Sandy Harris
2002-07-12 16:46   ` Kirk Reiser
2002-07-14  0:20   ` Erik Andersen
2002-07-14 14:17     ` Sandy Harris [this message]
2002-07-14 16:49       ` Albert D. Cahalan
2002-07-14 17:01       ` Thunder from the hill

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=3D3187E6.426BB595@storm.ca \
    --to=pashley@storm.ca \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox