login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
May
»
17
Re: [RFC-PATCH] lib: add byteorder helpers for the aligned case
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Harvey Harrison <harvey.harrison@...>
To: Alan Stern <stern@...>
Cc: Bryan Wu <cooloney@...>, Jie Zhang <jie.zhang@...>, Oliver Neukum <oliver@...>, <david-b@...>, <greg@...>, <linux-usb@...>, <linux-kernel@...>, Andrew Morton <akpm@...>
Subject:
Re: [RFC-PATCH] lib: add byteorder helpers for the aligned case
Date: Friday, May 16, 2008 - 8:37 pm
On Fri, 2008-05-16 at 20:35 -0400, Alan Stern wrote:
quoted text
> On Fri, 16 May 2008, Harvey Harrison wrote: > > > +static inline void put_le16(u16 val, void *ptr) > > +{ > > + *(__le16 *)ptr = cpu_to_le16(val); > > +} > > Is this able to do the byte rearrangement at compile time if val is a > compile-time constant? I imagine it would. >
Yes, the cpu_to_le/be functions to get optimized if they are passed a compile time constant. Harvey --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[PATCH 1/1] [usb/host]: use get/put_unaligned_* helpers to f...
, Bryan Wu
, (Thu May 15, 2:19 am)
Re: [PATCH 1/1] [usb/host]: use get/put_unaligned_* helpers ...
, Andrew Morton
, (Thu May 15, 8:05 pm)
Re: [PATCH 1/1] [usb/host]: use get/put_unaligned_* helpers ...
, Harvey Harrison
, (Thu May 15, 11:37 am)
Re: [PATCH 1/1] [usb/host]: use get/put_unaligned_* helpers ...
, Oliver Neukum
, (Thu May 15, 3:40 am)
Re: [PATCH 1/1] [usb/host]: use get/put_unaligned_* helpers ...
, Jie Zhang
, (Thu May 15, 4:03 am)
Re: [PATCH 1/1] [usb/host]: use get/put_unaligned_* helpers ...
, Oliver Neukum
, (Thu May 15, 4:36 am)
Re: [PATCH 1/1] [usb/host]: use get/put_unaligned_* helpers ...
, Jie Zhang
, (Thu May 15, 5:15 am)
Re: [PATCH 1/1] [usb/host]: use get/put_unaligned_* helpers ...
, Bryan Wu
, (Thu May 15, 5:54 am)
Re: [PATCH 1/1] [usb/host]: use get/put_unaligned_* helpers ...
, Alan Stern
, (Thu May 15, 10:28 am)
[PATCH] usb: file-storage.c use unaligned access helpers
, Harvey Harrison
, (Thu May 15, 8:33 pm)
Re: [PATCH] usb: file-storage.c use unaligned access helpers
, Alan Stern
, (Fri May 16, 10:32 am)
[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)
Re: [RFC-PATCH] lib: add byteorder helpers for the aligned c...
, Harvey Harrison
, (Fri May 16, 8:37 pm)
Re: [PATCH 1/1] [usb/host]: use get/put_unaligned_* helpers ...
, Oliver Neukum
, (Thu May 15, 8:19 am)
Re: [PATCH 1/1] [usb/host]: use get/put_unaligned_* helpers ...
, David Brownell
, (Thu May 15, 9:03 am)
Re: [PATCH 1/1] [usb/host]: use get/put_unaligned_* helpers ...
, Oliver Neukum
, (Thu May 15, 9:27 am)
Re: [PATCH 1/1] [usb/host]: use get/put_unaligned_* helpers ...
, Bryan Wu
, (Thu May 15, 4:09 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
David Miller
Re: Slow DOWN, please!!!
Greg Kroah-Hartman
[PATCH 013/196] Documentation: Replace obsolete "driverfs" with "sysfs".
James Bottomley
Re: Integration of SCST in the mainstream Linux kernel
Jeff Garzik
Re: [RFC] Heads up on sys_fallocate()
git
:
linux-netdev
:
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Linus Torvalds
Re: [GIT]: Networking
Andrew Morton
Re: [BUG] New Kernel Bugs
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
0 users
and
400 guests
online.
Syndicate