mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 16:47:28 +01:00
std/xz: support BCJ start option
This commit is contained in:
1 parent
6f4db1b138
commit
782e78a689
7 files changed
+62
-23
No files matched your search
@@ -47,6 +47,7 @@ OK. 00000000 test/3pdata/xzsuite/good-0catpad-empty.xz
|
||||
OK. 00000000 test/3pdata/xzsuite/good-0pad-empty.xz
|
||||
OK. db4847fb test/3pdata/xzsuite/good-1-3delta-lzma2.xz
|
||||
OK. d4e17ca0 test/3pdata/xzsuite/good-1-arm64-lzma2-1.xz
|
||||
OK. d4e17ca0 test/3pdata/xzsuite/good-1-arm64-lzma2-2.xz
|
||||
OK. 15a2a343 test/3pdata/xzsuite/good-1-block_header-1.xz
|
||||
OK. 15a2a343 test/3pdata/xzsuite/good-1-block_header-2.xz
|
||||
OK. 15a2a343 test/3pdata/xzsuite/good-1-block_header-3.xz
|
||||
|
||||
@@ -20,6 +20,7 @@ import (
|
||||
"hash/crc32"
|
||||
"os"
|
||||
"os/exec"
|
||||
"strings"
|
||||
)
|
||||
|
||||
func main() {
|
||||
@@ -41,6 +42,7 @@ func main1() error {
|
||||
{"05", "powerpc", genPowerpc},
|
||||
{"06", "ia64", genIa64},
|
||||
{"07", "arm", genArm},
|
||||
{"07", "arm=start=1000", genArm},
|
||||
{"08", "armthumb", genArmthumb},
|
||||
{"09", "sparc", genSparc},
|
||||
{"0a", "arm64", genArm64},
|
||||
@@ -51,7 +53,7 @@ func main1() error {
|
||||
filename := fmt.Sprintf("xz-filter-%s-%08x-%s.dat",
|
||||
recipe.filterID,
|
||||
crc32.ChecksumIEEE(contents),
|
||||
recipe.filterName)
|
||||
strings.Replace(recipe.filterName, "=", "_", -1))
|
||||
if err := os.WriteFile(filename, contents, 0644); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -10,6 +10,7 @@ OK. 6ddef9db test/data/artificial-bzip2/huffman-258.bz2
|
||||
OK. fa3907fb test/data/artificial-xz-filter/xz-filter-05-fa3907fb-powerpc.dat.xz
|
||||
OK. e147593e test/data/artificial-xz-filter/xz-filter-06-e147593e-ia64.dat.xz
|
||||
OK. 9a3fb8ae test/data/artificial-xz-filter/xz-filter-07-9a3fb8ae-arm.dat.xz
|
||||
OK. 9a3fb8ae test/data/artificial-xz-filter/xz-filter-07-9a3fb8ae-arm_start_1000.dat.xz
|
||||
OK. 84e8999d test/data/artificial-xz-filter/xz-filter-08-84e8999d-armthumb.dat.xz
|
||||
OK. 0353bd24 test/data/artificial-xz-filter/xz-filter-09-0353bd24-sparc.dat.xz
|
||||
OK. dfdb871b test/data/artificial-xz-filter/xz-filter-0a-dfdb871b-arm64.dat.xz
|
||||
|
||||
Reference in new issue
Block a user