[Bro-Dev] #908: Need for function bytestring_to_double

Bro Tracker bro at tracker.bro-ids.org
Sun Oct 28 12:25:15 PDT 2012


#908: Need for function bytestring_to_double
------------------------------+-------------------------------
  Reporter:  carsten          |      Owner:
      Type:  Feature Request  |     Status:  needs information
  Priority:  Normal           |  Milestone:  Bro2.2
 Component:  Bro              |    Version:  git/master
Resolution:                   |   Keywords:
------------------------------+-------------------------------

Comment (by carsten):

 Replying to [comment:9 matthias]:
 > I'm not entirely convinced that this is the right solution. In memory, a
 double is indeed 64 bits, however, double-precision registers are 80 bits
 on x86 [1]. Consequently, if a compiler decides to hold a double purely in
 a register, you will see truncation.
 >
 > [1] http://en.wikipedia.org/wiki/Extended_precision
 But the situation at hand is that we have already a 64-bit representation
 within a network trace, and try to bring that back to a double value. If
 there was trunkation, it happened while putting the value to the network,
 not when we read it from network.

-- 
Ticket URL: <http://tracker.bro-ids.org/bro/ticket/908#comment:11>
Bro Tracker <http://tracker.bro-ids.org/bro>
Bro Issue Tracker



More information about the bro-dev mailing list