Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.14
 
1.15
 
MAIN:ragge:20110605102909
 
local.c
_>256256         cerror("spalloc");
 257257 }
 258258 
<>259 -static int inbits, inval;
 260 -
 261 -/*
 262 - * set fsz bits in sequence to zero.
 263 - */
 264 -void
 265 -zbits(OFFSZ off, int fsz)
 266 -{
 267 -        int m;
 268 -
 269 -        if (idebug)
 270 -                printf("zbits off %lld, fsz %d inbits %d\n", off, fsz, inbits);
 271 -        if ((m = (inbits % SZCHAR))) {
 272 -                m = SZCHAR - m;
 273 -                if (fsz < m) {
 274 -                        inbits += fsz;
 275 -                        return;
 276 -                } else {
 277 -                        fsz -= m;
 278 -                        printf("\t.byte %d\n", inval);
 279 -                        inval = inbits = 0;
 280 -                }
 281 -        }
 282 -        if (fsz >= SZCHAR) {
 283 -                printf("\t.space %d\n", fsz/SZCHAR);
 284 -                fsz -= (fsz/SZCHAR) * SZCHAR;
 285 -        }
 286 -        if (fsz) {
 287 -                inval = 0;
 288 -                inbits = fsz;
 289 -        }
 290 -}
 291 -
 292 -/*
 293 - * Initialize a bitfield.
 294 - */
 295 -void
 296 -infld(CONSZ off, int fsz, CONSZ val)
 297 -{
 298 -        if (idebug)
 299 -                printf("infld off %lld, fsz %d, val %lld inbits %d\n",
 300 -                    off, fsz, val, inbits);
 301 -        val &= ((CONSZ)1 << fsz)-1;
 302 -        while (fsz + inbits >= SZCHAR) {
 303 -                inval |= (val << inbits);
 304 -                printf("\t.byte %d\n", inval & 255);
 305 -                fsz -= (SZCHAR - inbits);
 306 -                val >>= (SZCHAR - inbits);
 307 -                inval = inbits = 0;
 308 -        }
 309 -        if (fsz) {
 310 -                inval |= (val << inbits);
 311 -                inbits += fsz;
 312 -        }
 313 -}
 314 -
 315 -
<_316259 char *
 317260 exname( p ) char *p; {
 318261         /* make a name look like an external name in the local machine */
FishEye: Open Source License registered to PCC.
Your maintenance has expired. You can renew your license at http://www.atlassian.com/fisheye/renew
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-09-22 16:16 +0200