Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '7zip/Compress/Rar29/Original/smallfn.cpp')
-rwxr-xr-x7zip/Compress/Rar29/Original/smallfn.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/7zip/Compress/Rar29/Original/smallfn.cpp b/7zip/Compress/Rar29/Original/smallfn.cpp
new file mode 100755
index 00000000..094691f0
--- /dev/null
+++ b/7zip/Compress/Rar29/Original/smallfn.cpp
@@ -0,0 +1,17 @@
+#include "rar.hpp"
+
+int ToPercent(Int64 N1,Int64 N2)
+{
+ if (N2==0)
+ return(0);
+ if (N2<N1)
+ return(100);
+ return(int64to32(N1*100/N2));
+}
+
+
+void RARInitData()
+{
+ InitCRC();
+ ErrHandler.Clean();
+}