diff options
| author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-11-28 14:47:55 +0200 |
|---|---|---|
| committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2023-01-19 13:12:21 +0200 |
| commit | abca497b7223eed94ae4cbd65119ddfce7941027 (patch) | |
| tree | f9c7ff27533e4ee848746ddedcb11e4be0ea2e23 /include/godot_cpp/templates | |
| parent | 69b525494bf41097edc86d44b1d4b11ddfeb2440 (diff) | |
| download | redot-cpp-abca497b7223eed94ae4cbd65119ddfce7941027.tar.gz | |
Expose some low level functions and String operators.
Diffstat (limited to 'include/godot_cpp/templates')
| -rw-r--r-- | include/godot_cpp/templates/cowdata.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/godot_cpp/templates/cowdata.hpp b/include/godot_cpp/templates/cowdata.hpp index 8d4defd..38f9277 100644 --- a/include/godot_cpp/templates/cowdata.hpp +++ b/include/godot_cpp/templates/cowdata.hpp @@ -91,7 +91,7 @@ private: } _FORCE_INLINE_ size_t _get_alloc_size(size_t p_elements) const { - return Math::next_power_of_2(p_elements * sizeof(T)); + return next_power_of_2(p_elements * sizeof(T)); } _FORCE_INLINE_ bool _get_alloc_size_checked(size_t p_elements, size_t *out) const { @@ -102,7 +102,7 @@ private: *out = 0; return false; } - *out = Math::next_power_of_2(o); + *out = next_power_of_2(o); if (__builtin_add_overflow(o, static_cast<size_t>(32), &p)) { return false; // No longer allocated here. } |
