Files
haiku-beta6/src/bin/unrar/smallfn.cpp
T
Axel Dörfler 36c5ff54b6 Patch by Ioan Molnar: update unrar from version 3.67 to 3.76 - thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21952 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-08-14 22:45:34 +00:00

24 lines
320 B
C++

#include "rar.hpp"
int ToPercent(Int64 N1,Int64 N2)
{
if (N2<N1)
return(100);
return(ToPercentUnlim(N1,N2));
}
/* allows percent larger than 100 */
int ToPercentUnlim(Int64 N1,Int64 N2)
{
if (N2==0)
return(0);
return(int64to32(N1*100/N2));
}
void RARInitData()
{
InitCRC();
ErrHandler.Clean();
}