EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: mask for bitwise operation in CALC record
From: Andrew Johnson <[email protected]>
To: [email protected]
Cc: [email protected]
Date: Thu, 5 Jul 2012 11:31:09 -0500
Hi,

On 2012-07-04 haquin wrote:
> 
> Will this modification be integrated in the next EPICS release ? when ?

Thanks to your reminder I have implemented this on the 3.15 branch.  However 
the 3.15.0.x releases which we're currently working on are not intended for 
operational use, and at this stage I can't predict when the first operational 
release 3.15.1 will be out -- sorry!

On 2012-07-04 [email protected] wrote:
> 
> I'm pretty sure it's always safe to strtoul(), the behaviour in the
> presence of a minus sign seems well defined in the man page I'm reading
> and I've certainly not encountered problems using it.

You're right, and since the conversation on this topic I read up on this and 
have added a set of fully tested APIs to libCom in the 3.15 branch for parsing 
ASCII numbers into the various epicsInt* and epicsUInt* types, testing for 
overflows in all cases.

Literals that start 0x or 0X will be parsed by epicsCalc as an epicsUInt32.  
Other literals will be parsed using epicsStrtod() as before.  That means it 
will not be possible to use hex floating-point literals in 3.15, although they 
may have worked in earlier releases on platforms where strtod() supports them.

- Andrew
-- 
Never interrupt your enemy when he is making a mistake.
-- Napoleon Bonaparte

Replies:
Re: mask for bitwise operation in CALC record haquin
References:
mask for bitwise operation in CALC record haquin
Re: mask for bitwise operation in CALC record haquin
RE: mask for bitwise operation in CALC record michael.abbott

Navigate by Date:
Prev: Re: caQtDM: a MEDM replacement Michael Johnson
Next: Re: 回复: Re: Re: Problems when download synApps IOC Tim Mooney
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: mask for bitwise operation in CALC record michael.abbott
Next: Re: mask for bitwise operation in CALC record haquin
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·