| Title | Intrinsic functions not used on Windows |
| Status | open |
| Priority | nice |
| Assigned user | Gareth Rees |
| Organization | Ravenbrook |
| Description | config.h contains the code: #if defined(MPS_PF_W3I3MV) /* MSVC on Intel inlines mem* when optimizing */ #define mps_lib_memset(p, c, l) memset(p, c, l) #define mps_lib_memcpy(p, q, s) memcpy(p, q, s) #define mps_lib_memcmp(p, q, s) memcmp(p, q, s) This has two problems: 1. It's only for w3i3mv: what about w3i6mv? 2. Does Visual C really inline the mem* functions? The documentation [1] suggests that you need to specify the /Oi option to the compiler. |
| Analysis | None. |
| How found | inspection |
| Evidence | [1] http://msdn.microsoft.com/en-us/library/f99tchzc.aspx |
| Created by | Gareth Rees |
| Created on | 2014-10-20 22:35:09 |
| Last modified by | Gareth Rees |
| Last modified on | 2014-10-20 22:35:09 |
| History | 2014-10-20 GDR Created. |