|
|
Log in / Subscribe / Register

The road to Zettalinux

The road to Zettalinux

Posted Sep 19, 2022 9:35 UTC (Mon) by arnd (subscriber, #8866)
In reply to: The road to Zettalinux by willy
Parent article: The road to Zettalinux

I think there is a conflict between the ideas of making 'long' 128-bit wide, using the same C calling conventions as 128-bit user space, and not requiring 128-bit multiplication and division to be fast.

We'll probably keep having this discussion for a while before even the basic type model is decided, including input from more than just kernel developers as well as actual benchmarking of user space software. My guess is that we'll end up with an LLP128 model (128 bit long long, 64 bit long) in both user space and kernel space, as is proposed in the draft riscv128 specs, which in turn means more invasive kernel changes but keeps the types compatible and does not require expensive 128-bit ALUs.


to post comments

The road to Zettalinux

Posted Sep 19, 2022 16:49 UTC (Mon) by willy (subscriber, #9762) [Link]

I do think we'll end up with different conventions in userspace and kernel space. That's OK, as long as we have an API that can describe what's going on.

You make a good point that 128b x 128b is going to have to work. However, there are algorithms for this kind of multiplication & division that allow for early termination if the top bits are zero.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds