binary wire protocol in memcached
    Alex Stapleton 
    alexs at advfn.com
       
    Tue Aug 28 11:56:34 UTC 2007
    
    
  
On 28 Aug 2007, at 04:39, Dustin Sallings wrote:
> 	My 64-bit ntohl kind of thing might not work on big endian  
> machines (I haven't tried it yet).  Moreover, I would hope  
> something like that would already exist somewhere, so I didn't  
> bother making it fast.
The x86 BSWAP instruction (which is what ntohl compiles to I believe)  
accepts 64-bit operands so you should be able to do it using a bit of  
inline assembly. 
    
    
More information about the memcached
mailing list