Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.
/ unrar-patch Public archive

Simple patch to enable x86/ARM SIMD in GCC/Clang for unrar

Notifications You must be signed in to change notification settings

animetosho/unrar-patch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

UnRAR 7.0 includes modifications which makes this patch (largely) obsolete. It is recommended that you use UnRAR 7.0 instead of this patch.

This repository is left for historical reference (or if you need a build for Windows on ARM). Original README follows.


UnRAR includes SSE code to speed up AES/RS16/BLAKE2 computation, however it’s only enabled for Windows x86/x64 builds.

This repository provides a quick-n-dirty patch to enable the SSE code to compile in GCC/Clang, which allows these speed ups to be present in non-Windows builds. UnRAR also includes AES acceleration code for ARM, but it isn’t enabled by default. This patch also enables this acceleration.

The releases page hosts MacOS and static Linux builds for x64/ARM64 platforms, plus Windows ARM64.

See the original UnRAR page for more info on UnRAR.

Building

If you prefer, you can build this patched unrar with the following commands:

wget https://www.rarlab.com/rar/unrarsrc-6.2.10.tar.gz
tar zxf unrarsrc-6.2.10.tar.gz
cd unrar
patch -s -p1 < ../unrar-gcc.patch
#sed -i 's/^CXXFLAGS=/CXXFLAGS=-std=c++11 /' makefile  # if build otherwise fails
make

Note: the unrar-vcx.patch file is for patching the Visual C++ project files (*.vcxproj) for building Windows ARM64 binaries. If you wish to build these, you’ll need to apply both patches. As the .vcxproj files use Windows newlines, you may need to be careful with applying the vcx patch, as Unix tools don’t often like Windows newlines.

About

Simple patch to enable x86/ARM SIMD in GCC/Clang for unrar

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published