github.com/ethereum/go-ethereum@v1.16.1/crypto/secp256k1/libsecp256k1/cmake/CheckX86_64Assembly.cmake (about)

     1  include(CheckCSourceCompiles)
     2  
     3  function(check_x86_64_assembly)
     4    check_c_source_compiles("
     5      #include <stdint.h>
     6  
     7      int main()
     8      {
     9        uint64_t a = 11, tmp;
    10        __asm__ __volatile__(\"movq $0x100000000,%1; mulq %%rsi\" : \"+a\"(a) : \"S\"(tmp) : \"cc\", \"%rdx\");
    11      }
    12    " HAVE_X86_64_ASM)
    13    set(HAVE_X86_64_ASM ${HAVE_X86_64_ASM} PARENT_SCOPE)
    14  endfunction()