Skip to content

Commit 634c5ac

Browse files
author
Your Name
committed
Add GMP and MPFR math to platform
Introduce a GMP-backed BigInt/BigFloat module, wire host exports, and add Chudnovsky pi via Math.pi!.
1 parent b5bc8ba commit 634c5ac

File tree

11 files changed

+834
-11
lines changed

11 files changed

+834
-11
lines changed

Cargo.lock

Lines changed: 129 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ members = [
1212
"crates/roc_env",
1313
"crates/roc_sqlite",
1414
"crates/roc_random",
15+
"crates/roc_gmp",
1516
]
1617

1718
[workspace.package]
@@ -40,6 +41,8 @@ roc_stdio = { path = "crates/roc_stdio" }
4041
roc_env = { path = "crates/roc_env" }
4142
roc_random = { path = "crates/roc_random" }
4243
roc_sqlite = { path = "crates/roc_sqlite" }
44+
roc_gmp = { path = "crates/roc_gmp" }
45+
rug = "=1.26.0"
4346
memchr = "=2.7.4"
4447
hyper = { version = "=1.6.0", default-features = false, features = [
4548
"http1",

crates/roc_gmp/Cargo.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[package]
2+
name = "roc_gmp"
3+
description = "Common functionality for Roc to interface with GMP via rug"
4+
5+
authors.workspace = true
6+
edition.workspace = true
7+
license.workspace = true
8+
version.workspace = true
9+
10+
[dependencies]
11+
roc_std.workspace = true
12+
roc_std_heap.workspace = true
13+
rug.workspace = true

0 commit comments

Comments
 (0)