github.com/egonelbre/exp@v0.0.0-20240430123955-ed1d3aa93911/bench/qpc/main.s (about)

     1  #include "go_asm.h"
     2  #include "textflag.h"
     3  #include "funcdata.h"
     4  
     5  // func qpc() int64
     6  TEXT main·asmQPC(SB),NOSPLIT,$0-8
     7          LEAQ    ret+0(FP), CX
     8          MOVQ    SP, AX
     9          ANDQ    $~15, SP        // alignment as per Windows requirement
    10          SUBQ    $(48), SP       // room for SP and 4 args as per Windows require
    11                                  // plus one extra word to keep stack 16 bytes al
    12          MOVQ    AX, 32(SP)
    13          MOVQ    main·_QueryPerformanceCounter(SB), AX
    14          CALL    AX
    15          MOVQ    32(SP), SP
    16          RET