… | |
… | |
179 | function can be used to implement C<ecb_assume> or similar functions. |
179 | function can be used to implement C<ecb_assume> or similar functions. |
180 | |
180 | |
181 | =item bool ecb_prefetch (addr, rw, locality) [MACRO] |
181 | =item bool ecb_prefetch (addr, rw, locality) [MACRO] |
182 | |
182 | |
183 | Tells the compiler to try to prefetch memory at the given C<addr>ess |
183 | Tells the compiler to try to prefetch memory at the given C<addr>ess |
184 | for either reading (c<rw> = 0) or writing (C<rw> = 1). A C<locality> of |
184 | for either reading (C<rw> = 0) or writing (C<rw> = 1). A C<locality> of |
185 | C<0> means that there will only be one access later, C<3> means that |
185 | C<0> means that there will only be one access later, C<3> means that |
186 | the data will likely be accessed very often, and values in between mean |
186 | the data will likely be accessed very often, and values in between mean |
187 | something... in between. The memory pointed to by the address does not |
187 | something... in between. The memory pointed to by the address does not |
188 | need to be accessible (it could be a null pointer for example), but C<rw> |
188 | need to be accessible (it could be a null pointer for example), but C<rw> |
189 | and C<locality> must be compile-time constants. |
189 | and C<locality> must be compile-time constants. |