comparison src/tmp/compare.c @ 86:e06e1a9e569e parallel_execution

create worker
author Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
date Mon, 18 Jan 2016 17:50:52 +0900
parents
children
comparison
equal deleted inserted replaced
83:c13575c3dbe9 86:e06e1a9e569e
1 #include "context.h"
2
3 void compare(struct Context* context, struct Tree* tree, int key1, int key2) {
4 if (key1 == key2) {
5 tree->result = EQ;
6 } else if (key1 < key2) {
7 tree->result = GT;
8 } else {
9 tree->result = LT;
10 }
11 }