EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: R3.14.8 testing
From: "Jeff Hill" <[email protected]>
To: "'Marty Kraimer'" <[email protected]>, <[email protected]>
Date: Tue, 1 Nov 2005 09:07:12 -0700
> I get many many warning messages like:
> 
> "../../../include/epicsTime.h", line 328: Warning: Conversion of 64 bit
> type value to "unsigned" causes truncation.

This is because the epicsTime has a 64 bit unsigned seconds field and the
network time stamp has a 32 bit unsigned seconds' field. I committed a fix
(which just suppresses the warning allowing truncation by design to
continue). Here is the comment in the source code.

    // epicsTime::secPastEpoch is based on ulong and has much greater range 
    // on 64 bit hosts than the orginal epicsTimeStamp::secPastEpoch. The 
    // epicsTimeStamp::secPastEpoch is based on epicsUInt32 so that it will 
    // match the original network protocol. Of course one can anticipate
    // that eventually, a epicsUInt64 based network time stamp will be 
    // introduced when 64 bit architectures are more ubiquitous.
    //
    // Truncation usually works fine here because the routines in this code
    // that compute time stamp differences and compare time stamps produce
    // good results when the operands are on either side of a time stamp
    // rollover as long as the difference between the operands does 
    // not exceed 1/2 of full range.




Replies:
Re: R3.14.8 testing Marty Kraimer
References:
R3.14.8 testing Marty Kraimer

Navigate by Date:
Prev: R3.14.8 testing Marty Kraimer
Next: XML include, Re: V4 database definition files Kay-Uwe Kasemir
Index: 2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: R3.14.8 testing Marty Kraimer
Next: Re: R3.14.8 testing Marty Kraimer
Index: 2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Feb 2012 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·