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: Eric Norum <[email protected]>
To: Dirk Zimoch <[email protected]>
Cc: tech-talk <[email protected]>
Date: Tue, 5 Jun 2012 08:27:13 -0700
On Jun 5, 2012, at 6:11 AM, Dirk Zimoch wrote:
…..

I think adding something like this to epicsStrtod should fix the problem:

if (epicsStrnCaseCmp("0x", cp, 2) == 0) {
 return (double)strtoul(str, endp, 16);
}


The code with that change doesn't completely match the semantics of strtod as presented in the C99 standard, but it's certainly better than the current code.
BTW -- does vxWorks still not supply a working strtod?  I think that it is the only system that doesn't just define epicsStrtod as strtod.

-- 
Eric Norum
[email protected]


Replies:
Re: mask for bitwise operation in CALC record Andrew Johnson
References:
mask for bitwise operation in CALC record haquin
Re: mask for bitwise operation in CALC record Dirk Zimoch

Navigate by Date:
Prev: Re: counter of clients for specific PV in IOC Andrew Johnson
Next: Re: mask for bitwise operation in CALC record Andrew Johnson
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 Dirk Zimoch
Next: Re: mask for bitwise operation in CALC record Andrew Johnson
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 ·