mirror of
https://github.com/vlang/v.git
synced 2025-09-16 16:02:29 +03:00
v: add full compiler support for _likely_(x)
This commit is contained in:
parent
6663e94780
commit
c7d4360931
11 changed files with 90 additions and 7 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue