You are correct. My mind was gone that late. It's the floating point/integer type of cast that often takes over a dozen cycles on a modern CPU.
On the subject of types, AMD's K8 PDF http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/25112.PDF says occasionally (but not always) array notation is better to compilers than pointer notation, and that "the preferred type for array indices is ptrdiff_t" (page 62). Never even heard of that. You learn something new every day. Then on page 65 they turn around and recommend unsigned int for array indexing. --- smf <[EMAIL PROTECTED]> wrote: > Unless you cast to a different size then casts shouldn't cost > at all, even > then depending on the code the cast may not make a > difference. __________________________________ Do you Yahoo!? Yahoo! Mail - 250MB free storage. Do more. Manage less. http://info.mail.yahoo.com/mail_250 _______________________________________________ Xmame mailing list [EMAIL PROTECTED] http://toybox.twisted.org.uk/mailman/listinfo/xmame
