<div dir="ltr"><div>Hi Everyone</div><div><br></div><div>Here's a few test cases I wrote to test the fixes for the clz and ctz functions I wrote for MSVC previously that have been already committed.</div><div><br></div>
<div>They contain some suggested changes from Marshall and I have tested they compile with clang++/g++ and cl.exe against libcxx.</div><div>If the tests fail, they call assert and give some details about the failure point/reason. If they pass, they produce no output.</div>
<div><br></div><div>The test cases basically just set some bit values in various types and check the leading and trailing zero count is as expected.</div><div><br></div><div>For the test  cases to compile with cl.exe, the type_traits patch for libcxx and MSVC that I previously submitted needs to be applied.</div>
<div><br></div><div>Thanks.</div></div>