[0/2] adapt prefetch functions for MSVC

Message ID 1710969509-20627-1-git-send-email-roretzla@linux.microsoft.com (mailing list archive)
Headers
Series adapt prefetch functions for MSVC |

Message

Tyler Retzlaff March 20, 2024, 9:18 p.m. UTC
  MSVC does not have intrinsics that allow prefetch specifying
read/write so adjust conditional compilation to allow MSVC to
use the non access type inline functions from rte_prefetch.h

While here fix issues with C++ build (which only appears on
MSVC because it uses intrinsics and not inline assembly)

Tyler Retzlaff (2):
  eal: provide prefetch functions for MSVC
  eal: adjust intrinsic type casts for CXX

 lib/eal/include/generic/rte_prefetch.h | 12 ++++++++++++
 lib/eal/x86/include/rte_prefetch.h     | 10 +++++-----
 2 files changed, 17 insertions(+), 5 deletions(-)