#include <mod128.h>
List of all members.
Detailed Description
Definition at line 29 of file mod128.h.
Constructor & Destructor Documentation
Definition at line 65 of file mod128.cpp.
{
int high, low, current;
low = 0;
if (fc.y () == 0) {
if (fc.x () >= 0)
dir = 0;
else
dir = MODULUS / 2;
return;
}
high = MODULUS;
do {
current = (high + low) / 2;
if (dirtab[current] * fc >= 0)
low = current;
else
high = current;
}
while (high - low > 1);
dir = low;
}
Member Function Documentation
DIR128 DIR128::operator+ |
( |
const DIR128 & |
add | ) |
const [inline] |
Definition at line 64 of file mod128.h.
{
DIR128 result;
result = dir + add.dir;
return result;
}
Definition at line 72 of file mod128.h.
{
*this = dir + add.dir;
return *this;
}
inT8 DIR128::operator- |
( |
const DIR128 & |
minus | ) |
const [inline] |
The documentation for this class was generated from the following files:
- /usr/local/google/home/jbreiden/tesseract-ocr-read-only/ccstruct/mod128.h
- /usr/local/google/home/jbreiden/tesseract-ocr-read-only/ccstruct/mod128.cpp