Searched refs:inplace_sz (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
21 *other = (int*)malloc(sizeof(int) * *inplace_sz);
23 for (i = 0; i < *inplace_sz; i++) {
28 for (i = 1; i < *inplace_sz; i++) {
32 *inplace_sz = 1;
/seL4-camkes-master/projects/camkes/apps/multiplier/components/Client/src/
H A Dclient.c19 size_t inplace_sz = 2; local
22 inplace = (int*)malloc(sizeof(int) * inplace_sz);
36 for (int i = 0; i < inplace_sz; i++) {
38 if (i != inplace_sz - 1) {
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 27 milliseconds