@@ -46,9 +46,9 @@ macro_rules! ijon_inc {
46
46
static mut loc: u32 = 0 ;
47
47
if loc == 0 {
48
48
let cfile = std:: ffi:: CString :: new( file!( ) ) . unwrap( ) ;
49
- loc = ijon_hashstr( line!( ) , cfile. as_ptr( ) ) ;
49
+ loc = afl :: ijon_hashstr( line!( ) , cfile. as_ptr( ) ) ;
50
50
}
51
- ijon_inc( loc, $x)
51
+ afl :: ijon_inc( loc, $x)
52
52
} ;
53
53
} } ;
54
54
}
@@ -60,9 +60,9 @@ macro_rules! ijon_max {
60
60
static mut loc: u32 = 0 ;
61
61
if loc == 0 {
62
62
let cfile = std:: ffi:: CString :: new( file!( ) ) . unwrap( ) ;
63
- loc = ijon_hashstr( line!( ) , cfile. as_ptr( ) ) ;
63
+ loc = afl :: ijon_hashstr( line!( ) , cfile. as_ptr( ) ) ;
64
64
}
65
- ijon_max_variadic( _IJON_LOC_CACHE, $( $x) ,+, 0u64 )
65
+ afl :: ijon_max_variadic( _IJON_LOC_CACHE, $( $x) ,+, 0u64 )
66
66
} ;
67
67
} } ;
68
68
}
@@ -74,9 +74,9 @@ macro_rules! ijon_min {
74
74
static mut loc: u32 = 0 ;
75
75
if loc == 0 {
76
76
let cfile = std:: ffi:: CString :: new( file!( ) ) . unwrap( ) ;
77
- loc = ijon_hashstr( line!( ) , cfile. as_ptr( ) ) ;
77
+ loc = afl :: ijon_hashstr( line!( ) , cfile. as_ptr( ) ) ;
78
78
}
79
- ijon_min_variadic( loc, $( $x) ,+, 0u64 )
79
+ afl :: ijon_min_variadic( loc, $( $x) ,+, 0u64 )
80
80
} ;
81
81
} } ;
82
82
}
@@ -88,43 +88,43 @@ macro_rules! ijon_set {
88
88
static mut loc: u32 = 0 ;
89
89
if loc == 0 {
90
90
let cfile = std:: ffi:: CString :: new( file!( ) ) . unwrap( ) ;
91
- loc = ijon_hashstr( line!( ) , cfile. as_ptr( ) ) ;
91
+ loc = afl :: ijon_hashstr( line!( ) , cfile. as_ptr( ) ) ;
92
92
}
93
- ijon_set( loc, $x)
93
+ afl :: ijon_set( loc, $x)
94
94
} ;
95
95
} } ;
96
96
}
97
97
98
98
#[ macro_export]
99
99
macro_rules! ijon_state {
100
100
( $n: expr) => {
101
- unsafe { ijon_xor_state( $n) }
101
+ unsafe { afl :: ijon_xor_state( $n) }
102
102
} ;
103
103
}
104
104
105
105
#[ macro_export]
106
106
macro_rules! ijon_ctx {
107
107
( $x: expr) => { {
108
108
let cfile = std:: ffi:: CString :: new( file!( ) ) . unwrap( ) ;
109
- let hash = unsafe { ijon_hashstr( line!( ) , cfile. as_ptr( ) ) } ;
110
- unsafe { ijon_xor_state( hash) } ;
109
+ let hash = unsafe { afl :: ijon_hashstr( line!( ) , cfile. as_ptr( ) ) } ;
110
+ unsafe { afl :: ijon_xor_state( hash) } ;
111
111
let temp = $x;
112
- unsafe { ijon_xor_state( hash) } ;
112
+ unsafe { afl :: ijon_xor_state( hash) } ;
113
113
temp
114
114
} } ;
115
115
}
116
116
117
117
#[ macro_export]
118
118
macro_rules! ijon_max_at {
119
119
( $addr: expr, $x: expr) => {
120
- unsafe { ijon_max( $addr, $x) }
120
+ unsafe { afl :: ijon_max( $addr, $x) }
121
121
} ;
122
122
}
123
123
124
124
#[ macro_export]
125
125
macro_rules! ijon_min_at {
126
126
( $addr: expr, $x: expr) => {
127
- unsafe { ijon_min( $addr, $x) }
127
+ unsafe { afl :: ijon_min( $addr, $x) }
128
128
} ;
129
129
}
130
130
@@ -139,8 +139,8 @@ macro_rules! _ijon_abs_dist {
139
139
macro_rules! ijon_bits {
140
140
( $x: expr) => {
141
141
unsafe {
142
- ijon_set( ijon_hashint(
143
- ijon_hashstack( ) ,
142
+ afl :: ijon_set( afl :: ijon_hashint(
143
+ afl :: ijon_hashstack( ) ,
144
144
if $x == 0 {
145
145
0
146
146
} else {
@@ -154,16 +154,16 @@ macro_rules! ijon_bits {
154
154
#[ macro_export]
155
155
macro_rules! ijon_strdist {
156
156
( $x: expr, $y: expr) => {
157
- unsafe { ijon_set( ijon_hashint( ijon_hashstack( ) , ijon_strdist( $x, $y) ) ) }
157
+ unsafe { afl :: ijon_set( afl :: ijon_hashint( afl :: ijon_hashstack( ) , afl :: ijon_strdist( $x, $y) ) ) }
158
158
} ;
159
159
}
160
160
161
161
#[ macro_export]
162
162
macro_rules! ijon_dist {
163
163
( $x: expr, $y: expr) => {
164
164
unsafe {
165
- ijon_set( ijon_hashint(
166
- ijon_hashstack( ) ,
165
+ afl :: ijon_set( afl :: ijon_hashint(
166
+ afl :: ijon_hashstack( ) ,
167
167
$crate:: _ijon_abs_dist!( $x, $y) ,
168
168
) )
169
169
}
@@ -173,7 +173,7 @@ macro_rules! ijon_dist {
173
173
#[ macro_export]
174
174
macro_rules! ijon_cmp {
175
175
( $x: expr, $y: expr) => {
176
- unsafe { ijon_inc( ijon_hashint( ijon_hashstack( ) , ( $x ^ $y) . count_ones( ) ) ) }
176
+ unsafe { afl :: ijon_inc( afl :: ijon_hashint( afl :: ijon_hashstack( ) , ( $x ^ $y) . count_ones( ) ) ) }
177
177
} ;
178
178
}
179
179
@@ -184,9 +184,9 @@ macro_rules! ijon_stack_max {
184
184
static mut loc: u32 = 0 ;
185
185
if loc == 0 {
186
186
let cfile = std:: ffi:: CString :: new( file!( ) ) . unwrap( ) ;
187
- loc = ijon_hashstr( line!( ) , cfile. as_ptr( ) ) ;
187
+ loc = afl :: ijon_hashstr( line!( ) , cfile. as_ptr( ) ) ;
188
188
}
189
- ijon_max( ijon_hashint( loc, ijon_hashstack( ) ) , $x)
189
+ afl :: ijon_max( afl :: ijon_hashint( loc, afl :: ijon_hashstack( ) ) , $x)
190
190
} ;
191
191
} } ;
192
192
}
@@ -198,9 +198,9 @@ macro_rules! ijon_stack_min {
198
198
static mut loc: u32 = 0 ;
199
199
if loc == 0 {
200
200
let cfile = std:: ffi:: CString :: new( file!( ) ) . unwrap( ) ;
201
- loc = ijon_hashstr( line!( ) , cfile. as_ptr( ) ) ;
201
+ loc = afl :: ijon_hashstr( line!( ) , cfile. as_ptr( ) ) ;
202
202
}
203
- ijon_min( ijon_hashint( loc, ijon_hashstack( ) ) , $x)
203
+ afl :: ijon_min( afl :: ijon_hashint( loc, afl :: ijon_hashstack( ) ) , $x)
204
204
} ;
205
205
} } ;
206
206
}
0 commit comments