- Added some hipadab array math
- Added missing cnvrt files, stolen from Markus - Debugged the new sinqhttpopt driver for SINQ HTTP HM - Debugged the driver for the new S7 Siemens SPS - Added handling of hexadecimal terminators to ascon.c - Increased the write buffer size in asynnet again - Fixed a core dump in lld.c - Added writing of second gen HM to nxscript.c - Added doubletime command to SICS - Fixed a core dump issue in sicshdbadapter.c on dimension changes - Modified sicsobj to look for lower case keys too SKIPPED: psi/cnvrt.c psi/cnvrt.h psi/el734hp.c psi/make_gen psi/sinqhttpopt.c psi/sinqhttpprot.c psi/spss7.c psi/swmotor.c
This commit is contained in:
31
arrayutil.h
Normal file
31
arrayutil.h
Normal file
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
* arrayutil.h
|
||||
*
|
||||
* copyright: GPL
|
||||
*
|
||||
* Start of some array processing utilities. This may go if
|
||||
* a more generalized array handling gets implemented into
|
||||
* SICS.
|
||||
*
|
||||
* Created on: Mar 16, 2011
|
||||
* Author: koennecke
|
||||
*/
|
||||
|
||||
#ifndef ARRAYUTIL_H_
|
||||
#define ARRAYUTIL_H_
|
||||
|
||||
/**
|
||||
* sum data in a window
|
||||
* @param data The data pointer
|
||||
* @param xstart
|
||||
* @param xend
|
||||
* @param xlength length of x dimension
|
||||
* @param ystart
|
||||
* @param yend
|
||||
* @param ylength size of y dimension
|
||||
* @return a sum or -2 if the limits fail to make sense
|
||||
*/
|
||||
long sumWindow(int *data, int xstart, int xend, int xlength,
|
||||
int ystart, int yend, int ylength);
|
||||
|
||||
#endif /* ARRAYUTIL_H_ */
|
||||
Reference in New Issue
Block a user