Testing latest pari + WASM + node.js... and it works?! Wow.
License: GPL3
ubuntu2004
#line 2 "../src/kernel/ia64/asm0.h"1/* Copyright (C) 2006 The PARI group.23This file is part of the PARI/GP package.45PARI/GP is free software; you can redistribute it and/or modify it under the6terms of the GNU General Public License as published by the Free Software7Foundation; either version 2 of the License, or (at your option) any later8version. It is distributed in the hope that it will be useful, but WITHOUT9ANY WARRANTY WHATSOEVER.1011Check the License for details. You should have received a copy of it, along12with the package; see the file 'COPYING'. If not, write to the Free Software13Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */1415/*16ASM mulll bfffo17NOASM addll divll18*/1920#ifdef ASMINLINE21/* Written by Guillaume Hanrot */22#define LOCAL_HIREMAINDER register ulong hiremainder2324#define bfffo(a) \25__extension__ ({ ulong __arg1 = (a), __tmp, _a, _c; \26__asm__ ("mux1 %0 = %1, @rev" : "=r" (__tmp) : "r" (__arg1)); \27__asm__ ("czx1.l %0 = %1" : "=r" (_a) : "r" (-__tmp | __tmp)); \28_c = (_a - 1) << 3; \29__arg1 >>= _c; \30if (__arg1 >= 1 << 4) \31__arg1 >>= 4, _c += 4; \32if (__arg1 >= 1 << 2) \33__arg1 >>= 2, _c += 2; \34_c += __arg1 >> 1; \3563 - _c; \36})3738#define mulll(a, b) \39__extension__ ({ \40ulong __arg1 = (a), __arg2 = (b), __value; \41__asm__ ("xma.hu %0 = %2, %3, f0\n\t;;\n\txma.l %1 = %2, %3, f0" \42: "=&f" (hiremainder), "=f" (__value) \43: "f" (__arg1), "f" (__arg2)); \44__value; \45})4647#define addmul(a, b) \48__extension__ ({ \49ulong __arg1 = (a), __arg2 = (b), __value; \50__asm__ ("xma.hu %0 = %2, %3, %4\n\txma.l %1 = %2, %3, %4" \51: "=&f" (hiremainder), "=f" (__value) \52: "f" (__arg1), "f" (__arg2), "f" (hiremainder)); \53__value; \54})55#endif565758