login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
July
»
31
Re: [PATCH -mm] Introduce U16_MAX and U32_MAX
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Jan Engelhardt <jengelh@...>
To: Andrew Morton <akpm@...>
Cc: Satyam Sharma <satyam@...>, Linux Kernel Mailing List <linux-kernel@...>
Subject:
Re: [PATCH -mm] Introduce U16_MAX and U32_MAX
Date: Tuesday, July 31, 2007 - 3:11 pm
On Jul 31 2007 11:57, Andrew Morton wrote:
quoted text
>> --- a/include/linux/kernel.h >> +++ b/include/linux/kernel.h >> @@ -30,6 +30,9 @@ extern const char linux_proc_banner[]; >> #define LLONG_MIN (-LLONG_MAX - 1) >> #define ULLONG_MAX (~0ULL) >> >> +#define U16_MAX ((u16) ~0U) >> +#define U32_MAX ((u32) ~0U) >> + > >hm, I'd have thought that there's a risk of gcc warnings here, forcing >0xffffffff into a u16, but apparently not.
No, since it is casted (= explicitly truncated). Jan -- -
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 -mm] Introduce U16_MAX and U32_MAX
, Satyam Sharma
, (Tue Jul 31, 12:26 pm)
Re: [PATCH -mm] Introduce U16_MAX and U32_MAX
, Andrew Morton
, (Tue Jul 31, 2:57 pm)
Re: [PATCH -mm] Introduce U16_MAX and U32_MAX
, Jan Engelhardt
, (Tue Jul 31, 3:11 pm)
Re: [PATCH -mm] Introduce U16_MAX and U32_MAX
, Satyam Sharma
, (Tue Jul 31, 3:24 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Chuck Ebbert
Why do so many machines need "noapic"?
Greg Kroah-Hartman
[PATCH 004/196] Chinese: add translation of SubmittingPatches
Bart Van Assche
Integration of SCST in the mainstream Linux kernel
Jeremy Allison
Re: [RFC] Heads up on sys_fallocate()
openbsd-misc
:
git
:
linux-netdev
:
Corey Minyard
[PATCH 3/3] Convert the UDP hash lock to RCU
David Miller
[GIT]: Networking
Denys Fedoryshchenko
packetloss, on e1000e worse than r8169?
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Colocation donated by:
Who's online
There are currently
0 users
and
793 guests
online.
Syndicate