Arithmetic shifting

Created: 2020-07-17T21:29:53.107642

Return to the Index

Nim cannot arithmetic shift; you must manually fake it or emit out to C.

In C this works by right shifting a signed value by an unsigned value. But this is technically implementation defined.

Arithmetic shifting in C