Re: [RFC-PATCH] lib: add byteorder helpers for the aligned case

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Harvey Harrison <harvey.harrison@...>
Cc: Bryan Wu <cooloney@...>, Jie Zhang <jie.zhang@...>, Oliver Neukum <oliver@...>, <david-b@...>, <greg@...>, <linux-usb@...>, <linux-kernel@...>, Andrew Morton <akpm@...>
Date: Friday, May 16, 2008 - 8:35 pm

On Fri, 16 May 2008, Harvey Harrison wrote:


This is great -- thanks!  I've wanted this sort of thing for a long
time.  There's a good chance that the SCSI core could make use of
it.  Try looking at the prep functions in sd.c and sr.c.


Is this able to do the byte rearrangement at compile time if val is a 
compile-time constant?  I imagine it would.

Alan Stern

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] usb: file-storage.c use unaligned access helpers, Harvey Harrison, (Thu May 15, 8:33 pm)
[RFC-PATCH] lib: add byteorder helpers for the aligned case, Harvey Harrison, (Fri May 16, 2:09 pm)
Re: [RFC-PATCH] lib: add byteorder helpers for the aligned c..., Alan Stern, (Fri May 16, 8:35 pm)