Jan Engelhardt <[email protected]> wrote: > Ouch ouch ouch. It should better be > > typedef uint32_t __u32; Actually, if you want to guarantee the size of an integer variable with gcc, you can do, for example, this: typedef int __attribute__((mode(SI))) siint; which creates a 32-bit signed integer type called "siint". The "mode" attribute is parameterised with one of the following values to indicate the specific size of integer required: QI 8-bit HI 16-bit SI 32-bit DI 64-bit TI 128-bit David - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- References:
- Re: [PATCH 1/4] LOG2: Implement a general integer log2 facility in the kernel [try #4]
- From: Jan Engelhardt <[email protected]>
- Re: [PATCH 1/4] LOG2: Implement a general integer log2 facility in the kernel [try #4]
- From: Jan Engelhardt <[email protected]>
- [PATCH 1/4] LOG2: Implement a general integer log2 facility in the kernel [try #4]
- From: David Howells <[email protected]>
- Re: [PATCH 1/4] LOG2: Implement a general integer log2 facility in the kernel [try #4]
- From: Jan Engelhardt <[email protected]>
- Re: [PATCH 1/4] LOG2: Implement a general integer log2 facility in the kernel [try #4]
- From: Matthew Wilcox <[email protected]>
- Re: [PATCH 1/4] LOG2: Implement a general integer log2 facility in the kernel [try #4]
- From: David Howells <[email protected]>
- Re: [PATCH 1/4] LOG2: Implement a general integer log2 facility in the kernel [try #4]
- From: Jan Engelhardt <[email protected]>
- Re: [PATCH 1/4] LOG2: Implement a general integer log2 facility in the kernel [try #4]
- From: Kyle Moffett <[email protected]>
- Re: [PATCH 1/4] LOG2: Implement a general integer log2 facility in the kernel [try #4]
- Prev by Date: [PATCH] ixgb: Delete IXGB_DBG() macro and call pr_debug() directly.
- Next by Date: Re: 2.6.19-rc1-mm1
- Previous by thread: Re: [PATCH 1/4] LOG2: Implement a general integer log2 facility in the kernel [try #4]
- Next by thread: Re: [PATCH 1/4] LOG2: Implement a general integer log2 facility in the kernel [try #4]
- Index(es):