view src/parallel_execution/compare.c @ 118:32773f506410

remove code stack, add continuation of rotateL/totateR
author ikkun
date Mon, 26 Sep 2016 19:54:24 +0900
parents 1e074c3878c7
children a4507906938c
line wrap: on
line source

#include "context.h"

void compare(struct Context* context, struct Traverse* traverse, int key1, int key2) {
    if (key1 == key2) {
        traverse->result = EQ;
    } else if (key1 < key2) {
        traverse->result = GT;
    } else {
        traverse->result = LT;
    }
}