godot/core
Fabio Alessandrelli cbc772d696 Fix buffers size calculation in PacketPeerStream.
The calculation used to be wrong when exactly at a power of 2.
`nearest_shift` always return the "next" power of 2
`nearest_shift(4) == 3 # 2^3 = 8`.

On the other hand `next_power_of_2` returns the exact value if that
value is a power of 2 (i.e. `next_power_of_2(4) == 4`).

I.e. :
```
WARN_PRINT(itos(next_power_of_2(4)) + " " + itos(1 << nearest_shift(4)));
// WARNING: ... : 4 8
```

Is this by design?
2019-12-22 15:35:44 +01:00
..
bind
crypto
io Fix buffers size calculation in PacketPeerStream. 2019-12-22 15:35:44 +01:00
math Drop b2d_convexdecomp. no longer necessary. 2019-12-13 23:29:52 +01:00
os
array.cpp
array.h
class_db.cpp
class_db.h
color_names.inc
color.cpp
color.h
command_queue_mt.cpp
command_queue_mt.h
compressed_translation.cpp
compressed_translation.h
core_builders.py
core_string_names.cpp
core_string_names.h
cowdata.h
dictionary.cpp
dictionary.h
engine.cpp
engine.h
error_list.h
error_macros.cpp
error_macros.h
func_ref.cpp
func_ref.h
global_constants.cpp
global_constants.h
hash_map.h
hashfuncs.h
image.cpp
image.h
input_map.cpp
input_map.h
int_types.h
list.h
make_binders.py
map.h
message_queue.cpp
message_queue.h
method_bind.cpp
method_bind.h
method_ptrcall.h
node_path.cpp
node_path.h
oa_hash_map.h
object.cpp Suggest use of deferred or oneshot on disconnect if the signal is locked. Closes #34443. 2019-12-18 19:32:00 -03:00
object.h
ordered_hash_map.h
packed_data_container.cpp
packed_data_container.h
pair.h
path_remap.cpp
path_remap.h
pool_allocator.cpp
pool_allocator.h
pool_vector.cpp
pool_vector.h
print_string.cpp
print_string.h
project_settings.cpp Encodes property names properly in project.godot 2019-12-20 10:42:08 +08:00
project_settings.h
ref_ptr.cpp
ref_ptr.h
reference.cpp
reference.h
register_core_types.cpp
register_core_types.h
resource.cpp
resource.h
rid.cpp
rid.h
ring_buffer.h
safe_refcount.cpp
safe_refcount.h
script_debugger_local.cpp
script_debugger_local.h
script_language.cpp
script_language.h
SCsub
self_list.h
set.h
simple_type.h
sort_array.h
string_buffer.h
string_builder.cpp
string_builder.h
string_name.cpp
string_name.h
translation.cpp
translation.h
type_info.h
typedefs.h
ucaps.h
undo_redo.cpp
undo_redo.h
ustring.cpp Encodes property names properly in project.godot 2019-12-20 10:42:08 +08:00
ustring.h Encodes property names properly in project.godot 2019-12-20 10:42:08 +08:00
variant_call.cpp Document that translated does not behave like rotated or scaled 2019-12-15 12:31:08 -05:00
variant_op.cpp
variant_parser.cpp Encodes property names properly in project.godot 2019-12-20 10:42:08 +08:00
variant_parser.h
variant.cpp
variant.h
vector.h
version.h
vmap.h
vset.h