• Stefan Agner's avatar
    lib/mpi: fix build with clang · dea632ca
    Stefan Agner authored
    Use just @ to denote comments which works with gcc and clang.
    Otherwise clang reports an escape sequence error:
      error: invalid % escape in inline assembly string
    
    Use %0-%3 as operand references, this avoids:
      error: invalid operand in inline asm: 'umull ${1:r}, ${0:r}, ${2:r}, ${3:r}'
    
    Also remove superfluous casts on output operands to avoid warnings
    such as:
      warning: invalid use of a cast in an inline asm context requiring an l-value
    Signed-off-by: default avatarStefan Agner <stefan@agner.ch>
    Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    dea632ca
longlong.h 39.5 KB