[ofw] [PATCH] use compiler intrinsics instead of complib 1 of 5

Hefty, Sean sean.hefty at intel.com
Mon Jan 3 13:06:40 PST 2011


> Why is a call to Rtl* or Ndis* is superior to a compiler intrinsic?

For the same reason why NDIS code should use the Ndis* version of the calls, rather than the Rtl* version.

Rtl* and Ndis* are the Microsoft provided calls for performing these actions.  You'll have to ask MS why they defined these, but anyone who has experience with Windows kernel programming should know of these calls (and use them).  I believe that some of the calls are mapped directly to the same implementation, possibly as #define's.  However, I don't know that this is necessarily the case for the debug implementations of those calls.  You can also see the RtlSecure* calls to see if those are more appropriate.




More information about the ofw mailing list