float_t and double_t (C99)

Matthew Dillon dillon at apollo.backplane.com
Mon Apr 7 07:32:02 PDT 2008


:If you say so ... :)
:
:And there comes a second problem - I'd bring in stuff for amd64 as well 
:then, but where to put typedefs so that math.h can pick this up? 
:sys/cpu/xxx/include/math.h? AFAICS FLT_EVAL_METHOD define has to go into 
:sys/cpu/xxx/include/float.h.
:
:-- 
:Hasso Tepper

    <machine/xxx.h> translates to cpu/blah/include/xxx.h or
    platform/blah/include/xxx.h.  platform headers override
    cpu headers from the point of view of userland's use of
    <machine/xxx.h>, but internally a platform header can
    directly reference underlying cpu headers.

    A little weird but it works.  If you look at /usr/include/machine/*.h
    you can see the result.  Some of the header came from the platform
    code and some came directly from the cpu code.

					-Matt
					Matthew Dillon 
					<dillon at backplane.com>





More information about the Submit mailing list