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 | 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 |
<== Date ==> | <== Thread ==> |
---|
Subject: | FW: unsigned long record value |
From: | "Mark Rivers" <[email protected]> |
To: | "EPICS tech-talk" <[email protected]> |
Date: | Thu, 10 Jun 2010 09:26:12 -0500 |
I meant to send this to the list as well. From: Mark Rivers The VAL field of a longin record is an
epicsInt32. That is the same size as an epicsUInt32. The difference
is just in the interpretation of the bit pattern. Do you need to represent
positive numbers greater than 2^31-1 (2147483647) in your application? If
not then there is no problem just using the epicsInt32 as is. If you do, then depending on the application, you may
be able to just cast the epicsInt32 to epicsUInt32 to interpret the value as an
unsigned number. Mark From: Patrick
Thomas [mailto:[email protected]] Are those large enough to hold an unsigned value? |