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