<feed xmlns='http://www.w3.org/2005/Atom'>
<title>slang.git/tests/hlsl-intrinsic/firstbitlow.slang, branch master</title>
<subtitle>Making it easier to work with shaders</subtitle>
<id>https://git.yummers.dev/slang.git/atom?h=master</id>
<link rel='self' href='https://git.yummers.dev/slang.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/'/>
<updated>2025-07-29T05:35:14+00:00</updated>
<entry>
<title>Fix CUDA backend missing U32_firstbitlow implementation (#7921)</title>
<updated>2025-07-29T05:35:14+00:00</updated>
<author>
<name>Copilot</name>
<email>198982749+Copilot@users.noreply.github.com</email>
</author>
<published>2025-07-29T05:35:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=e8797496bf7caeb08b5334d13d0d5aa039106210'/>
<id>urn:sha1:e8797496bf7caeb08b5334d13d0d5aa039106210</id>
<content type='text'>
* Initial plan

* Add U32_firstbitlow implementation for CUDA and CPP backends

Co-authored-by: bmillsNV &lt;163073245+bmillsNV@users.noreply.github.com&gt;

* Add I32_firstbitlow and comprehensive testing for signed/unsigned firstbitlow

Co-authored-by: bmillsNV &lt;163073245+bmillsNV@users.noreply.github.com&gt;

* Convert firstbitlow test to use inline filecheck syntax

Co-authored-by: ArielG-NV &lt;159081215+ArielG-NV@users.noreply.github.com&gt;

* Add U32_firstbithigh and I32_firstbithigh implementations for CUDA and CPP backends

Co-authored-by: csyonghe &lt;2652293+csyonghe@users.noreply.github.com&gt;

* Update prelude/slang-cpp-scalar-intrinsics.h

* Update prelude/slang-cpp-scalar-intrinsics.h

* Update prelude/slang-cpp-scalar-intrinsics.h

* Refactor Metal bit intrinsics to handle zero case correctly

Co-authored-by: ArielG-NV &lt;159081215+ArielG-NV@users.noreply.github.com&gt;

* Update slang-cuda-prelude.h

remove fake links

* Update hlsl.meta.slang

* if -1, return -1 due to implicit hlsl rule

* -1 or 0 is ~0u as per hlsl implictly

* 0 or -1 as per hlsl

* fix the math to map to hlsl

* fix compile error

* forgot `31 - clz`

* format code (#7943)

Co-authored-by: slangbot &lt;186143334+slangbot@users.noreply.github.com&gt;

* Update source/slang/hlsl.meta.slang

* Update source/slang/hlsl.meta.slang

* Update source/slang/hlsl.meta.slang

* Update source/slang/hlsl.meta.slang

---------

Co-authored-by: copilot-swe-agent[bot] &lt;198982749+Copilot@users.noreply.github.com&gt;
Co-authored-by: bmillsNV &lt;163073245+bmillsNV@users.noreply.github.com&gt;
Co-authored-by: ArielG-NV &lt;159081215+ArielG-NV@users.noreply.github.com&gt;
Co-authored-by: csyonghe &lt;2652293+csyonghe@users.noreply.github.com&gt;
Co-authored-by: ArielG-NV &lt;aglasroth@nvidia.com&gt;
Co-authored-by: slangbot &lt;ellieh+slangbot@nvidia.com&gt;
Co-authored-by: slangbot &lt;186143334+slangbot@users.noreply.github.com&gt;</content>
</entry>
</feed>
