builtin: add C._likely_ support

pull/5304/head
Delyan Angelov 2020-06-09 16:35:25 +03:00
parent e649cf84e3
commit 6663e94780
1 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,10 @@
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