summaryrefslogtreecommitdiffstats
path: root/include/godot_cpp/templates
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2022-11-28 14:47:55 +0200
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2023-01-19 13:12:21 +0200
commitabca497b7223eed94ae4cbd65119ddfce7941027 (patch)
treef9c7ff27533e4ee848746ddedcb11e4be0ea2e23 /include/godot_cpp/templates
parent69b525494bf41097edc86d44b1d4b11ddfeb2440 (diff)
downloadredot-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.hpp4
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.
}