Mercurial > hg > GearsTemplate
view 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 |
line wrap: on
line source
#include "context.h" void compare(struct Context* context, struct Tree* tree, int key1, int key2) { if (key1 == key2) { tree->result = EQ; } else if (key1 < key2) { tree->result = GT; } else { tree->result = LT; } }