1616
1717// ================================================================================
1818// this file has been auto-generated, do not modify its contents!
19- // date: 2025-10-14 16:18:28.846436
20- // git hash: 0e5f52493c7b7027921243e813c434b6cd55e42b
19+ // date: 2025-10-31 19:02:16.510739
20+ // git hash: f01c913003692e3270c174964ddafb02a016e9b8
2121// ================================================================================
2222
2323#ifndef KERNEL_FLOAT_MACROS_H
@@ -2702,7 +2702,7 @@ constexpr size_t gcd(size_t a, size_t b) {
27022702 * Returns true if a pointer having alignment of `a` bytes also has an alignment of `b` bytes. Returns false otherwise.
27032703 */
27042704KERNEL_FLOAT_INLINE
2705- constexpr size_t alignment_divisible (size_t a, size_t b) {
2705+ constexpr bool is_alignment_divisible (size_t a, size_t b) {
27062706 return gcd (a, KERNEL_FLOAT_MAX_ALIGNMENT) % gcd (b, KERNEL_FLOAT_MAX_ALIGNMENT) == 0 ;
27072707}
27082708
@@ -3065,7 +3065,7 @@ struct vector_ptr {
30653065 typename T2,
30663066 size_t N2,
30673067 size_t A2,
3068- enable_if_t <detail::alignment_divisible (A2, Alignment), int > = 0 >
3068+ enable_if_t <detail::is_alignment_divisible (A2, Alignment), int > = 0 >
30693069 KERNEL_FLOAT_INLINE vector_ptr (vector_ptr<T2, N2, U, A2> p) : data_(p.get()) {}
30703070
30713071 /* *
@@ -3150,14 +3150,14 @@ struct vector_ptr<T, N, const U, Alignment> {
31503150 typename T2,
31513151 size_t N2,
31523152 size_t A2,
3153- enable_if_t <detail::alignment_divisible (A2, Alignment), int > = 0 >
3153+ enable_if_t <detail::is_alignment_divisible (A2, Alignment), int > = 0 >
31543154 KERNEL_FLOAT_INLINE vector_ptr (vector_ptr<T2, N2, const U, A2> p) : data_(p.get()) {}
31553155
31563156 template <
31573157 typename T2,
31583158 size_t N2,
31593159 size_t A2,
3160- enable_if_t <detail::alignment_divisible (A2, Alignment), int > = 0 >
3160+ enable_if_t <detail::is_alignment_divisible (A2, Alignment), int > = 0 >
31613161 KERNEL_FLOAT_INLINE vector_ptr (vector_ptr<T2, N2, U, A2> p) : data_(p.get()) {}
31623162
31633163 KERNEL_FLOAT_INLINE vector_ref<value_type, N, const U, Alignment> operator *() const {
@@ -3204,7 +3204,7 @@ template<
32043204 size_t N,
32053205 typename U,
32063206 size_t A,
3207- typename = enable_if_t <(N * sizeof (U)) % A == 0 >>
3207+ typename = enable_if_t <detail::is_alignment_divisible (N * sizeof (U), A) >>
32083208KERNEL_FLOAT_INLINE vector_ptr<T, N, U, A>& operator +=(vector_ptr<T, N, U, A>& p, size_t i) {
32093209 return p = p + i;
32103210}
@@ -3217,30 +3217,30 @@ KERNEL_FLOAT_INLINE vector_ptr<T, N, U, A>& operator+=(vector_ptr<T, N, U, A>& p
32173217 * @tparam U The type of the elements pointed to by the raw pointer.
32183218 */
32193219template <typename T, size_t N = 1 , typename U>
3220- KERNEL_FLOAT_INLINE vector_ptr<T, N, U> wrap_ptr (U* ptr) {
3220+ KERNEL_FLOAT_INLINE vector_ptr<T, N, U> make_vec_ptr (U* ptr) {
32213221 return vector_ptr<T, N, U> {ptr};
32223222}
32233223
3224+ // Doxygen cannot deal with the `make_vec_ptr` being defined multiple times, we ignore the second definition.
3225+ // / @cond IGNORE
32243226/* *
32253227 * Creates a `vector_ptr<T, N>` from a raw pointer `T*` by asserting a specific alignment `N`.
32263228 *
32273229 * @tparam N The alignment constraint for the vector_ptr.
32283230 * @tparam T The type of the elements pointed to by the raw pointer.
32293231 */
32303232template <size_t N, typename T>
3231- KERNEL_FLOAT_INLINE vector_ptr<T, N> assert_aligned (T* ptr) {
3233+ KERNEL_FLOAT_INLINE vector_ptr<T, N> make_vec_ptr (T* ptr) {
32323234 return vector_ptr<T, N> {ptr};
32333235}
32343236
3235- // Doxygen cannot deal with the `assert_aligned` being defined twice, we ignore the second definition.
3236- // / @cond IGNORE
32373237/* *
32383238 * Creates a `vector_ptr<T, 1>` from a raw pointer `T*`. The alignment is assumed to be KERNEL_FLOAT_MAX_ALIGNMENT.
32393239 *
32403240 * @tparam T The type of the elements pointed to by the raw pointer.
32413241 */
3242- template <typename T>
3243- KERNEL_FLOAT_INLINE vector_ptr<T, 1 , T, KERNEL_FLOAT_MAX_ALIGNMENT> assert_aligned (T* ptr) {
3242+ template <decltype ( nullptr ) = nullptr , typename T>
3243+ KERNEL_FLOAT_INLINE vector_ptr<T, 1 , T, KERNEL_FLOAT_MAX_ALIGNMENT> make_vec_ptr (T* ptr) {
32443244 return vector_ptr<T, 1 , T, KERNEL_FLOAT_MAX_ALIGNMENT> {ptr};
32453245}
32463246// / @endcond
@@ -3249,7 +3249,7 @@ template<typename T, size_t N = 1, typename U = T, size_t Align = N>
32493249using vec_ptr = vector_ptr<T, N, U, Align * sizeof (U)>;
32503250
32513251template <typename T, typename U = T>
3252- using view_ptr = vector_ptr<T, 1 , U, alignof (U)>;
3252+ using scalar_ptr = vector_ptr<T, 1 , U, alignof (U)>;
32533253
32543254#if defined(__cpp_deduction_guides)
32553255template <typename T>
0 commit comments