Session

Generic 128–bit Math API

Speakers

Alexander Lobakin
Milena Olech
Marta Plantykow

Label

Nuts and Bolts

Session Type

Talk

Contents

Description

We propose a new generic 128-bit math API for the Linux kernel, which allows to operate on 128-bit variables. The solution can be immediately used in Precision Time Protocol (PTP) implementation, in which precise calculations are crucial due to the rigorous phase-synchronization telco requirements, and is ready to be used for other purposes, such as cryptography. Perf tests proved that the developed API is able to deliver better results, especially on __int128-enabled systems, while not losing any precision due to lack of bits.