21 static const int16_t idirtab[] = {
22 1000, 0, 998, 49, 995, 98, 989, 146,
23 980, 195, 970, 242, 956, 290, 941, 336,
24 923, 382, 903, 427, 881, 471, 857, 514,
25 831, 555, 803, 595, 773, 634, 740, 671,
26 707, 707, 671, 740, 634, 773, 595, 803,
27 555, 831, 514, 857, 471, 881, 427, 903,
28 382, 923, 336, 941, 290, 956, 242, 970,
29 195, 980, 146, 989, 98, 995, 49, 998,
30 0, 1000, -49, 998, -98, 995, -146, 989,
31 -195, 980, -242, 970, -290, 956, -336, 941,
32 -382, 923, -427, 903, -471, 881, -514, 857,
33 -555, 831, -595, 803, -634, 773, -671, 740,
34 -707, 707, -740, 671, -773, 634, -803, 595,
35 -831, 555, -857, 514, -881, 471, -903, 427,
36 -923, 382, -941, 336, -956, 290, -970, 242,
37 -980, 195, -989, 146, -995, 98, -998, 49,
38 -1000, 0, -998, -49, -995, -98, -989, -146,
39 -980, -195, -970, -242, -956, -290, -941, -336,
40 -923, -382, -903, -427, -881, -471, -857, -514,
41 -831, -555, -803, -595, -773, -634, -740, -671,
42 -707, -707, -671, -740, -634, -773, -595, -803,
43 -555, -831, -514, -857, -471, -881, -427, -903,
44 -382, -923, -336, -941, -290, -956, -242, -970,
45 -195, -980, -146, -989, -98, -995, -49, -998,
46 0, -1000, 49, -998, 98, -995, 146, -989,
47 195, -980, 242, -970, 290, -956, 336, -941,
48 382, -923, 427, -903, 471, -881, 514, -857,
49 555, -831, 595, -803, 634, -773, 671, -740,
50 707, -707, 740, -671, 773, -634, 803, -595,
51 831, -555, 857, -514, 881, -471, 903, -427,
52 923, -382, 941, -336, 956, -290, 970, -242,
53 980, -195, 989, -146, 995, -98, 998, -49
56 static const ICOORD* dirtab = reinterpret_cast<const ICOORD*>(idirtab);
67 int high, low, current;
79 current = (high + low) / 2;
80 if (dirtab[current] * fc >= 0)
85 while (high - low > 1);