提交记录 5008
| 用户 | 题目 | 状态 | 得分 | 用时 | 内存 | 语言 | 代码长度 |
|---|---|---|---|---|---|---|---|
| user1 | 1007. 测测你的memset | Compile Error | 0 | 0 ns | 0 KB | C | 352 B |
| 提交时间 | 评测时间 |
|---|---|
| 2018-08-04 01:18:54 | 2020-08-01 00:05:35 |
void my_memset(char *a, char c, unsigned n) {
char s[16]={c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c}; while((int)a&15)*a++=c,n--;while(n&63)a[--n]=c;
__asm("movups (%1), %%xmm0; _LAR: movntps %%xmm0, (%0); movntps %%xmm0, 16(%0); movntps %%xmm0, 32(%0); movntps %%xmm0, 48(%0); addl $64, %0; subl $1, %2; jnz _LAR; ": : "r"(a), "r"(&s), "r"(n/64): "memory");
}
| Compilation | N/A | N/A | Compile Error | Score: N/A | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-04-12 14:31:30 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠