Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.151
 
1.152
 
MAIN:ragge:20110605092304
 
local.c
_>921921         printf("\\0\"\n");
 922922 }
 923923 
<>924 -static int inbits, xinval;
 925 -
926924 /*
<>927 - * set fsz bits in sequence to zero.
 928 - */
 929 -void
 930 -zbits(OFFSZ off, int fsz)
 931 -{
 932 -        int m;
 933 -
 934 -        if (idebug)
 935 -                printf("zbits off %lld, fsz %d inbits %d\n", off, fsz, inbits);
 936 -        if ((m = (inbits % SZCHAR))) {
 937 -                m = SZCHAR - m;
 938 -                if (fsz < m) {
 939 -                        inbits += fsz;
 940 -                        return;
 941 -                } else {
 942 -                        fsz -= m;
 943 -                        printf("\t.byte %d\n", xinval);
 944 -                        xinval = inbits = 0;
 945 -                }
 946 -        }
 947 -        if (fsz >= SZCHAR) {
 948 -#ifdef os_darwin
 949 -                printf("\t.space %d\n", fsz/SZCHAR);
 950 -#else
 951 -                printf("\t.zero %d\n", fsz/SZCHAR);
 952 -#endif
 953 -                fsz -= (fsz/SZCHAR) * SZCHAR;
 954 -        }
 955 -        if (fsz) {
 956 -                xinval = 0;
 957 -                inbits = fsz;
 958 -        }
 959 -}
 960 -
 961 -/*
 962 - * Initialize a bitfield.
 963 - */
 964 -void
 965 -infld(CONSZ off, int fsz, CONSZ val)
 966 -{
 967 -        if (idebug)
 968 -                printf("infld off %lld, fsz %d, val %lld inbits %d\n",
 969 -                    off, fsz, val, inbits);
 970 -        val &= ((CONSZ)1 << fsz)-1;
 971 -        while (fsz + inbits >= SZCHAR) {
 972 -                xinval |= (int)(val << inbits);
 973 -                printf("\t.byte %d\n", xinval & 255);
 974 -                fsz -= (SZCHAR - inbits);
 975 -                val >>= (SZCHAR - inbits);
 976 -                xinval = inbits = 0;
 977 -        }
 978 -        if (fsz) {
 979 -                xinval |= (int)(val << inbits);
 980 -                inbits += fsz;
 981 -        }
 982 -}
 983 -
 984 -/*
<_985925  * print out a constant node, may be associated with a label.
 986926  * Do not free the node after use.
 987927  * off is bit offset from the beginning of the aggregate
FishEye: Open Source License registered to PCC.
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-12-22 20:52 +0100