<feed xmlns='http://www.w3.org/2005/Atom'>
<title>slang.git/prelude/slang-cpp-scalar-intrinsics.h, 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-08-12T18:19:15+00:00</updated>
<entry>
<title>Enable CUDA testing for batch 2 (#8147)</title>
<updated>2025-08-12T18:19:15+00:00</updated>
<author>
<name>jarcherNV</name>
<email>jarcher@nvidia.com</email>
</author>
<published>2025-08-12T18:19:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=3618f7a4c35de32405e6ebe458bae835869e2876'/>
<id>urn:sha1:3618f7a4c35de32405e6ebe458bae835869e2876</id>
<content type='text'>
Enable CUDA for the tests listed in issue #8078
This requires a minor CUDA prelude change, adding some math functions.</content>
</entry>
<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>
<entry>
<title>Add countbits 16-bit and 8-bit support (#6433) (#6897)</title>
<updated>2025-05-05T22:30:33+00:00</updated>
<author>
<name>sricker-nvidia</name>
<email>115114531+sricker-nvidia@users.noreply.github.com</email>
</author>
<published>2025-05-05T22:30:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=50d9781b7387b0f7f56d19c72afcf390cca72b72'/>
<id>urn:sha1:50d9781b7387b0f7f56d19c72afcf390cca72b72</id>
<content type='text'>
Change adds 16-bit and 8-bit support for countbits intrinsic. In
cases where a backend's native counbits lacks support, support
is emulated.

New tests are added for 16-bit and 8-bit support. Additional testing
added for 32-bit and minor updates made to 64-bit countbits.</content>
</entry>
<entry>
<title>Implement 64bit countbits intrinsic (#6433) (#6845)</title>
<updated>2025-04-19T11:33:27+00:00</updated>
<author>
<name>sricker-nvidia</name>
<email>115114531+sricker-nvidia@users.noreply.github.com</email>
</author>
<published>2025-04-19T11:33:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=043278a527ab5744674417a08d924c67a60a486b'/>
<id>urn:sha1:043278a527ab5744674417a08d924c67a60a486b</id>
<content type='text'>
Change modifies the countbits intrinsic to use generics in order to
support 64bit countbits on select platforms where this is supported.
On platforms where this is not natively supported, we emulate by
converting the 64-bit type into a uint2 (metal and spir-v).

This should align with the implementation of other uint64_t
intrinsics such as abs, min, max and clamp.

Added new countbits64 test to verify changes.

Updated documentation for 64bit-type-support.html</content>
</entry>
<entry>
<title>Add intptr_t abs/min/max operations for CPU &amp; CUDA targets (#6160)</title>
<updated>2025-01-24T23:50:45+00:00</updated>
<author>
<name>Julius Ikkala</name>
<email>julius.ikkala@gmail.com</email>
</author>
<published>2025-01-24T23:50:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=1abba25401c59a5634955ca44806834186e6b082'/>
<id>urn:sha1:1abba25401c59a5634955ca44806834186e6b082</id>
<content type='text'>
* Add intptr_t abs/min/max operations for CPU &amp; CUDA targets

* Define intptr_t and uintptr_t with CUDACC_RTC

---------

Co-authored-by: Yong He &lt;yonghe@outlook.com&gt;</content>
</entry>
<entry>
<title>format</title>
<updated>2024-10-29T06:49:26+00:00</updated>
<author>
<name>Ellie Hermaszewska</name>
<email>ellieh@nvidia.com</email>
</author>
<published>2024-10-29T06:49:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=f65d756bff8d4c5cbc15bd0322a2ae8e6b896a21'/>
<id>urn:sha1:f65d756bff8d4c5cbc15bd0322a2ae8e6b896a21</id>
<content type='text'>
* format

* Minor test fixes

* enable checking cpp format in ci</content>
</entry>
<entry>
<title>Replace the word stdlib or standard-library with core-module for source code (#5415)</title>
<updated>2024-10-28T23:40:53+00:00</updated>
<author>
<name>Jay Kwak</name>
<email>82421531+jkwak-work@users.noreply.github.com</email>
</author>
<published>2024-10-28T23:40:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=b7a619b45b0745f166d2dcc5985b994fb1d85d13'/>
<id>urn:sha1:b7a619b45b0745f166d2dcc5985b994fb1d85d13</id>
<content type='text'>
This commit changes the word "stdlib" or "standard library" to "core module" in the source code.</content>
</entry>
<entry>
<title>Correct type for double log10 (#4550)</title>
<updated>2024-07-05T13:01:46+00:00</updated>
<author>
<name>Ellie Hermaszewska</name>
<email>ellieh@nvidia.com</email>
</author>
<published>2024-07-05T13:01:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=388de5f68ebef556f9addcf36685109d2524ee4e'/>
<id>urn:sha1:388de5f68ebef556f9addcf36685109d2524ee4e</id>
<content type='text'>
Fixes https://github.com/shader-slang/slang/issues/4549</content>
</entry>
<entry>
<title>Improve cpp prelude. (#3725)</title>
<updated>2024-03-09T02:09:13+00:00</updated>
<author>
<name>Yong He</name>
<email>yonghe@outlook.com</email>
</author>
<published>2024-03-09T02:09:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=5074ee7c8a7f154273ed26815a8018df27dc03bb'/>
<id>urn:sha1:5074ee7c8a7f154273ed26815a8018df27dc03bb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make the exponent return value from frexp int (#3284)</title>
<updated>2023-10-26T22:03:34+00:00</updated>
<author>
<name>Ellie Hermaszewska</name>
<email>ellieh@nvidia.com</email>
</author>
<published>2023-10-26T22:03:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=41e17d370d67a584fbac9bbbe435c057c18715f4'/>
<id>urn:sha1:41e17d370d67a584fbac9bbbe435c057c18715f4</id>
<content type='text'>
* Make the exponent return value from frexp int

Fixes https://github.com/shader-slang/slang/issues/3282

* Update slang-llvm.

---------

Co-authored-by: Yong He &lt;yhe@nvidia.com&gt;</content>
</entry>
</feed>
