Skip to content
/ u128 Public
forked from saber-hq/u128

🧮 U128 helpers for Solana programs.

License

Notifications You must be signed in to change notification settings

spool-hq/u128

This branch is 1 commit ahead of saber-hq/u128:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

631d2b0 Â· Sep 9, 2024

History

6 Commits
Mar 12, 2022
Mar 12, 2022
Mar 12, 2022
Mar 12, 2022
Sep 9, 2024
Sep 9, 2024
Mar 12, 2022
Mar 12, 2022
Mar 12, 2022
Mar 12, 2022

Repository files navigation

u128

U128 helpers for Solana programs.

Crates.io License Build Status Contributors

Motivation

U128 division is very inefficient on Solana BPF. This crate exposes a [U128] type derived using the uint crate as a stopgap.

Usage

Since u128 is a built-in type in Rust, you'll need to use the fully-qualified name like so:

use ::u128::mul_div_u64;

License: Apache-2.0

About

🧮 U128 helpers for Solana programs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 78.3%
  • Nix 16.6%
  • Shell 5.1%