On 05/18, J. Lewis Muir wrote:
> On 05/18, Mark Rivers wrote:
> > I think the bit rates are normally in the range of 10,000 to 100,000
> > and unlikely to exceed 32 bit integer.
>
> Of course, you could have some crazy bitrate like 2,985,984,000 bps
> (uncompressed 24-bit color 1080p at 60 fps) that would not fit, but I
> guess I'm unlikely to run into that, so I'll just do the conversion from
> 64-bit integer to 32-bit integer and return an error if it won't fit.
Hmm, EPICS 3.14 provides architecture independent data types (e.g.,
epicsInt32) in src/libCom/misc/epicsTypes.h, but I don't see where it
provides constants for the minimum and maximum values of those data
types (e.g., EPICS_INT32_MIN and EPICS_INT32_MAX). Are these provided
anywhere?
If not, does EPICS currently only support platforms that represent
signed integers using the two's complement system such that I could
safely assume the minimum and maximum values of epicsInt32 are
-2,147,483,647 and 2,147,483,647, respectively?
Thanks,
Lewis
- References:
- Store 64-bit integer in asyn parameter library? J. Lewis Muir
- Re: Store 64-bit integer in asyn parameter library? J. Lewis Muir
- Re: Store 64-bit integer in asyn parameter library? Mark Rivers
- Re: Store 64-bit integer in asyn parameter library? J. Lewis Muir
- Re: Store 64-bit integer in asyn parameter library? Mark Rivers
- Re: Store 64-bit integer in asyn parameter library? J. Lewis Muir
- Navigate by Date:
- Prev:
Re: Store 64-bit integer in asyn parameter library? Mark Rivers
- Next:
Job Opening at Fermilab, Accelerator Instrumentation Department Dennis Nicklaus
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
<2018>
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: Store 64-bit integer in asyn parameter library? Luca Cavalli
- Next:
Job Opening at Fermilab, Accelerator Instrumentation Department Dennis Nicklaus
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
<2018>
2019
2020
2021
2022
2023
2024
|