|
16 | 16 |
|
17 | 17 | //================================================================================ |
18 | 18 | // this file has been auto-generated, do not modify its contents! |
19 | | -// date: 2024-02-22 10:17:59.488348 |
20 | | -// git hash: c81e76a8c623162ef1970192f239b70d54c85123 |
| 19 | +// date: 2024-02-22 10:29:30.717359 |
| 20 | +// git hash: c4fae9db85e61372cfefc53d4755b418beb2d93e |
21 | 21 | //================================================================================ |
22 | 22 |
|
23 | 23 | #ifndef KERNEL_FLOAT_MACROS_H |
@@ -2751,7 +2751,7 @@ struct vector_ptr { |
2751 | 2751 | * only allows conversion if the alignment of the source is greater than or equal to the alignment of the target. |
2752 | 2752 | */ |
2753 | 2753 | template<typename T2, size_t N2> |
2754 | | - KERNEL_FLOAT_INLINE vector_ptr(vector_ptr<T2, N2, U> p, enable_if_t<(N2 >= N), int> = {}) : |
| 2754 | + KERNEL_FLOAT_INLINE vector_ptr(vector_ptr<T2, N2, U> p, enable_if_t<(N2 % N == 0), int> = {}) : |
2755 | 2755 | data_(p.get()) {} |
2756 | 2756 |
|
2757 | 2757 | /** |
@@ -2836,11 +2836,11 @@ struct vector_ptr<T, N, const U> { |
2836 | 2836 |
|
2837 | 2837 | template<typename T2, size_t N2> |
2838 | 2838 | KERNEL_FLOAT_INLINE |
2839 | | - vector_ptr(vector_ptr<T2, N2, const U> p, enable_if_t<(N2 >= N), int> = {}) : |
| 2839 | + vector_ptr(vector_ptr<T2, N2, const U> p, enable_if_t<(N2 % N == 0), int> = {}) : |
2840 | 2840 | data_(p.get()) {} |
2841 | 2841 |
|
2842 | 2842 | template<typename T2, size_t N2> |
2843 | | - KERNEL_FLOAT_INLINE vector_ptr(vector_ptr<T2, N2, U> p, enable_if_t<(N2 >= N), int> = {}) : |
| 2843 | + KERNEL_FLOAT_INLINE vector_ptr(vector_ptr<T2, N2, U> p, enable_if_t<(N2 % N == 0), int> = {}) : |
2844 | 2844 | data_(p.get()) {} |
2845 | 2845 |
|
2846 | 2846 | template<size_t K = N> |
|
0 commit comments