PIPS
scalopes_private.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "genC.h"
#include "scalopes_private.h"
+ Include dependency graph for scalopes_private.c:

Go to the source code of this file.

Functions

entity_task_buffers copy_entity_task_buffers (entity_task_buffers p)
 ENTITY_TASK_BUFFERS. More...
 
void free_entity_task_buffers (entity_task_buffers p)
 
entity_task_buffers check_entity_task_buffers (entity_task_buffers p)
 
bool entity_task_buffers_consistent_p (entity_task_buffers p)
 
bool entity_task_buffers_defined_p (entity_task_buffers p)
 
list gen_entity_task_buffers_cons (entity_task_buffers p, list l)
 
void entity_task_buffers_assign_contents (entity_task_buffers r, entity_task_buffers v)
 
void entity_task_buffers_non_recursive_free (entity_task_buffers p)
 
void write_entity_task_buffers (FILE *f, entity_task_buffers p)
 
entity_task_buffers read_entity_task_buffers (FILE *f)
 
entity_task_buffers make_entity_task_buffers (void)
 
task_buffers apply_entity_task_buffers (entity_task_buffers f, entity k)
 
void update_entity_task_buffers (entity_task_buffers f, entity k, task_buffers v)
 
void extend_entity_task_buffers (entity_task_buffers f, entity k, task_buffers v)
 
task_buffers delete_entity_task_buffers (entity_task_buffers f, entity k)
 
bool bound_entity_task_buffers_p (entity_task_buffers f, entity k)
 
sesam_buffers_processing_context copy_sesam_buffers_processing_context (sesam_buffers_processing_context p)
 SESAM_BUFFERS_PROCESSING_CONTEXT. More...
 
void free_sesam_buffers_processing_context (sesam_buffers_processing_context p)
 
sesam_buffers_processing_context check_sesam_buffers_processing_context (sesam_buffers_processing_context p)
 
bool sesam_buffers_processing_context_consistent_p (sesam_buffers_processing_context p)
 
bool sesam_buffers_processing_context_defined_p (sesam_buffers_processing_context p)
 
list gen_sesam_buffers_processing_context_cons (sesam_buffers_processing_context p, list l)
 
void sesam_buffers_processing_context_assign_contents (sesam_buffers_processing_context r, sesam_buffers_processing_context v)
 
void sesam_buffers_processing_context_non_recursive_free (sesam_buffers_processing_context p)
 
void write_sesam_buffers_processing_context (FILE *f, sesam_buffers_processing_context p)
 
sesam_buffers_processing_context read_sesam_buffers_processing_context (FILE *f)
 
sesam_buffers_processing_context make_sesam_buffers_processing_context (set a1, set a2, entity_task_buffers a3, entity_task_buffers a4, set a5)
 
task_buffers copy_task_buffers (task_buffers p)
 TASK_BUFFERS. More...
 
void free_task_buffers (task_buffers p)
 
task_buffers check_task_buffers (task_buffers p)
 
bool task_buffers_consistent_p (task_buffers p)
 
bool task_buffers_defined_p (task_buffers p)
 
list gen_task_buffers_cons (task_buffers p, list l)
 
void task_buffers_assign_contents (task_buffers r, task_buffers v)
 
void task_buffers_non_recursive_free (task_buffers p)
 
void write_task_buffers (FILE *f, task_buffers p)
 
task_buffers read_task_buffers (FILE *f)
 
task_buffers make_task_buffers (set a1, set a2)
 

Function Documentation

◆ apply_entity_task_buffers()

task_buffers apply_entity_task_buffers ( entity_task_buffers  f,
entity  k 
)

Definition at line 55 of file scalopes_private.c.

55  {
57 }
#define HASH_GET(start, image, h, k)
Definition: newgen_map.h:30
int f(int off1, int off2, int n, float r[n], float a[n], float b[n])
Definition: offsets.c:15
#define entity_task_buffers_hash_table(x)
#define intptr_t
Definition: stdint.in.h:294

References entity_task_buffers_hash_table, f(), HASH_GET, and intptr_t.

Referenced by print_entity_task_buffers(), and sbp_context_add_kernel_task_buffer().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ bound_entity_task_buffers_p()

bool bound_entity_task_buffers_p ( entity_task_buffers  f,
entity  k 
)

Definition at line 67 of file scalopes_private.c.

67  {
69 }
#define HASH_BOUND_P(start, image, h, k)
Definition: newgen_map.h:32

References entity_task_buffers_hash_table, f(), HASH_BOUND_P, and intptr_t.

Referenced by sbp_context_add_kernel_task_buffer().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ check_entity_task_buffers()

entity_task_buffers check_entity_task_buffers ( entity_task_buffers  p)

Definition at line 22 of file scalopes_private.c.

22  {
24 }
gen_chunk * gen_check(gen_chunk *obj, int t)
GEN_CHECK checks that the gen_chunk received OBJ is of the appropriate TYPE.
Definition: genClib.c:2356
#define entity_task_buffers_domain
newgen_effect_domain_defined
A gen_chunk is used to store every object.
Definition: genC.h:58

References entity_task_buffers_domain, and gen_check().

Referenced by entity_task_buffers_assign_contents(), and entity_task_buffers_consistent_p().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ check_sesam_buffers_processing_context()

sesam_buffers_processing_context check_sesam_buffers_processing_context ( sesam_buffers_processing_context  p)

Definition at line 79 of file scalopes_private.c.

79  {
81 }
#define sesam_buffers_processing_context_domain
newgen_entity_task_buffers_domain_defined

References gen_check(), and sesam_buffers_processing_context_domain.

Referenced by sesam_buffers_processing_context_assign_contents(), and sesam_buffers_processing_context_consistent_p().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ check_task_buffers()

task_buffers check_task_buffers ( task_buffers  p)

Definition at line 121 of file scalopes_private.c.

121  {
123 }
#define task_buffers_domain
newgen_sesam_buffers_processing_context_domain_defined

References gen_check(), and task_buffers_domain.

Referenced by task_buffers_assign_contents(), and task_buffers_consistent_p().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ copy_entity_task_buffers()

entity_task_buffers copy_entity_task_buffers ( entity_task_buffers  p)

ENTITY_TASK_BUFFERS.

Definition at line 16 of file scalopes_private.c.

16  {
18 }
gen_chunk * gen_copy_tree(gen_chunk *obj)
Definition: genClib.c:1429

References gen_copy_tree().

+ Here is the call graph for this function:

◆ copy_sesam_buffers_processing_context()

sesam_buffers_processing_context copy_sesam_buffers_processing_context ( sesam_buffers_processing_context  p)

SESAM_BUFFERS_PROCESSING_CONTEXT.

Definition at line 73 of file scalopes_private.c.

73  {
75 }

References gen_copy_tree().

+ Here is the call graph for this function:

◆ copy_task_buffers()

task_buffers copy_task_buffers ( task_buffers  p)

TASK_BUFFERS.

Definition at line 115 of file scalopes_private.c.

115  {
116  return (task_buffers) gen_copy_tree((gen_chunk*) p);
117 }

References gen_copy_tree().

+ Here is the call graph for this function:

◆ delete_entity_task_buffers()

task_buffers delete_entity_task_buffers ( entity_task_buffers  f,
entity  k 
)

Definition at line 64 of file scalopes_private.c.

64  {
66 }
#define HASH_DELETE(start, image, h, k)
Definition: newgen_map.h:38

References entity_task_buffers_hash_table, f(), HASH_DELETE, and intptr_t.

+ Here is the call graph for this function:

◆ entity_task_buffers_assign_contents()

void entity_task_buffers_assign_contents ( entity_task_buffers  r,
entity_task_buffers  v 
)

Definition at line 35 of file scalopes_private.c.

35  {
38  message_assert("defined references to domain entity_task_buffers",
40  memcpy(r, v, sizeof(struct _newgen_struct_entity_task_buffers_));
41 }
bool entity_task_buffers_defined_p(entity_task_buffers p)
entity_task_buffers check_entity_task_buffers(entity_task_buffers p)
#define message_assert(msg, ex)
Definition: newgen_assert.h:47

References check_entity_task_buffers(), entity_task_buffers_defined_p(), and message_assert.

+ Here is the call graph for this function:

◆ entity_task_buffers_consistent_p()

bool entity_task_buffers_consistent_p ( entity_task_buffers  p)

Definition at line 25 of file scalopes_private.c.

25  {
27  return gen_consistent_p((gen_chunk*) p);
28 }
int gen_consistent_p(gen_chunk *obj)
GEN_CONSISTENT_P dynamically checks the type correctness of OBJ.
Definition: genClib.c:2398

References check_entity_task_buffers(), and gen_consistent_p().

+ Here is the call graph for this function:

◆ entity_task_buffers_defined_p()

bool entity_task_buffers_defined_p ( entity_task_buffers  p)

Definition at line 29 of file scalopes_private.c.

29  {
30  return gen_defined_p((gen_chunk*) p);
31 }
int gen_defined_p(gen_chunk *obj)
Definition: genClib.c:2438

References gen_defined_p().

Referenced by entity_task_buffers_assign_contents().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ entity_task_buffers_non_recursive_free()

void entity_task_buffers_non_recursive_free ( entity_task_buffers  p)

Definition at line 42 of file scalopes_private.c.

42  {
43  // should clear up contents...
44  free(p);
45 }
void free(void *)

References free().

+ Here is the call graph for this function:

◆ extend_entity_task_buffers()

void extend_entity_task_buffers ( entity_task_buffers  f,
entity  k,
task_buffers  v 
)

Definition at line 61 of file scalopes_private.c.

61  {
63 }
#define HASH_EXTEND(start, image, h, k, v)
Definition: newgen_map.h:36

References entity_task_buffers_hash_table, f(), HASH_EXTEND, and intptr_t.

Referenced by sbp_context_add_kernel_task_buffer().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ free_entity_task_buffers()

void free_entity_task_buffers ( entity_task_buffers  p)

Definition at line 19 of file scalopes_private.c.

19  {
20  gen_free((gen_chunk*) p);
21 }
void gen_free(gen_chunk *obj)
version without shared_pointers.
Definition: genClib.c:992

References gen_free().

+ Here is the call graph for this function:

◆ free_sesam_buffers_processing_context()

void free_sesam_buffers_processing_context ( sesam_buffers_processing_context  p)

Definition at line 76 of file scalopes_private.c.

76  {
77  gen_free((gen_chunk*) p);
78 }

References gen_free().

Referenced by sesam_buffers_processing().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ free_task_buffers()

void free_task_buffers ( task_buffers  p)

Definition at line 118 of file scalopes_private.c.

118  {
119  gen_free((gen_chunk*) p);
120 }

References gen_free().

+ Here is the call graph for this function:

◆ gen_entity_task_buffers_cons()

list gen_entity_task_buffers_cons ( entity_task_buffers  p,
list  l 
)

Definition at line 32 of file scalopes_private.c.

32  {
34 }
list gen_typed_cons(_int type, const void *item, const list next)
CONS a list with minimal type checking this cannot be done within the CONS macro because possible fun...
Definition: list.c:900
#define ENTITY_TASK_BUFFERS_NEWGEN_DOMAIN

References ENTITY_TASK_BUFFERS_NEWGEN_DOMAIN, and gen_typed_cons().

+ Here is the call graph for this function:

◆ gen_sesam_buffers_processing_context_cons()

list gen_sesam_buffers_processing_context_cons ( sesam_buffers_processing_context  p,
list  l 
)

Definition at line 89 of file scalopes_private.c.

89  {
91 }
#define SESAM_BUFFERS_PROCESSING_CONTEXT_NEWGEN_DOMAIN

References gen_typed_cons(), and SESAM_BUFFERS_PROCESSING_CONTEXT_NEWGEN_DOMAIN.

+ Here is the call graph for this function:

◆ gen_task_buffers_cons()

list gen_task_buffers_cons ( task_buffers  p,
list  l 
)

Definition at line 131 of file scalopes_private.c.

131  {
133 }
#define TASK_BUFFERS_NEWGEN_DOMAIN

References gen_typed_cons(), and TASK_BUFFERS_NEWGEN_DOMAIN.

+ Here is the call graph for this function:

◆ make_entity_task_buffers()

entity_task_buffers make_entity_task_buffers ( void  )

Definition at line 52 of file scalopes_private.c.

52  {
54 }
#define GEN_CHECK_ALLOC
Definition: genC.h:307
gen_chunk * gen_alloc(int size, int gen_check_p, int dom,...)
allocates something in newgen.
Definition: genClib.c:298

References entity_task_buffers_domain, gen_alloc(), and GEN_CHECK_ALLOC.

Referenced by sbp_context_init().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ make_sesam_buffers_processing_context()

sesam_buffers_processing_context make_sesam_buffers_processing_context ( set  a1,
set  a2,
entity_task_buffers  a3,
entity_task_buffers  a4,
set  a5 
)

Definition at line 109 of file scalopes_private.c.

109  {
111 }

References gen_alloc(), GEN_CHECK_ALLOC, and sesam_buffers_processing_context_domain.

Referenced by sbp_context_init().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ make_task_buffers()

task_buffers make_task_buffers ( set  a1,
set  a2 
)

Definition at line 151 of file scalopes_private.c.

151  {
153 }

References gen_alloc(), GEN_CHECK_ALLOC, and task_buffers_domain.

Referenced by sbp_context_add_kernel_task_buffer().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ read_entity_task_buffers()

entity_task_buffers read_entity_task_buffers ( FILE *  f)

Definition at line 49 of file scalopes_private.c.

49  {
50  return (entity_task_buffers) gen_read(f);
51 }
gen_chunk * gen_read(FILE *file)
GEN_READ reads any object from the FILE stream.
Definition: genClib.c:2323

References f(), and gen_read().

+ Here is the call graph for this function:

◆ read_sesam_buffers_processing_context()

sesam_buffers_processing_context read_sesam_buffers_processing_context ( FILE *  f)

Definition at line 106 of file scalopes_private.c.

106  {
108 }

References f(), and gen_read().

+ Here is the call graph for this function:

◆ read_task_buffers()

task_buffers read_task_buffers ( FILE *  f)

Definition at line 148 of file scalopes_private.c.

148  {
149  return (task_buffers) gen_read(f);
150 }

References f(), and gen_read().

+ Here is the call graph for this function:

◆ sesam_buffers_processing_context_assign_contents()

void sesam_buffers_processing_context_assign_contents ( sesam_buffers_processing_context  r,
sesam_buffers_processing_context  v 
)

Definition at line 92 of file scalopes_private.c.

92  {
95  message_assert("defined references to domain sesam_buffers_processing_context",
97  memcpy(r, v, sizeof(struct _newgen_struct_sesam_buffers_processing_context_));
98 }
sesam_buffers_processing_context check_sesam_buffers_processing_context(sesam_buffers_processing_context p)
bool sesam_buffers_processing_context_defined_p(sesam_buffers_processing_context p)

References check_sesam_buffers_processing_context(), message_assert, and sesam_buffers_processing_context_defined_p().

+ Here is the call graph for this function:

◆ sesam_buffers_processing_context_consistent_p()

bool sesam_buffers_processing_context_consistent_p ( sesam_buffers_processing_context  p)

Definition at line 82 of file scalopes_private.c.

82  {
84  return gen_consistent_p((gen_chunk*) p);
85 }

References check_sesam_buffers_processing_context(), and gen_consistent_p().

+ Here is the call graph for this function:

◆ sesam_buffers_processing_context_defined_p()

bool sesam_buffers_processing_context_defined_p ( sesam_buffers_processing_context  p)

Definition at line 86 of file scalopes_private.c.

86  {
87  return gen_defined_p((gen_chunk*) p);
88 }

References gen_defined_p().

Referenced by sesam_buffers_processing_context_assign_contents().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ sesam_buffers_processing_context_non_recursive_free()

void sesam_buffers_processing_context_non_recursive_free ( sesam_buffers_processing_context  p)

Definition at line 99 of file scalopes_private.c.

99  {
100  // should clear up contents...
101  free(p);
102 }

References free().

+ Here is the call graph for this function:

◆ task_buffers_assign_contents()

void task_buffers_assign_contents ( task_buffers  r,
task_buffers  v 
)

Definition at line 134 of file scalopes_private.c.

134  {
137  message_assert("defined references to domain task_buffers",
139  memcpy(r, v, sizeof(struct _newgen_struct_task_buffers_));
140 }
bool task_buffers_defined_p(task_buffers p)
task_buffers check_task_buffers(task_buffers p)

References check_task_buffers(), message_assert, and task_buffers_defined_p().

+ Here is the call graph for this function:

◆ task_buffers_consistent_p()

bool task_buffers_consistent_p ( task_buffers  p)

Definition at line 124 of file scalopes_private.c.

124  {
126  return gen_consistent_p((gen_chunk*) p);
127 }

References check_task_buffers(), and gen_consistent_p().

+ Here is the call graph for this function:

◆ task_buffers_defined_p()

bool task_buffers_defined_p ( task_buffers  p)

Definition at line 128 of file scalopes_private.c.

128  {
129  return gen_defined_p((gen_chunk*) p);
130 }

References gen_defined_p().

Referenced by task_buffers_assign_contents().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ task_buffers_non_recursive_free()

void task_buffers_non_recursive_free ( task_buffers  p)

Definition at line 141 of file scalopes_private.c.

141  {
142  // should clear up contents...
143  free(p);
144 }

References free().

+ Here is the call graph for this function:

◆ update_entity_task_buffers()

void update_entity_task_buffers ( entity_task_buffers  f,
entity  k,
task_buffers  v 
)

Definition at line 58 of file scalopes_private.c.

58  {
60 }
#define HASH_UPDATE(start, image, h, k, v)
Definition: newgen_map.h:34

References entity_task_buffers_hash_table, f(), HASH_UPDATE, and intptr_t.

+ Here is the call graph for this function:

◆ write_entity_task_buffers()

void write_entity_task_buffers ( FILE *  f,
entity_task_buffers  p 
)

Definition at line 46 of file scalopes_private.c.

46  {
47  gen_write(f, (gen_chunk*) p);
48 }
void gen_write(FILE *fd, gen_chunk *obj)
GEN_WRITE writes the OBJect on the stream FD.
Definition: genClib.c:1745

References f(), and gen_write().

+ Here is the call graph for this function:

◆ write_sesam_buffers_processing_context()

void write_sesam_buffers_processing_context ( FILE *  f,
sesam_buffers_processing_context  p 
)

Definition at line 103 of file scalopes_private.c.

103  {
104  gen_write(f, (gen_chunk*) p);
105 }

References f(), and gen_write().

+ Here is the call graph for this function:

◆ write_task_buffers()

void write_task_buffers ( FILE *  f,
task_buffers  p 
)

Definition at line 145 of file scalopes_private.c.

145  {
146  gen_write(f, (gen_chunk*) p);
147 }

References f(), and gen_write().

+ Here is the call graph for this function: