Force inline some getters.

This commit is contained in:
Relintai 2023-04-25 18:04:34 +02:00
parent 2e6094cf03
commit 5d3e013cf1
3 changed files with 6 additions and 6 deletions

View File

@ -18,11 +18,11 @@ class MLPPMatrix : public Reference {
GDCLASS(MLPPMatrix, Reference);
public:
real_t *ptrw() {
_FORCE_INLINE_ real_t *ptrw() {
return _data;
}
const real_t *ptr() const {
_FORCE_INLINE_ const real_t *ptr() const {
return _data;
}

View File

@ -21,11 +21,11 @@ class MLPPTensor3 : public Reference {
GDCLASS(MLPPTensor3, Reference);
public:
real_t *ptrw() {
_FORCE_INLINE_ real_t *ptrw() {
return _data;
}
const real_t *ptr() const {
_FORCE_INLINE_ const real_t *ptr() const {
return _data;
}

View File

@ -21,11 +21,11 @@ class MLPPVector : public Reference {
GDCLASS(MLPPVector, Reference);
public:
real_t *ptrw() {
_FORCE_INLINE_ real_t *ptrw() {
return _data;
}
const real_t *ptr() const {
_FORCE_INLINE_ const real_t *ptr() const {
return _data;
}