Changeset 0c834c5 in buchla-68k for ram/libdsp.c
- Timestamp:
- 07/08/2017 05:56:38 PM (7 years ago)
- Branches:
- master
- Children:
- 60288f5
- Parents:
- 342a56f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ram/libdsp.c
r342a56f r0c834c5 56 56 57 57 /* things defined elsewhere */ 58 59 extern void (*point)(short x, short y, short pen); 58 60 59 61 extern void vbfill4(unsigned *obj, short obwidth, short xmin, short ymin, short xmax, short ymax, unsigned color); … … 297 299 unsigned exp_c(unsigned c) 298 300 { 299 c x&= 0x000F; /* use low 4 bits as the basis */300 c x |= cx<< 4; /* turn them into 8 bits */301 c x |= cx<< 8; /* make it a full 16 bits */302 303 return(c x);301 c &= 0x000F; /* use low 4 bits as the basis */ 302 c |= c << 4; /* turn them into 8 bits */ 303 c |= c << 8; /* make it a full 16 bits */ 304 305 return(c); 304 306 } 305 307
Note:
See TracChangeset
for help on using the changeset viewer.