| 3255 | error &= 0x0f; |
| 3256 | |
| 3257 | void CellEngine::n_farble() |
| 3258 | { |
| 3259 | QUAD *front = (QUAD *)frontMem; |
| 3260 | QUAD *back = (QUAD *)(backMem + |
| 3261 | (backBorder - 1) + |
| 3262 | ((backBorder - 1) * backRowBytes)); |
| 3263 | long backline = backRowBytes >> 2; |
| 3264 | long backstride = backline - ((width >> 2) + 1); |
| 3265 | long frontstride = (screenRowBytes >> 2) - (width >> 2); |
| 3266 | long xsteps = width >> 2; |
| 3267 | long yy; |
| 3268 | |
| 3269 | total = 0; |
| 3270 | |
| 3271 | for (yy = height; |
| 3272 | yy > 0; |
| 3273 | back += backstride, |
| 3274 | front += frontstride, |
| 3275 | yy--) { |
| 3276 | register QUAD b1, b2; |
| 3277 | register QUAD c1, c2; |
| 3278 | register QUAD d1, d2; |
| 3279 | long error = 0; |
| 3280 | long xx; |
| 3281 | |
| 3282 | b2 = back[0]; |
| 3283 | c2 = back[backline]; |
| 3284 | d2 = back[backline << 1]; |
| 3285 | back++; |
| 3286 | |
| 3287 | for (xx = xsteps; |
| 3288 | xx > 0; |
| 3289 | xx--) { |
| 3290 | long result, cells = 0; |
| 3291 | |
| 3292 | b1 = b2; b2 = back[0]; |
| 3293 | c1 = c2; c2 = back[backline]; |
| 3294 | d1 = d2; d2 = back[backline << 1]; |
| 3295 | back++; |
| 3296 | |
| 3297 | FARBLE( BYTE0(b1), BYTE1(b1), BYTE2(b1), |
| 3298 | BYTE0(c1), BYTE1(c1), BYTE2(c1), |
| 3299 | BYTE0(d1), BYTE1(d1), BYTE2(d1) ); |
| 3300 | total += result; |
| 3301 | SETBYTE0(cells, result); |
| 3302 | |
| 3303 | FARBLE( BYTE1(b1), BYTE2(b1), BYTE3(b1), |
| 3304 | BYTE1(c1), BYTE2(c1), BYTE3(c1), |
| 3305 | BYTE1(d1), BYTE2(d1), BYTE3(d1) ); |
| 3306 | total += result; |
| 3307 | SETBYTE1(cells, result); |
| 3308 | |
| 3309 | FARBLE( BYTE2(b1), BYTE3(b1), BYTE0(b2), |
| 3310 | BYTE2(c1), BYTE3(c1), BYTE0(c2), |
| 3311 | BYTE2(d1), BYTE3(d1), BYTE0(d2) ); |
| 3312 | total += result; |
| 3313 | SETBYTE2(cells, result); |
| 3314 |
nothing calls this directly
no outgoing calls
no test coverage detected