Skip to content

Commit 71a4184

Browse files
committed
Add KERNEL_FLOAT_INLINE to vector_ptr constructors
1 parent a9bc5a6 commit 71a4184

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

include/kernel_float/memory.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -464,8 +464,8 @@ struct vector_ptr {
464464
/**
465465
* Default constructor sets the pointer to `NULL`.
466466
*/
467-
vector_ptr() = default;
468-
vector_ptr(decltype(nullptr)) {}
467+
KERNEL_FLOAT_INLINE vector_ptr() {}
468+
KERNEL_FLOAT_INLINE vector_ptr(decltype(nullptr)) {}
469469

470470
/**
471471
* Constructor from a given pointer. It is up to the user to assert that the pointer is aligned to `Alignment`.
@@ -560,8 +560,8 @@ struct vector_ptr<T, N, const U, Alignment> {
560560
using pointer_type = const U*;
561561
using value_type = decay_t<T>;
562562

563-
vector_ptr() = default;
564-
vector_ptr(decltype(nullptr)) {}
563+
KERNEL_FLOAT_INLINE vector_ptr() {}
564+
KERNEL_FLOAT_INLINE vector_ptr(decltype(nullptr)) {}
565565

566566
template<typename V = U, enable_if_t<Alignment != alignof(V), int> = 0>
567567
KERNEL_FLOAT_INLINE explicit vector_ptr(pointer_type p) : data_(p) {}

single_include/kernel_float.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616

1717
//================================================================================
1818
// this file has been auto-generated, do not modify its contents!
19-
// date: 2026-01-08 14:44:34.390982
20-
// git hash: b30d148dff8b64da40ed34e34ba6386c2ad150c5
19+
// date: 2026-03-02 16:31:41.575770
20+
// git hash: a9bc5a6b4eaaa934175759ad44eb4b3b89f7ded2
2121
//================================================================================
2222

2323
#ifndef KERNEL_FLOAT_MACROS_H
@@ -3050,8 +3050,8 @@ struct vector_ptr {
30503050
/**
30513051
* Default constructor sets the pointer to `NULL`.
30523052
*/
3053-
vector_ptr() = default;
3054-
vector_ptr(decltype(nullptr)) {}
3053+
KERNEL_FLOAT_INLINE vector_ptr() {}
3054+
KERNEL_FLOAT_INLINE vector_ptr(decltype(nullptr)) {}
30553055

30563056
/**
30573057
* Constructor from a given pointer. It is up to the user to assert that the pointer is aligned to `Alignment`.
@@ -3146,8 +3146,8 @@ struct vector_ptr<T, N, const U, Alignment> {
31463146
using pointer_type = const U*;
31473147
using value_type = decay_t<T>;
31483148

3149-
vector_ptr() = default;
3150-
vector_ptr(decltype(nullptr)) {}
3149+
KERNEL_FLOAT_INLINE vector_ptr() {}
3150+
KERNEL_FLOAT_INLINE vector_ptr(decltype(nullptr)) {}
31513151

31523152
template<typename V = U, enable_if_t<Alignment != alignof(V), int> = 0>
31533153
KERNEL_FLOAT_INLINE explicit vector_ptr(pointer_type p) : data_(p) {}

0 commit comments

Comments
 (0)