1 // @(#) From generation tool: JudyTablesGen.c
2 //
3 
4 #include "Judy1.h"
5 // Leave the malloc() sizes readable in the binary (via strings(1)):
6 const char * Judy1MallocSizes = "Judy1MallocSizes = 3, 5, 7, 11, 15, 23, 32, 47, 64, Leaf1 = 20";
7 
8 
9 //	object uses 64 words
10 //	cJU_BITSPERSUBEXPB = 32
11 const uint8_t
12 j__1_BranchBJPPopToWords[cJU_BITSPERSUBEXPB + 1] =
13 {
14 	 0,
15 	 3,  5,  7, 11, 11, 15, 15, 23,
16 	23, 23, 23, 32, 32, 32, 32, 32,
17 	47, 47, 47, 47, 47, 47, 47, 64,
18 	64, 64, 64, 64, 64, 64, 64, 64
19 };
20 
21 //	object uses 5 words
22 //	cJ1_LEAF1_MAXPOP1 = 20
23 const uint8_t
24 j__1_Leaf1PopToWords[cJ1_LEAF1_MAXPOP1 + 1] =
25 {
26 	 0,
27 	 3,  3,  3,  3,  3,  3,  3,  3,
28 	 3,  3,  3,  3,  5,  5,  5,  5,
29 	 5,  5,  5,  5
30 };
31 
32 //	object uses 32 words
33 //	cJ1_LEAF2_MAXPOP1 = 64
34 const uint8_t
35 j__1_Leaf2PopToWords[cJ1_LEAF2_MAXPOP1 + 1] =
36 {
37 	 0,
38 	 3,  3,  3,  3,  3,  3,  5,  5,
39 	 5,  5,  7,  7,  7,  7, 11, 11,
40 	11, 11, 11, 11, 11, 11, 15, 15,
41 	15, 15, 15, 15, 15, 15, 23, 23,
42 	23, 23, 23, 23, 23, 23, 23, 23,
43 	23, 23, 23, 23, 23, 23, 32, 32,
44 	32, 32, 32, 32, 32, 32, 32, 32,
45 	32, 32, 32, 32, 32, 32, 32, 32
46 };
47 
48 //	object uses 32 words
49 //	cJ1_LEAF3_MAXPOP1 = 42
50 const uint8_t
51 j__1_Leaf3PopToWords[cJ1_LEAF3_MAXPOP1 + 1] =
52 {
53 	 0,
54 	 3,  3,  3,  3,  5,  5,  7,  7,
55 	 7, 11, 11, 11, 11, 11, 15, 15,
56 	15, 15, 15, 15, 23, 23, 23, 23,
57 	23, 23, 23, 23, 23, 23, 32, 32,
58 	32, 32, 32, 32, 32, 32, 32, 32,
59 	32, 32
60 };
61 
62 //	object uses 32 words
63 //	cJ1_LEAFW_MAXPOP1 = 31
64 const uint8_t
65 j__1_LeafWPopToWords[cJ1_LEAFW_MAXPOP1 + 1] =
66 {
67 	 0,
68 	 3,  3,  5,  5,  7,  7, 11, 11,
69 	11, 11, 15, 15, 15, 15, 23, 23,
70 	23, 23, 23, 23, 23, 23, 32, 32,
71 	32, 32, 32, 32, 32, 32, 32
72 };
73