Skip to content

Commit f00f562

Browse files
committed
Update README.md and bench_t81.cpp
1 parent 3b3e1b7 commit f00f562

2 files changed

Lines changed: 16 additions & 16 deletions

File tree

‎README.md‎

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ modular helpers, and deterministic utilities.\n
1717
Karatsuba-aware multiplication, canonical normalization, and full conversion helpers.
1818
- **Concrete helpers**: Montgomery contexts, I/O formatters, random tooling, and utility guards
1919
keep reusable patterns consistent and testable.
20-
- **Specs & architecture**: Normative coverage under `doc/`, plus a human-friendly
21-
`ARCHITECTURE.md` walkthrough (new!) and a docs portal at `docs/index.md` for quick orientation.
20+
- **Specs & architecture**: Normative coverage under [doc/](doc/), plus a human-friendly
21+
[ARCHITECTURE.md](ARCHITECTURE.md) walkthrough (new!) and a docs portal at [docs/index.md](docs/index.md) for quick orientation.
2222
- **Examples & proofs**: `examples/` shows runnable use cases while `tests/` and
2323
`bench/` capture behavioral regression suites and throughput gauges.
2424

@@ -97,17 +97,17 @@ Callers can also rely on guard classes for const-time exponent limits.
9797
- **Montgomery & helpers**: contexts, modular multiply/pow, context guards, and bridging helpers in
9898
`t81::core::montgomery`.
9999
- **I/O, util, docs**: `t81::io` for formatting/parsing, `t81::util` for randomness & invariants,
100-
and mirrored design docs under `doc/`.
101-
- **New architecture guide**: See `ARCHITECTURE.md` for a concise narrative plus ASCII call flow of the core layers.
100+
and mirrored design docs under [doc/](doc/).
101+
- **New architecture guide**: See [ARCHITECTURE.md](ARCHITECTURE.md) for a concise narrative plus ASCII call flow of the core layers.
102102
103103
## Docs & resources
104104
105-
- `doc/t81lib-spec-v1.0.0.md` — Normative library contract for consumers.
106-
- `doc/design/` — Deep dives on `limb`/`bigint`/`montgomery` internals.
107-
- `docs/index.md` — A friendly docs portal pointing to specs, examples, and tutorials (great for GitHub Pages).
108-
- `examples/` — Compileable demos that exercise `limb`, `bigint`, and Montgomery helpers.
109-
- `tests/` & `bench/` — Regression/property suites and microbenchmarks for throughput decisions.
110-
- `CONTRIBUTING.md` & `CHANGELOG.md` — Expectations, workflows, and the evolution log.
105+
- [doc/t81lib-spec-v1.0.0.md](doc/t81lib-spec-v1.0.0.md) — Normative library contract for consumers.
106+
- [doc/design/](doc/design/) — Deep dives on `limb`/`bigint`/`montgomery` internals.
107+
- [docs/index.md](docs/index.md) — A friendly docs portal pointing to specs, examples, and tutorials (great for GitHub Pages).
108+
- [examples/](examples/) — Compileable demos that exercise `limb`, `bigint`, and Montgomery helpers.
109+
- [tests/](tests/) & [bench/](bench/) — Regression/property suites and microbenchmarks for throughput decisions.
110+
- [CONTRIBUTING.md](CONTRIBUTING.md) & [CHANGELOG.md](CHANGELOG.md) — Expectations, workflows, and the evolution log.
111111
112112
## Testing & benchmarks
113113
@@ -120,11 +120,11 @@ Callers can also rely on guard classes for const-time exponent limits.
120120
## Contribution & support
121121
122122
- Open an issue to discuss architecture or API needs.
123-
- Follow `CONTRIBUTING.md` for branching, formatting, and testing workflows.
124-
- Reference `doc/design/` when proposing optimizations to ensure semantic safety.
125-
- Track progress in `CHANGELOG.md` for breaking changes or release notes.
123+
- Follow [CONTRIBUTING.md](CONTRIBUTING.md) for branching, formatting, and testing workflows.
124+
- Reference [doc/design/](doc/design/) when proposing optimizations to ensure semantic safety.
125+
- Track progress in [CHANGELOG.md](CHANGELOG.md) for breaking changes or release notes.
126126
- Security concerns can be reported privately; the repo currently follows a standard disclosure cadence.
127127
128128
## License
129129
130-
`t81lib` is MIT-licensed; see `LICENSE`.
130+
`t81lib` is MIT-licensed; see [LICENSE](LICENSE).

‎bench/bench_t81.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Int random_nonzero_value(std::mt19937_64& rng, std::size_t limbs) {
7171
return value;
7272
}
7373

74-
constexpr std::size_t kCacheSize = 128;
74+
constexpr std::size_t kCacheSize = 64;
7575

7676
template <typename Int>
7777
std::vector<Int> create_random_cache(std::mt19937_64& rng,
@@ -310,7 +310,7 @@ void bench_arithmetic(benchmark::State& state,
310310
}
311311

312312
constexpr std::size_t kBigintLimbs = 3;
313-
constexpr std::size_t kLargeBigintLimbs = 128;
313+
constexpr std::size_t kLargeBigintLimbs = 32;
314314
constexpr std::uint64_t kLargePowExponent = 32;
315315

316316
constexpr std::uint64_t negation_seed(bool bigint) noexcept {

0 commit comments

Comments
 (0)