/usr/lib/petscdir/3.1/include/adic/run-map.h is in libpetsc3.1-dev 3.1.dfsg-11ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | #if !defined(RUN_MAP_H)
#define RUN_MAP_H
#if defined(__cplusplus)
extern "C" {
#endif
static int desc_size = 0;
static int entry_size = 0;
static int bucket_size = 0;
static int entries_per_bucket = 0;
static int buckets_per_block = 0;
static int map_size = 0;
# define DEFAULT_MAP_SIZE 1000
# define DEFAULT_BUCKET_SIZE 10
# define DEFAULT_BUCKETS_PER_BLOCK 100
typedef struct {
void* key;
double val[1];
} Pair;
typedef struct {
Pair* cache;
Pair* next;
} MapEntry;
static MapEntry* map_def = 0;
typedef struct genlist {
struct genlist *next;
double data[1];
} genlist_t;
static genlist_t* freeList;
static genlist_t* blockList;
static genlist_t* curBlock;
typedef struct {
int isSingle;
double* base;
double* top;
void* desc;
} ArrayEntry;
void* ad_map_init(int dsize, int msize, int bsize, int asize);
void ad_map_cleanup();
void* ad_map_reg_array_d(double* base, int size);
void* ad_map_reg_array_s(float* base, int size);
void* ad_map_get(void* key);
static void* ad_map_alloc_bucket(void);
void* ad_map_free_bucket(void* ptr);
void* ad_map_free(void* key);
#if defined(__cplusplus)
}
#endif
#endif /*RUN_MAP_H*/
|