>>> On 29.03.18 at 12:05, <o...@aepfle.de> wrote: > On Thu, Mar 29, Jan Beulich wrote: > >> Actually I was wrong - we have an abstraction already, just that >> it's upper case: ABS(). But it requires its input to have signed type. > > Would this be acceptable? > khz_diff = ABS((long)cpu_khz - (long)gtsc_khz);
In the worst case, yes. I'd prefer if you got away with just a single cast though. Jan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel