unrarsrc  6.1.7
About: unrar extracts, views and tests the contents of archives created with the RAR archiver.
  Fossies Dox: unrarsrc-6.1.7.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

smallfn.cpp
Go to the documentation of this file.
1#include "rar.hpp"
2
4{
5 if (N2<N1)
6 return 100;
7 return ToPercentUnlim(N1,N2);
8}
9
10
11// Allows the percent larger than 100.
13{
14 if (N2==0)
15 return 0;
16 return (int)(N1*100/N2);
17}
18
19
int64_t int64
Definition: rartypes.hpp:12
int ToPercentUnlim(int64 N1, int64 N2)
Definition: smallfn.cpp:12
int ToPercent(int64 N1, int64 N2)
Definition: smallfn.cpp:3