mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
To: sjhill@cotw.com
Cc: lkml <linux-kernel@vger.kernel.org>
Subject: Re: Question on including 'math.h' from C runtime...
Date: Tue, 01 May 2001 23:28:54 -0400	[thread overview]
Message-ID: <200105020328.f423Ssvf011202@sleipnir.valparaiso.cl> (raw)
In-Reply-To: Message from "Steven J. Hill" <sjhill@cotw.com>  of "Tue, 01 May 2001 22:17:23 EST." <3AEF7C43.9955C970@cotw.com>

"Steven J. Hill" <sjhill@cotw.com> said:
> I checked in the archives and did not see a discussion of this
> anywhere. I have received some Linux kernel code from a project
> that I have inherited and a couple of the drivers are including
> math.h from the C library. This being the header file from
> '/usr/include/math.h' in most cases. There are only two places
> in the kernel that also include this header file. They are:
> 
>    drivers/atm/iphase.c
>    drivers/net/hamradio/soundmodem/gentbl.c
> 
> As far as I can tell '/usr/include/math.h' is just full of
> defines and the header files it includes are also a bunch
> of defines with a few macro functions sprinkled in. Can someone
> shed light on if this is bad or not and why it would be done
> or necessary? Thanks.

Floating point in-kernel is a no-no-no. What you see is use in helper
programs that are compiled as part of the kernel build. Check if that is
your case too.
-- 
Horst von Brand                             vonbrand@sleipnir.valparaiso.cl
Casilla 9G, Vin~a del Mar, Chile                               +56 32 672616

  reply	other threads:[~2001-05-02  3:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-02  3:17 Steven J. Hill
2001-05-02  3:28 ` Horst von Brand [this message]
2001-05-02 11:18 ` Alan Cox

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=200105020328.f423Ssvf011202@sleipnir.valparaiso.cl \
    --to=vonbrand@sleipnir.valparaiso.cl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sjhill@cotw.com \
    /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

all inboxes | Powered by JetHome®