- Timestamp:
- Nov 25, 2008, 4:51:39 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20081124/Ohana/src/opihi/include/dvomath.h
r20827 r20839 4 4 # define DVOMATH_H 5 5 6 # define OPIHI_NAME_SIZE 1024 7 6 8 # define NCHARS 256 7 # define opihi_fl oat float9 # define opihi_flt double 8 10 # define opihi_int unsigned int 9 11 10 12 enum {ANYVECTOR, NEWVECTOR, OLDVECTOR}; 11 13 enum {ANYBUFFER, NEWBUFFER, OLDBUFFER}; 12 enum {OPIHI_FL OAT, OPIHI_INT};14 enum {OPIHI_FLT, OPIHI_INT}; 13 15 14 16 typedef struct { /* representation of a variable (0-D) */ … … 18 20 19 21 typedef struct { /* representation of a vector (1-D) */ 20 char name[ 1024];22 char name[OPIHI_NAME_SIZE]; 21 23 char type; 22 float *elements; 23 unsigned int *elementsInt; 24 union { 25 void *Ptr; 26 opihi_flt *Flt; 27 opihi_int *Int; 28 } elements; 24 29 int Nelements; 25 30 } Vector; 26 31 27 32 typedef struct { /* representation of buffer (image) */ 28 char name[ 1024];29 char file[ 1024];33 char name[OPIHI_NAME_SIZE]; 34 char file[OPIHI_NAME_SIZE]; 30 35 Header header; 31 36 Matrix matrix; … … 37 42 char *name; 38 43 char type; 39 float *ptr;40 44 Buffer *buffer; 41 45 Vector *vector; 42 float Float; 46 opihi_flt FltValue; 47 opihi_int IntValue; 43 48 } StackVar; 44 49
Note:
See TracChangeset
for help on using the changeset viewer.
