~ubuntu-branches/ubuntu/wily/eso-midas/wily-proposed

« back to all changes in this revision

Viewing changes to incl/ldbext.h

  • Committer: Package Import Robot
  • Author(s): Ole Streicher
  • Date: 2014-04-22 14:44:58 UTC
  • Revision ID: package-import@ubuntu.com-20140422144458-okiwi1assxkkiz39
Tags: upstream-13.09pl1.2+dfsg
ImportĀ upstreamĀ versionĀ 13.09pl1.2+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ----------------------- LDBEXT ------------------------- 
 
2
 
 
3
               definition of local descriptor block
 
4
 
 
5
.VERSION
 
6
 090318         last modif
 
7
-----------------------------------------------------------  */
 
8
 
 
9
/*        size in bytes of different data types */
 
10
 
 
11
#ifndef SIZE_II
 
12
#define SIZE_II
 
13
 
 
14
#define II_SIZE  (int) sizeof(int)
 
15
#define JJ_SIZE  (int) sizeof(short int)
 
16
#define RR_SIZE  (int) sizeof(float)
 
17
#define DD_SIZE  (int) sizeof(double)
 
18
#define SS_SIZE  (int) sizeof(size_t)
 
19
 
 
20
#endif    /* SIZE_II */
 
21
 
 
22
 
 
23
#define LDB_SIZE 2048                   /* current size of a LDB in bytes */
 
24
#define LDB_DATA (LDB_SIZE-(2*II_SIZE)) /* data bytes per LDB */
 
25
 
 
26
#define LDB_NDSCRW (LDB_DATA/II_SIZE)
 
27
#define LDB_NDSCRW1 (LDB_NDSCRW-1)
 
28
 
 
29
 
 
30
struct  LDB_STRUCT
 
31
        {
 
32
        int     BLKNUM;
 
33
        union
 
34
                {
 
35
                int      IWORD[LDB_NDSCRW];
 
36
                float    RWORD[LDB_NDSCRW];
 
37
                char     CWORD[LDB_DATA];
 
38
                }       LDBWORDS;
 
39
 
 
40
        int     NEXT;
 
41
        };
 
42
 
 
43
 
 
44
/*
 
45
 
 
46
     NDSCRW  ...  Number of descriptor 4-byte words in block.
 
47
     NDSCRW1 ...  Last index in LDB (remember that we start from 0 ...)
 
48
     NDSCRB  ...  Number of descriptor bytes (characters) in block.
 
49
     BLKNUM  ...  Block Number of this LDB.
 
50
     IWORD   ...  I-Descriptors. (addressed as 4-byte words)
 
51
     RWORD   ...  R-Descriptors. (addressed as 4-byte words)
 
52
     CWORD   ...  C-Descriptors. (addressed as characters)
 
53
     NEXT    ...  Next Local Descriptor Block.
 
54
 
 
55
 
 
56
  K. Banse   880323, 930907, 990304
 
57
 
 
58
*/