Re: [PATCH 1/2] Add C99-style constructor macros for specific-sized integers

From
H. Peter Anvin <hidden>
Date
2008-03-03 06:22:51
Also in
lkml
Reply to
Al Viro, 2008-03-03
Al Viro wrote:
On Sun, Mar 02, 2008 at 08:43:22PM -0800, H. Peter Anvin wrote:
quoted
quoted
quoted
+#define S64_C(x) x ## LL
+#define U64_C(x) x ## ULL
but can't we use the latter for all arches?
You really don't want to, as the whole point is that you want it to match what u64/s64 is defined as, in order to avoid spurious warnings.
Excuse me, in which contexts?  Where does replacement of explicitly long
constant with explicitly long long one generate warnings on a host that has
range(long) equal to range(long long)?
printf, for example.

	-hpa
--
To unsubscribe from this list: send the line "unsubscribe linux-arch" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Thread (18 messages) 18 messages, 8 authors, last reply 2008-03-03
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help