Go to the source code of this file.
|
| #define | SWS_MAX_PADDING 64 |
| | Switch to loop if total padding exceeds this number of bytes.
|
| |
◆ SWS_MAX_PADDING
| #define SWS_MAX_PADDING 64 |
Switch to loop if total padding exceeds this number of bytes.
Chosen to align with the typical L1 cache size of modern CPUs, as this avoids the risk of the implementation loading one extra unnecessary cache line.
Definition at line 37 of file ops_memcpy.c.
Referenced by process().
◆ process()
| static void process |
( |
const SwsOpExec * | exec, |
|
|
const void * | priv, |
|
|
int | x_start, |
|
|
int | y_start, |
|
|
int | x_end, |
|
|
int | y_end ) |
|
static |
◆ compile()
◆ backend_murder
Initial value:= {
.name = "memcpy",
}
@ SWS_BACKEND_MEMCPY
Fast path using libc memcpy() / memset()
static int compile(SwsContext *ctx, const SwsOpList *ops, SwsCompiledOp *out)
Definition at line 147 of file ops_memcpy.c.