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

builtin: add C._likely_ support

This commit is contained in:
Delyan Angelov 2020-06-09 16:35:25 +03:00
parent e649cf84e3
commit 6663e94780

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