* Question on including 'math.h' from C runtime...
@ 2001-05-02 3:17 Steven J. Hill
2001-05-02 3:28 ` Horst von Brand
2001-05-02 11:18 ` Alan Cox
0 siblings, 2 replies; 3+ messages in thread
From: Steven J. Hill @ 2001-05-02 3:17 UTC (permalink / raw)
To: lkml
Greetings.
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.
-Steve
--
Steven J. Hill - Embedded SW Engineer
Public Key: 'http://www.cotw.com/pubkey.txt'
FPR1: E124 6E1C AF8E 7802 A815
FPR2: 7D72 829C 3386 4C4A E17D
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Question on including 'math.h' from C runtime...
2001-05-02 3:17 Question on including 'math.h' from C runtime Steven J. Hill
@ 2001-05-02 3:28 ` Horst von Brand
2001-05-02 11:18 ` Alan Cox
1 sibling, 0 replies; 3+ messages in thread
From: Horst von Brand @ 2001-05-02 3:28 UTC (permalink / raw)
To: sjhill; +Cc: lkml
"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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Question on including 'math.h' from C runtime...
2001-05-02 3:17 Question on including 'math.h' from C runtime Steven J. Hill
2001-05-02 3:28 ` Horst von Brand
@ 2001-05-02 11:18 ` Alan Cox
1 sibling, 0 replies; 3+ messages in thread
From: Alan Cox @ 2001-05-02 11:18 UTC (permalink / raw)
To: sjhill; +Cc: lkml
> '/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
That probably shouldnt be using it
> drivers/net/hamradio/soundmodem/gentbl.c
This one is intentional. gentbl is a program linked in user space and used
to generate a .h file then built for the kernel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-05-02 11:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-02 3:17 Question on including 'math.h' from C runtime Steven J. Hill
2001-05-02 3:28 ` Horst von Brand
2001-05-02 11:18 ` Alan Cox
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.