On 2/9/2011 7:29 PM, Samuel Adam wrote: > In pseudo-C: > > int32_t x, y; > int64_t xk; /* k lives in the low bits of xk */ > > if (x< 0 || y< 0) ; /* Return an error. */ > > xk = (int64_t)x<<32 | x^y; > /* Weird integer concatenation; yes, precedence is right. */
It seems (1, 2) and (2, 1) would result in distinct xk values, thus defeating the point of the exercise. It is again possible to insert two pairs that differ only in order. -- Igor Tandetnik _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users