Searched refs:inplace (Results 1 - 2 of 2) sorted by relevance

/seL4-camkes-master/projects/camkes/apps/multiplier/components/Multiplier/src/
H A Dmain.c13 int a_calculate(size_t operands_sz, const int *operands, size_t *other_sz, int **other, size_t *inplace_sz, int **inplace) { argument
24 printf("%s: stashing %d\n", name, (*inplace)[i]);
25 (*other)[i] = (*inplace)[i];
29 printf("%s: multiplying %d\n", name, (*inplace)[i]);
30 (*inplace)[0] *= (*inplace)[i];
/seL4-camkes-master/projects/camkes/apps/multiplier/components/Client/src/
H A Dclient.c15 int *inplace; local
22 inplace = (int*)malloc(sizeof(int) * inplace_sz);
23 assert(inplace != NULL);
24 inplace[0] = 7;
25 inplace[1] = 8;
37 printf("%d ", inplace[i]);
44 int answer = a_calculate(operands_sz, operands, &other_sz, &other, &inplace_sz, &inplace);
47 printf("%s: second result was %d (len that should have been 1 was %d)\n", name, inplace[0], inplace_sz);

Completed in 50 milliseconds