> > Such assumptions broke where "sizeof (int) == sizeof (short)", and > > more recently where the codegen models preserve another classic > > BSD-ism, "sizeof (long) == sizeof (int)" ... I think some current 64bit > > systems use "sizeof (long long) == sizeof (void *)". > > ia64 Linux still has sizeof(long) == sizeof(void *)
There's a "_MIPS_SZLONG" option for MIPS64 which accomodates the "long" vs "long long" choice. Presumably that's still in use or it wouldn't be there. And in any case, the last I looked at ANSI-C it didn't guarantee that longs and pointers had such relationships. I recall using some SPARC v9 codegen models with 32bit long and 64bit pointer, but maybe those aren't so common any more. (They were mostly for compatibility, and there were lots of arguments about which model was to be preferred.) But think GCC doesn't support that, or even quad integers (128 bits). And now back to our regularly scheduled flamage about device refcounting. :) - Dave _______________________________________________________________ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel