godot/core
Hein-Pieter van Braam 22358babda Implement Linux-style likely()/unlikely() macros
This implement branch prediction macros likely() and unlikely() like in
Linux. When using these macros please ensure that when you use them the
condition in the branch really is very, very likely or unlikely. Think
90+% of the time. Primarily useful for error checking. (And I implement
these macros for all our error checking macros now)

See this article for more information:
https://kernelnewbies.org/FAQ/LikelyUnlikely

There are more places where these macros may make sense in renderer and
physics engine. Placing them will come in another commit down the line.
2017-09-21 18:28:28 +02:00
..
bind Rename pos to position in user facing methods and variables 2017-09-20 13:11:10 +02:00
helper Fix files header 2017-09-01 21:07:55 +07:00
io Fix import order, so scenes are imported after textures. 2017-09-20 21:04:20 -03:00
math Merge pull request #11409 from MarufSarker/PR-core-math-is_nan 2017-09-20 14:29:01 +02:00
os Rename pos to position in user facing methods and variables 2017-09-20 13:11:10 +02:00
allocators.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
array.cpp -Fixed changes to default input actions not working, closes #10502 2017-09-06 18:14:04 -03:00
array.h -Fixed changes to default input actions not working, closes #10502 2017-09-06 18:14:04 -03:00
class_db.cpp Fixes order of default arguments in MethodInfo 2017-09-02 20:43:40 +02:00
class_db.h Removed ParamDef and ParamHint structs 2017-08-29 04:28:17 -04:00
color_names.inc Add missing map.h include in color defs 2017-01-15 12:51:47 +01:00
color.cpp Merge pull request #11208 from kitsune/hex-color-shortcuts 2017-09-19 23:33:25 +02:00
color.h Implement +,-,/, * and negate operators for Color type. 2017-09-16 13:09:49 -04:00
command_queue_mt.cpp Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
command_queue_mt.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
compressed_translation.cpp Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
compressed_translation.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
core_string_names.cpp Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
core_string_names.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
dictionary.cpp Dead code tells no tales 2017-08-27 22:13:45 +02:00
dictionary.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
dvector.cpp Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
dvector.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
engine.cpp Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
engine.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
error_list.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
error_macros.cpp Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
error_macros.h Implement Linux-style likely()/unlikely() macros 2017-09-21 18:28:28 +02:00
func_ref.cpp Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
func_ref.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
global_constants.cpp Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
global_constants.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
hash_map.h added OAHashMap type 2017-09-19 16:48:53 +02:00
hashfuncs.h added OAHashMap type 2017-09-19 16:48:53 +02:00
image.cpp Fix use of unitialized variables 2017-09-02 01:59:26 +02:00
image.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
input_map.cpp Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
input_map.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
int_types.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
list.h Provide NativeScript properties in definition order 2017-09-05 12:45:23 +07:00
make_binders.py Convert Object::cast_to() to the static version 2017-08-24 23:08:24 +02:00
map.h Remove assignment and declarations in if statements 2017-09-08 14:59:15 +02:00
message_queue.cpp Dead code tells no tales 2017-08-27 22:13:45 +02:00
message_queue.h Dead code tells no tales 2017-08-27 22:13:45 +02:00
method_bind.cpp Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
method_bind.h Fix typos 'a' and 'an' 2017-09-02 21:19:06 +07:00
method_ptrcall.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
node_path.cpp Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
node_path.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
oa_hash_map.h added OAHashMap type 2017-09-19 16:48:53 +02:00
object.cpp Moved class_name and return_val to initializer list 2017-09-14 12:54:37 -04:00
object.h Moved class_name and return_val to initializer list 2017-09-14 12:54:37 -04:00
ordered_hash_map.h Fix various assorted warnings 2017-09-08 14:57:48 +02:00
packed_data_container.cpp Fix signed and unsigned comparisons 2017-09-01 08:13:12 +02:00
packed_data_container.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
pair.h Merge pull request #10318 from endragor/ordered-hash-map 2017-09-01 13:09:30 +02:00
path_remap.cpp Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
path_remap.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
pool_allocator.cpp Fix signed and unsigned comparisons 2017-09-01 08:13:12 +02:00
pool_allocator.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
print_string.cpp Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
print_string.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
project_settings.cpp Rename pos to position in user facing methods and variables 2017-09-20 13:11:10 +02:00
project_settings.h Fix files header 2017-09-01 21:07:55 +07:00
ref_ptr.cpp Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
ref_ptr.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
reference.cpp Construct Variants from Reference properly in GDNative 2017-09-14 19:40:36 +07:00
reference.h Construct Variants from Reference properly in GDNative 2017-09-14 19:40:36 +07:00
register_core_types.cpp added JSON singleton 2017-09-15 15:40:27 +02:00
register_core_types.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
resource.cpp Fixes ERR_EXPLAIN being overwritten 2017-09-06 04:43:07 +02:00
resource.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
rid.cpp Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
rid.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
ring_buffer.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
safe_refcount.cpp Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
safe_refcount.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
script_debugger_local.cpp Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
script_debugger_local.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
script_debugger_remote.cpp Fix unused variable warnings 2017-09-08 15:03:53 +02:00
script_debugger_remote.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
script_language.cpp Fix unused variable warnings 2017-09-08 15:03:53 +02:00
script_language.h Fixes language overridden external editors 2017-09-03 21:23:36 +02:00
SCsub Make build scripts Python3 compatible 2017-08-27 23:05:39 +02:00
self_list.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
set.h Refactor core/set.h 2017-09-12 14:10:35 +01:00
simple_type.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
sort.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
string_buffer.cpp Add StringBuffer class 2017-09-05 11:04:11 +07:00
string_buffer.h Add StringBuffer class 2017-09-05 11:04:11 +07:00
string_builder.cpp added StringBuilder class 2017-09-01 19:52:32 +02:00
string_builder.h added StringBuilder class 2017-09-01 19:52:32 +02:00
string_db.cpp Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
string_db.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
translation.cpp Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
translation.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
type_info.h Fix warnings comparing enums of different types 2017-09-07 09:03:11 +02:00
typedefs.h Implement Linux-style likely()/unlikely() macros 2017-09-21 18:28:28 +02:00
ucaps.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
undo_redo.cpp Expose more methods for UndoRedo 2017-09-13 12:18:51 +08:00
undo_redo.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
ustring.cpp Fix use of unitialized variables 2017-09-02 01:59:26 +02:00
ustring.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
variant_call.cpp Rename pos to position in user facing methods and variables 2017-09-20 13:11:10 +02:00
variant_construct_string.cpp Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
variant_op.cpp Allow equality checks between null and arbitrary types 2017-09-20 22:14:38 +02:00
variant_parser.cpp Optimize memory allocations in VariantParser::get_token 2017-09-05 11:04:33 +07:00
variant_parser.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
variant.cpp Implement Linux-style likely()/unlikely() macros 2017-09-21 18:28:28 +02:00
variant.h Allow booleanization of all types 2017-09-19 18:55:31 +02:00
vector.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
version.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
vmap.h Fix use of unitialized variables 2017-09-02 01:59:26 +02:00
vset.h Fix use of unitialized variables 2017-09-02 01:59:26 +02:00