1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

v: add full compiler support for _likely_(x)

This commit is contained in:
Delyan Angelov
2020-06-09 17:36:18 +03:00
parent 6663e94780
commit c7d4360931
11 changed files with 90 additions and 7 deletions

View File

@@ -1,10 +1,5 @@
module builtin
// See cheaders.v: _likely_ is actually a macro, to hint the C compiler
// that the passed boolean expression is very likely to be true, so it
// can generate assembly code, with less chance of branch misprediction.
fn C._likely_(bool) bool
// <string.h>
fn C.memcpy(byteptr, byteptr, int) voidptr