Testing latest pari + WASM + node.js... and it works?! Wow.
License: GPL3
ubuntu2004
#line 2 "../src/kernel/mips64/asm0.h"1/* Copyright (C) 2013 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. */14/*15ASM mulll16NOASM addll bfffo divll17*/18#ifdef ASMINLINE19#define LOCAL_HIREMAINDER register ulong hiremainder20#define LOCAL_OVERFLOW register ulong overflow2122#define mulll(a, b) \23__extension__ ({ ulong __value, __arg1 = (a), __arg2 = (b); \24__asm__ ("dmultu %2,%3\n\tmfhi %1" \25: "=&l" (__value), "=&r" (hiremainder) \26: "r" (__arg1), "r" (__arg2) \27: "hi"); \28__value; \29})3031#define addmul(a, b) \32__extension__ ({ \33ulong __arg1 = (a), __arg2 = (b), __value, __tmp; \34__asm__ ("dmultu %3,%4\n\tmfhi %0\n\tmflo %2\n\t" \35"daddu %1,%2,%5\n\tsltu %2,%1,%5\n\tdaddu %0,%0,%2" \36: "=&r" (hiremainder), "=&r" (__value), "=&r" (__tmp) \37: "r" (__arg1), "r" (__arg2), "r" (hiremainder) \38: "hi", "lo"); \39__value; \40})4142#endif434445