Releases: cockroachdb/apd
Releases · cockroachdb/apd
v3.2.1
v3.2.0
What's Changed
- apd: add go 1.19 testing to CI by @nvanbenschoten in #126
- apd: add go 1.20 testing to CI by @nvanbenschoten in #127
- format: format 0E-x where x > 6 like PostgreSQL does by @otan in #128
Full Changelog: v3.1.2...v3.2.0
v3.1.2
What's Changed
- apd: Improve string conversion efficiency by @miretskiy in #125
New Contributors
- @miretskiy made their first contribution in #125
Full Changelog: v3.1.1...v3.1.2
v3.1.1
What's Changed
- apd: disable staticcheck on Go 1.16 and earlier by @nvanbenschoten in #117
- apd: add go 1.18 testing to CI by @nvanbenschoten in #118
- apd: remove some allocs from Decimal.setString by @josharian in #116
- apd: add inline fast-path to BigInt.SetString by @nvanbenschoten in #119
- apd: drop github.com/pkg/errors by @nvanbenschoten in #124
New Contributors
- @josharian made their first contribution in #116
Full Changelog: v3.1.0...v3.1.1
v3.1.0
What's Changed
- apd: optimize Quo, remove per-digit long division by @nvanbenschoten in #114
- apd: don't strip trailing zeros in Quo and Sqrt by @nvanbenschoten in #115
Full Changelog: v3.0.1...v3.1.0
v3.0.1
What's Changed
- apd: avoid function calls on hot paths by @nvanbenschoten in #112
Full Changelog: v3.0.0...v3.0.1
v3.0.0
Breaking Changes
The Decimal.Coeff
field's type has changed from a math/big.Int
to a new apd.BigInt
type. This allows the library to embed small coefficients into the Decimal
struct directly, instead of requiring a separate heap allocation and indirection.
What's Changed
- apd: add decomposer interface methods by @kardianos in #88
- add some linting to travis by @mjibson in #92
- apd: update decomposer methods to use big-endian coefficent by @kardianos in #93
- apd: perform CI using GitHub Actions by @nvanbenschoten in #106
- apd: prevent (*Decimal).Int64 receiver from escaping to heap by @nvanbenschoten in #104
- apd: embed small coefficient values in Decimal struct by @nvanbenschoten in #103
- apd: add apd.BigInt / math/big.Int interop methods by @nvanbenschoten in #108
- apd: tune performance by inlining function calls and manually unrolling loops by @nvanbenschoten in #107
- apd: add inline fast-path to BigInt.Format by @nvanbenschoten in #109
- apd: support and test 32-bit architectures and ARM architectures by @nvanbenschoten in #110
- apd: use gcassert to check that tmp big.Ints don't escape, add to CI by @nvanbenschoten in #111
Full Changelog: v2.0.2...v3.0.0
v2.0.2
v2.0.1: Merge pull request #85 from cockroachdb/mjibson-patch-1
- Use go.mod tag.
Version 2.0.0
- NewWithBigInt now correctly handles negative big.Ints.
- SetExponent and SetCoefficient have been removed in favor of SetFinite. Now all Set methods set all fields of Decimal.
Due to the breaking API changes above the major version has been bumped.