22 Commits
Author SHA1 Message Date
Nigel Tao 40f39a3ba3 cgen: omit "x ~mod+= y ~mod* 0" 2026-06-19 20:28:56 +10:00
Patrick Georgi f563f32f82 Add SPDX identifier to license headers
SPDX is an ISO standard for describing licenses in a computer readable
format, which is useful when applying license compliance tools and the
like to source code.

In addition to ensuring that the Wuffs C distribution is properly
annotated to the benefit of projects using Wuffs and SPDX-supporting
tools, add it everywhere else where there's a license in this repo for
consistency, too.
2023-10-06 20:52:36 +02:00
Nigel Tao 74a6ea2fcd all: relicense from Apache2 to dual Apache2/MIT
The LICENSE has changed from a single license (Apache2) to a dual
license (Apache2 or MIT, at your option).

If you've previously used Wuffs under the Apache2 license, you are able
to keep doing so. No further action required by you.

The two files listed below (previous releases) are exceptions, as they
are older snapshots, frozen in time. Their license has not changed:
release/c/wuffs-v0.2.c
release/c/wuffs-v0.3.c

Every name in the AUTHORS file, other than Google Inc., has signed
Google's CLA (Contributor License Agreement).
2023-10-06 10:00:59 +11:00
Nigel Tao be1f605108 Run gofmt 2022-08-21 21:41:06 +10:00
Nigel Tao 7ce58b6179 Add IntRange.TryFoo methods 2019-11-03 09:06:08 +11:00
Nigel Tao 8ce3d657ee Add IntRange.ContainsNonNegative 2019-11-02 11:59:22 +11:00
Nigel Tao 29c7b67874 Rename lib/interval's split2Ways variables 2019-11-02 11:55:45 +11:00
Nigel Tao d90ad9d282 Tweak lib/interval's split3Ways' return values 2019-11-02 11:52:44 +11:00
Nigel Tao 960a3b76d7 Have lib/interval's split2Ways return emptiness 2019-11-02 11:42:37 +11:00
Nigel Tao 648932e0fb Add a lib/interval sharedEmptyRange global 2019-11-02 11:32:54 +11:00
Nigel Tao 3b56ace877 Rename lib/interval's makeEmptyRange 2019-11-02 11:28:46 +11:00
Nigel Tao 194aaa0a7b Remove a few IntRange.{And,Or} allocations 2019-11-01 23:02:02 +11:00
Nigel Tao 2ab322ee44 Cache lib/interval's small bit-masks 2019-11-01 22:38:00 +11:00
Nigel Tao 6a9a3abd24 Let IntRange's And and Or handle negative values 2019-11-01 22:20:21 +11:00
Nigel Tao 607bd735b4 Have IntRange methods return distinct *big.Int's 2019-11-01 14:04:23 +11:00
Nigel Tao 5672e7f0a6 Add IntRange.Unite and IntRange.Intersect 2019-10-31 09:30:20 +11:00
Nigel Tao de807374d2 Have lib/interval use [m ..= n] syntax 2019-10-30 16:43:52 +11:00
Nigel Tao d501daddc3 Rename [i..j] to [i ..= j], the same as Rust 2019-10-12 18:40:53 +11:00
Nigel Tao 49ab667a4d Add comment separating the copyright notice 2019-03-16 14:04:14 +11:00
Nigel Tao 705a84723a For "x shift y", check that y < (x's bit-size) 2019-01-26 16:51:49 +11:00
Nigel Tao 20e82ba97b Use interval.IntRange instead of ast.Bounds 2018-12-26 14:02:34 +11:00
Nigel Tao 98b2aa9837 Move some Go packages from lang/foo to lib/foo 2018-08-04 09:17:08 +10:00