Mercurial > hg > GearsTemplate
comparison src/parallel_execution/compare.c @ 590:9146d6017f18 default tip
hg mv parallel_execution/* ..
author | anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 16 Jan 2020 15:12:06 +0900 |
parents | a4cab67624f7 |
children |
comparison
equal
deleted
inserted
replaced
589:a4cab67624f7 | 590:9146d6017f18 |
---|---|
1 #include "context.h" | |
2 | |
3 enum Relational compare(struct Node* node1, struct Node* node2) { | |
4 int key1 = node1->key; | |
5 int key2 = node2->key; | |
6 if (key1 == key2) { | |
7 return EQ; | |
8 } else if (key1 < key2) { | |
9 return GT; | |
10 } else { | |
11 return LT; | |
12 } | |
13 } |