bdwgc icon indicating copy to clipboard operation
bdwgc copied to clipboard

Enable prefetch on MSVC

Open sschoener opened this issue 2 years ago • 2 comments

Enables support for prefetch intrinsics on MSVC.

sschoener avatar Dec 10 '22 21:12 sschoener

we have shipped without any of this for the longest time

@sschoener, would be good to have some benchmarking about the proposed change.

hence we should exclude ARM, i.e. wrap in !defined(_M_ARM) && !defined(_M_ARM64)

It would be better to write the conditions in the opposite way, e.g.: (_M_IX86 >= 300) || defined(_M_X64)

ivmai avatar Mar 26 '23 07:03 ivmai

Upstreamed with some minor modifications: https://github.com/ivmai/bdwgc/commit/703fde0aec3141540745711adef0538c79f69420

ivmai avatar Sep 18 '23 05:09 ivmai