Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Codecs dir #172

Closed
wants to merge 43 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
672af56
7zip21.07 source code
cielavenir Mar 23, 2022
8315520
convert to CRLF
cielavenir Mar 23, 2022
ca10aa0
dedent to reduce diff
cielavenir Mar 24, 2022
54e9b44
Merge branch 'mirror' into 7zip_21.07
cielavenir Mar 25, 2022
2fe703a
rm -rf to remove dir
cielavenir Mar 31, 2022
e0dfad4
made sure that only single brotli target is built
cielavenir Mar 31, 2022
232e145
splitted additional makefile (for maintenability)
cielavenir Apr 1, 2022
bc6c821
recovered rar
cielavenir Apr 1, 2022
1566f99
Merge branch '7zip_21.07' into CodecsDir
cielavenir Apr 1, 2022
7429de6
rename
cielavenir Apr 1, 2022
3243731
Fixed include path
cielavenir Apr 1, 2022
42f8eb3
use submodule
cielavenir Apr 1, 2022
5958453
optimized makefile
cielavenir Apr 1, 2022
6092daa
add lzham (again)
cielavenir Apr 1, 2022
582f3db
restored hashes
cielavenir Apr 1, 2022
37c82c1
add StormLib
cielavenir Apr 1, 2022
081bc28
enabled pkimplode and zstd on zip
cielavenir Apr 1, 2022
ca81051
add FastLzma2
cielavenir Apr 1, 2022
0fa5ddf
add XXH Reg
cielavenir Apr 1, 2022
e5532e8
update gitignore
cielavenir Apr 1, 2022
0c8826a
fix case
cielavenir Apr 1, 2022
445eb93
Fix for mingw
cielavenir Apr 1, 2022
fe993fc
fix 7zCon filename
cielavenir Mar 28, 2022
08c498d
add makefile for Rar
cielavenir Mar 29, 2022
6cae927
progress
cielavenir Apr 1, 2022
ea25dbc
Fixed mingw compilation
cielavenir Apr 1, 2022
abd53c7
add Zstd so
cielavenir Apr 3, 2022
339c519
add PKImplode so
cielavenir Apr 3, 2022
5943758
add Brotli/FLzma2/Lizard/Lz4/Lz5/Lzham so
cielavenir Apr 3, 2022
19e45c8
made pkimplode optional
cielavenir Apr 4, 2022
0b9bf92
add Md5/Sha512/Xxh64 so
cielavenir Apr 4, 2022
11b7485
cleaned LzhamRegister (to reduce warn)
cielavenir Apr 4, 2022
2e403be
add Lz handler
cielavenir Apr 4, 2022
1a4e078
add blake3
cielavenir Apr 4, 2022
f55d445
export CC and CXX
cielavenir Apr 4, 2022
40b4cba
add uasm support
cielavenir Apr 4, 2022
c69f457
fix clang compilation
cielavenir Apr 4, 2022
37c5b9d
Fixed 7za compilation
cielavenir Apr 4, 2022
ad4b702
Initialize PKImplode only by CreateCoder_Id
cielavenir Apr 4, 2022
0152d64
temp
cielavenir Apr 4, 2022
6399ed4
temp
cielavenir Apr 4, 2022
32c6a1b
temp
cielavenir Apr 4, 2022
d09a677
temp
cielavenir Apr 4, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ _o
zstd_build
lz4_build
brotli_build
lzham_build
27 changes: 27 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[submodule "Codecs/lz4"]
path = Codecs/lz4
url = https://github.com/lz4/lz4.git
[submodule "Codecs/zstd"]
path = Codecs/zstd
url = https://github.com/facebook/zstd.git
[submodule "Codecs/lz5"]
path = Codecs/lz5
url = https://github.com/inikep/lizard.git
[submodule "Codecs/lizard"]
path = Codecs/lizard
url = https://github.com/inikep/lizard.git
[submodule "Codecs/brotli"]
path = Codecs/brotli
url = https://github.com/google/brotli.git
[submodule "Codecs/zstdmt"]
path = Codecs/zstdmt
url = https://github.com/mcmilk/zstdmt.git
[submodule "Codecs/lzham_codec_devel"]
path = Codecs/lzham_codec_devel
url = https://github.com/richgel999/lzham_codec_devel.git
[submodule "Codecs/StormLib"]
path = Codecs/StormLib
url = https://github.com/ladislav-zezula/StormLib.git
[submodule "Codecs/fast-lzma2"]
path = Codecs/fast-lzma2
url = https://github.com/conor42/fast-lzma2.git
200 changes: 100 additions & 100 deletions Asm/arm/7zCrcOpt.asm
Original file line number Diff line number Diff line change
@@ -1,100 +1,100 @@
CODE32

EXPORT |CrcUpdateT4@16|

AREA |.text|, CODE, ARM

MACRO
CRC32_STEP_1

ldrb r4, [r1], #1
subs r2, r2, #1
eor r4, r4, r0
and r4, r4, #0xFF
ldr r4, [r3, +r4, lsl #2]
eor r0, r4, r0, lsr #8

MEND


MACRO
CRC32_STEP_4 $STREAM_WORD

eor r7, r7, r8
eor r7, r7, r9
eor r0, r0, r7
eor r0, r0, $STREAM_WORD
ldr $STREAM_WORD, [r1], #4

and r7, r0, #0xFF
and r8, r0, #0xFF00
and r9, r0, #0xFF0000
and r0, r0, #0xFF000000

ldr r7, [r6, +r7, lsl #2]
ldr r8, [r5, +r8, lsr #6]
ldr r9, [r4, +r9, lsr #14]
ldr r0, [r3, +r0, lsr #22]

MEND


|CrcUpdateT4@16| PROC

stmdb sp!, {r4-r11, lr}
cmp r2, #0
beq |$fin|

|$v1|
tst r1, #7
beq |$v2|
CRC32_STEP_1
bne |$v1|

|$v2|
cmp r2, #16
blo |$v3|

ldr r10, [r1], #4
ldr r11, [r1], #4

add r4, r3, #0x400
add r5, r3, #0x800
add r6, r3, #0xC00

mov r7, #0
mov r8, #0
mov r9, #0

sub r2, r2, #16

|$loop|
; pld [r1, #0x40]

CRC32_STEP_4 r10
CRC32_STEP_4 r11

subs r2, r2, #8
bhs |$loop|

sub r1, r1, #8
add r2, r2, #16

eor r7, r7, r8
eor r7, r7, r9
eor r0, r0, r7

|$v3|
cmp r2, #0
beq |$fin|

|$v4|
CRC32_STEP_1
bne |$v4|

|$fin|
ldmia sp!, {r4-r11, pc}

|CrcUpdateT4@16| ENDP

END
CODE32
EXPORT |CrcUpdateT4@16|
AREA |.text|, CODE, ARM
MACRO
CRC32_STEP_1
ldrb r4, [r1], #1
subs r2, r2, #1
eor r4, r4, r0
and r4, r4, #0xFF
ldr r4, [r3, +r4, lsl #2]
eor r0, r4, r0, lsr #8
MEND
MACRO
CRC32_STEP_4 $STREAM_WORD
eor r7, r7, r8
eor r7, r7, r9
eor r0, r0, r7
eor r0, r0, $STREAM_WORD
ldr $STREAM_WORD, [r1], #4
and r7, r0, #0xFF
and r8, r0, #0xFF00
and r9, r0, #0xFF0000
and r0, r0, #0xFF000000
ldr r7, [r6, +r7, lsl #2]
ldr r8, [r5, +r8, lsr #6]
ldr r9, [r4, +r9, lsr #14]
ldr r0, [r3, +r0, lsr #22]
MEND
|CrcUpdateT4@16| PROC
stmdb sp!, {r4-r11, lr}
cmp r2, #0
beq |$fin|
|$v1|
tst r1, #7
beq |$v2|
CRC32_STEP_1
bne |$v1|
|$v2|
cmp r2, #16
blo |$v3|
ldr r10, [r1], #4
ldr r11, [r1], #4
add r4, r3, #0x400
add r5, r3, #0x800
add r6, r3, #0xC00
mov r7, #0
mov r8, #0
mov r9, #0
sub r2, r2, #16
|$loop|
; pld [r1, #0x40]
CRC32_STEP_4 r10
CRC32_STEP_4 r11
subs r2, r2, #8
bhs |$loop|
sub r1, r1, #8
add r2, r2, #16
eor r7, r7, r8
eor r7, r7, r9
eor r0, r0, r7
|$v3|
cmp r2, #0
beq |$fin|
|$v4|
CRC32_STEP_1
bne |$v4|
|$fin|
ldmia sp!, {r4-r11, pc}
|CrcUpdateT4@16| ENDP
END
Loading