I can't find a c like >> (sar). shr seems to be bitwise (which is great). Currently I do:
proc `sar` (a, b: Int): Int {.inline.} =
{.emit: """ return `a` >> `b`; """}
but is there a neater way ? (if you look at the generated c - its ugly - but who cares as long the compiler knows what I meant ;-)