[Spice-devel] C version of find_msb()

Bryan Stillwell bryan at bokeoa.com
Sat May 1 21:25:31 PDT 2010


Recently I tried building the Ubuntu SPICE packages on powerpc and found
that the spicec package fails on some x86 assembly code in
common/gl_utils.h.  This motivated me to create an optimized C version
of the find_msb() function, which I've attached.

This patch allows people to build the spice-client on any 32bit/64bit
architecture, but it doesn't solve the endianess problems in the SPICE
protocol itself.  Has anyone looked into the network byte-ordering
issues?

I can see thin-clients based on ARM processors being pretty popular in
future.  In fact, I bet someone could build one today for under $200
with a plugcomputer and a displaylink usb video card:

Guruplug ($99)
http://www.globalscaletechnologies.com/p-31-guruplug-server-standard.aspx

HP USB Graphics Adapter NL571AT ($59)
http://h10010.www1.hp.com/wwpc/us/en/sm/WF06c/A10-51210-332469-332462-332469-3913299-3913300-3913303.html


I haven't tried this combination, but I see xorg packages for the
displaylink card in Ubuntu, however, they don't seem to be built for ARM
yet:

http://packages.ubuntu.com/lucid/xserver-xorg-video-displaylink


Thanks,
Bryan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: find_msb-portable.patch
Type: text/x-diff
Size: 760 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20100501/bd895fe3/attachment.patch>


More information about the Spice-devel mailing list