[Xorp-hackers] [PATCH] Support for IEEE754 binary64 format in XRLs
Ben Greear
greearb at candelatech.com
Tue Sep 13 09:29:07 PDT 2011
On 09/13/2011 09:21 AM, Steven Simpson wrote:
> On 13/09/11 17:14, Ben Greear wrote:
>> ./libxipc/xrl_atom.hh: In constructor ‘XrlAtom::XrlAtom(const
>> fp64_t&)’:
>> ./libxipc/xrl_atom.hh:336: warning: converting to ‘uint64_t’ from
>> ‘const double’
>
> D'oh!
>
> // fp64 constructors
> explicit XrlAtom(const fp64_t& value)
> : _type(xrlatom_fp64), _have_data(true), _own(true), _u64val(value) {}
>
> That _u64val should, of course, be _fp64val!
I figured that...but then it blows up again:
Maybe something funky with how math.h works on this system...
cc1: warnings being treated as errors
libxipc/fp64serial.c: In function ‘fp64enc’:
libxipc/fp64serial.c:58: warning: implicit declaration of function ‘fpclassify’
libxipc/fp64serial.c:58: warning: nested extern declaration of ‘fpclassify’
libxipc/fp64serial.c:63: error: ‘FP_ZERO’ undeclared (first use in this function)
libxipc/fp64serial.c:63: error: (Each undeclared identifier is reported only once
libxipc/fp64serial.c:63: error: for each function it appears in.)
libxipc/fp64serial.c:64: warning: implicit declaration of function ‘signbit’
libxipc/fp64serial.c:69: error: ‘FP_INFINITE’ undeclared (first use in this function)
libxipc/fp64serial.c:75: error: ‘FP_NAN’ undeclared (first use in this function)
libxipc/fp64serial.c:81: error: ‘FP_SUBNORMAL’ undeclared (first use in this function)
libxipc/fp64serial.c:82: error: ‘FP_NORMAL’ undeclared (first use in this function)
libxipc/fp64serial.c: In function ‘fp64dec’:
libxipc/fp64serial.c:151: error: ‘INFINITY’ undeclared (first use in this function)
libxipc/fp64serial.c:152: error: ‘NAN’ undeclared (first use in this function)
scons: *** [obj/i686-pc-linux-gnu/libxipc/fp64serial.os] Error 1
scons: building terminated because of errors.
>
> Sorry!
>
> _______________________________________________
> Xorp-hackers mailing list
> Xorp-hackers at icir.org
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers
--
Ben Greear <greearb at candelatech.com>
Candela Technologies Inc http://www.candelatech.com
More information about the Xorp-hackers
mailing list