C++ solution


  • 0
    G

    __asm("mov %0, %%eax" :: "m"(a));
    __asm("mov %0, %%ebx" :: "m"(b));
    __asm("add %eax, %ebx");
    __asm("mov %%ebx, %0" : "=m"(a));
    return a;


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.