interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / vendor / curve25519-dalek / src / backend / serial / fiat_u64 / mod.rs

28 lines · 929 bytes Raw Blame History
1// -*- mode: rust; -*-
2//
3// This file is part of curve25519-dalek.
4// Copyright (c) 2016-2018 Isis Lovecruft, Henry de Valence
5// See LICENSE for licensing information.
6//
7// Authors:
8// - Isis Agora Lovecruft <isis@patternsinthevoid.net>
9// - Henry de Valence <hdevalence@hdevalence.ca>
10
11//! The `u64` backend uses `u64`s and a `(u64, u64) -> u128` multiplier.
12//!
13//! On x86_64, the idiom `(x as u128) * (y as u128)` lowers to `MUL`
14//! instructions taking 64-bit inputs and producing 128-bit outputs. On
15//! other platforms, this implementation is not recommended.
16//!
17//! On Haswell and newer, the BMI2 extension provides `MULX`, and on
18//! Broadwell and newer, the ADX extension provides `ADCX` and `ADOX`
19//! (allowing the CPU to compute two carry chains in parallel). These
20//! will be used if available.
21
22#[path = "../u64/scalar.rs"]
23pub mod scalar;
24
25pub mod field;
26
27#[path = "../u64/constants.rs"]
28pub mod constants;