News for hackers. Stuff that matters.
Re:Adding BigInts to V8 by jwilk on Wednesday May 02, 2018 @04:46PM (#16981004)
How do they do single digit multiplication?

Most(?) 64-bit CPUs have a 64bit × 64bit → 128bit multiplication instruction; but AFAIK the C++ language doesn't have anything like this.

Re:Adding BigInts to V8 by stephencanon on Wednesday May 02, 2018 @04:53PM (#16981067)
Both clang and gcc expose it via the __[u]int128_t extension.
Re:Adding BigInts to V8 by jwilk on Wednesday May 02, 2018 @05:35PM (#16981358)
That's how they did it indeed. They have also fallback code for when this the double-width integer type is not available.

https://github.com/v8/v8/blob/6.8.137/src/objects/bigint.cc#...

Re:Adding BigInts to V8 by mmozeiko on Wednesday May 02, 2018 @07:49PM (#16982159)
MSVC also can do this with _mul128 intrinsic.