rar: import unrarsrc-5.5.8 for reference

this will allow us to diff against newer version of unrarsrc if we wish to update our port
This commit is contained in:
coderb
2017-12-17 17:52:00 -05:00
parent cc175da0d8
commit e13795651d
154 changed files with 29882 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
#include "rar.hpp"
int ToPercent(int64 N1,int64 N2)
{
if (N2<N1)
return 100;
return ToPercentUnlim(N1,N2);
}
// Allows the percent larger than 100.
int ToPercentUnlim(int64 N1,int64 N2)
{
if (N2==0)
return 0;
return (int)(N1*100/N2);
}