c0d85ec8578db1a826afb1be45d1b00da53cb22d
[nit.git] / c_src / standard___hash._sep.c
1 /* This C file is generated by NIT to compile module standard___hash. */
2 #include "standard___hash._sep.h"
3 static const char LOCATE_standard___hash___Object___hash[] = "hash::Object::hash";
4 val_t standard___hash___Object___hash(val_t p0){
5 struct {struct stack_frame_t me;} fra;
6 val_t REGB0;
7 val_t REGB1;
8 val_t tmp;
9 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
10 fra.me.file = LOCATE_standard___hash;
11 fra.me.line = 20;
12 fra.me.meth = LOCATE_standard___hash___Object___hash;
13 fra.me.has_broke = 0;
14 fra.me.REG_size = 1;
15 fra.me.nitni_local_ref_head = NULL;
16 fra.me.REG[0] = NIT_NULL;
17 fra.me.REG[0] = p0;
18 /* ../lib/standard/hash.nit:24 */
19 REGB0 = CALL_standard___kernel___Object___object_id(fra.me.REG[0])(fra.me.REG[0]);
20 REGB1 = TAG_Int(8);
21 /* ../lib/standard/kernel.nit:242 */
22 REGB1 = TAG_Int(UNTAG_Int(REGB0)/UNTAG_Int(REGB1));
23 /* ../lib/standard/hash.nit:24 */
24 goto label1;
25 label1: while(0);
26 stack_frame_head = fra.me.prev;
27 return REGB1;
28 }
29 static const char LOCATE_standard___hash___Int___hash[] = "hash::Int::(hash::Object::hash)";
30 val_t standard___hash___Int___hash(val_t p0){
31 struct {struct stack_frame_t me;} fra;
32 val_t REGB0;
33 val_t tmp;
34 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
35 fra.me.file = LOCATE_standard___hash;
36 fra.me.line = 28;
37 fra.me.meth = LOCATE_standard___hash___Int___hash;
38 fra.me.has_broke = 0;
39 fra.me.REG_size = 0;
40 fra.me.nitni_local_ref_head = NULL;
41 REGB0 = p0;
42 /* ../lib/standard/hash.nit:28 */
43 goto label1;
44 label1: while(0);
45 stack_frame_head = fra.me.prev;
46 return REGB0;
47 }
48 static const char LOCATE_standard___hash___Char___hash[] = "hash::Char::(hash::Object::hash)";
49 val_t standard___hash___Char___hash(val_t p0){
50 struct {struct stack_frame_t me;} fra;
51 val_t REGB0;
52 val_t tmp;
53 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
54 fra.me.file = LOCATE_standard___hash;
55 fra.me.line = 32;
56 fra.me.meth = LOCATE_standard___hash___Char___hash;
57 fra.me.has_broke = 0;
58 fra.me.REG_size = 0;
59 fra.me.nitni_local_ref_head = NULL;
60 REGB0 = p0;
61 /* ../lib/standard/kernel.nit:416 */
62 REGB0 = TAG_Int((unsigned char)UNTAG_Char(REGB0));
63 /* ../lib/standard/hash.nit:32 */
64 goto label1;
65 label1: while(0);
66 stack_frame_head = fra.me.prev;
67 return REGB0;
68 }
69 static const char LOCATE_standard___hash___Bool___hash[] = "hash::Bool::(hash::Object::hash)";
70 val_t standard___hash___Bool___hash(val_t p0){
71 struct {struct stack_frame_t me;} fra;
72 val_t REGB0;
73 val_t REGB1;
74 val_t tmp;
75 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
76 fra.me.file = LOCATE_standard___hash;
77 fra.me.line = 36;
78 fra.me.meth = LOCATE_standard___hash___Bool___hash;
79 fra.me.has_broke = 0;
80 fra.me.REG_size = 0;
81 fra.me.nitni_local_ref_head = NULL;
82 REGB0 = p0;
83 /* ../lib/standard/hash.nit:38 */
84 if (UNTAG_Bool(REGB0)) {
85 /* ../lib/standard/hash.nit:39 */
86 REGB0 = TAG_Int(1);
87 goto label1;
88 } else {
89 /* ../lib/standard/hash.nit:41 */
90 REGB1 = TAG_Int(0);
91 REGB0 = REGB1;
92 goto label1;
93 }
94 label1: while(0);
95 stack_frame_head = fra.me.prev;
96 return REGB0;
97 }