builtin: add C._likely_ support
							parent
							
								
									e649cf84e3
								
							
						
					
					
						commit
						6663e94780
					
				|  | @ -1,5 +1,10 @@ | ||||||
| module builtin | 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>
 | // <string.h>
 | ||||||
| fn C.memcpy(byteptr, byteptr, int) voidptr | fn C.memcpy(byteptr, byteptr, int) voidptr | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue