Solution by maromex.
As xy can take any real value, this is equivalent to
f(2x)=2f(x)
for any real x.
Let g:[1,2)∪(−2,1]→R be any function, let L(x)=2⌊log2(∣x∣)⌋ for all nonzero real x, and let
f(x)={0L(x)g(L(x)x)x=0x=0..
We claim that this form characterizes all f that work.
First, f is of this form because f(2⋅0)=2f(0)⟹f(0)=0, and we can show that f(x)=L(x)f(L(x)x) for all nonzero real x by induction on the integer log2(L(x)). The base case log2(L(x))=0 is trivial, and the induction step can be easily checked with f(2x)=2f(x). Note that L(x)x∈[1,2)∪(−2,1] for all nonzereo real x.
Now we show that all f of this form work. The case x=0 is clear. For nonzero x, note that L(2x)=2L(x) and L(x)x=L(2x)2x, so L(2x)g(L(2x)2x)=f(2x)=2f(x)=L(x)g(L(x)x).