8 Commits
Author SHA1 Message Date
zeekay d99b646920 chore: sync local changes 2026-03-26 22:47:13 -07:00
zeekay d5fafe12e3 chore: bump Go 1.26.0 → 1.26.1
Fixes 5 stdlib CVEs (html/template, os, net/url, crypto/x509 x2).
2026-03-12 01:09:17 -07:00
zeekay 11962a0791 chore: update Go module dependencies 2026-03-03 22:39:12 -08:00
zeekay 573df46084 chore: sync dependencies and format code 2026-02-04 15:43:42 -08:00
zeekay 8165bc28b2 chore: remove local replace directives 2026-01-08 23:44:14 -08:00
zeekay 588df268c4 chore: update go.mod/sum 2026-01-04 19:29:50 -08:00
zeekay c1c86cad08 safe: add DEX math functions for DRY consolidation
Added functions from node/vms/dexvm/math:
- Div64: safe division with error on zero
- MulBig: multiply uint64s returning big.Int
- MulDiv64: (a * b) / c without overflow
- MulDivRoundUp64: ceiling division variant
- BigMulDiv: big.Int multiplication+division
- BigMulDivRoundUp: big.Int ceiling variant
- Clamp: generic ordered type clamping

Also added common big.Int values (bigZero, bigOne, maxUint64Big)
for performance in division operations.
2026-01-03 18:53:26 -08:00
zeekay 0060c0251e Reorganize math package into subpackages
- Create math/big for big.Int utilities (HexOrDecimal256, U256, parsing)
- Create math/safe for overflow-safe arithmetic (SafeAdd, SafeMul, etc.)
- Move averager files to root package level
- Add re-exports in root package for backwards compatibility
- Update README with new package structure documentation
- Remove old math/meter directory (consolidated elsewhere)
- Remove redundant math/ subdirectory structure
2026-01-03 18:22:33 -08:00