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: | Re: subArray processing (when comments and code disagree) |
From: | Carl Lionberger <[email protected]> |
To: | "Lawrence T. Hoff" <[email protected]> |
Cc: | [email protected] |
Date: | Tue, 06 Sep 2005 14:20:18 -0700 |
This probably has no real practical consequence, but..... I noticed a (minor) discrepancy between the EPICS Record Reference Manual description of subArray record processing, and the code which implements the algorithm. I have a suspicion about which is correct, but maybe someone who has complete confidence can bring these two into agreement:
Record Reference Manual:
Sanity check INDX. If INDX is greater than MALM it is set to MALM-1.
subArrayRecord.c:
if (psa->indx >= psa->malm)
{
psa->indx = psa->malm - 1;
}
Note that one says ">", and the other says ">="...
-- Larry
-- Carl Lionberger Control System Software Engineer Berkeley National Laboratory (LBNL) (510)486 7503