Is there a solution for $x$ in
$$(x + (a<<s)-(b<<s))>>s = v$$
for $a,b,s,v$ positive integers? If not exact, is there an approximate solution?
I tried
$$(x+(a<<s)-(b<<s)) \approx v/s\implies x = v/s +(b<<s)-(a<<s)$$
but it won't work with numbers when I try.
$$v2^s \le x+(a<<s)-(b<<s) < (v+1)2^s$$
– peterwhy Jun 30 '22 at 20:20