Re: [PATCH] Add definitions of USHRT_MAX

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Zhang, Yanmin <yanmin_zhang@...>
Cc: LKML <linux-kernel@...>, Christoph Lameter <clameter@...>, <linux-mm@...>, Andrew Morton <akpm@...>
Date: Thursday, March 20, 2008 - 9:51 pm

On Fri, 2008-03-21 at 09:40 +0800, Zhang, Yanmin wrote:

Perhaps it's better to use the most common kernel types?
Perhaps U16_MAX, S16_MAX and S16_MIN?

Don't you need to cast SHRT_MIN/S16_MIN too?
#define S16_MIN ((s16)(-SHRT_MAX - 1))

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

Messages in current thread:
[PATCH] Add definitions of USHRT_MAX, Zhang, Yanmin, (Thu Mar 20, 9:40 pm)
Re: [PATCH] Add definitions of USHRT_MAX, Joe Perches, (Thu Mar 20, 9:51 pm)
Re: [PATCH] Add definitions of USHRT_MAX, Jan Engelhardt, (Thu Mar 20, 10:12 pm)
Re: [PATCH] Add definitions of USHRT_MAX, Zhang, Yanmin, (Thu Mar 20, 10:08 pm)