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:
parent
e649cf84e3
commit
6663e94780
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user