DESCRIPTION

[ctf] Simplify the logic of the unsigned long comparator.

To understand this modification, let assume the "char 8-bits" domain.

unsigned [0 .. 255]
signed [-128 .. 127]

By receiving the parameters encoded in a signed number, the method receives

left:  [0..127,-128..-1]  (which represents [0..127,128..255])
right: [0..127,-128..-1]  (which represents [0..127,128..255])

By definition (on an unconstraind domaine), this holds

 left < right  <==>  left + k < right + k

Thus, the idea is to rotate the domaine by k to allow a signed operator to be able to compare to full domaine.
In this case k must be -128.

left and right range become [-128..-1,0..127], and are now comparable with signed operator.

Change-Id: I92b27ab00e8f14102a04e085ef807e211e39a7f0
Signed-off-by: Jordon Obrien xxx@xxx.xxx


COMMENTS

author: Brenden Conley
date: 2013-11-24 05:38:01.000000000

Patch Set 1:

Build Started https://hudson.eclipse.org/linuxtools/job/linuxtools-gerrit/4113/

-------------------------------------
author: Brenden Conley
date: 2013-11-24 05:46:56.000000000

Patch Set 1: Verified-1

Build Failed 

https://hudson.eclipse.org/linuxtools/job/linuxtools-gerrit/4113/ : FAILURE

-------------------------------------
