bitunion.hh (4681:5a8ff2219a2f) | bitunion.hh (4698:88acffc31e4a) |
---|---|
1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 274 unchanged lines hidden (view full) --- 283//technical reasons. If someone determines a way to move them to one, please 284//do so. 285#define EndSubBitUnion(name) \ 286 }; \ 287 inline operator const __DataType () \ 288 { return __data; } \ 289 \ 290 inline const __DataType operator = (const __DataType & _data) \ | 1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 274 unchanged lines hidden (view full) --- 283//technical reasons. If someone determines a way to move them to one, please 284//do so. 285#define EndSubBitUnion(name) \ 286 }; \ 287 inline operator const __DataType () \ 288 { return __data; } \ 289 \ 290 inline const __DataType operator = (const __DataType & _data) \ |
291 { __data = _data; } \ | 291 { return __data = _data;} \ |
292 } name; 293 294//Regular bitfields 295//These define macros for read/write regular bitfield based subbitfields. 296#define SubBitUnion(name, first, last) \ 297 __SubBitUnion(Bitfield, first, last, name) 298 299//Regular bitfields --- 14 unchanged lines hidden --- | 292 } name; 293 294//Regular bitfields 295//These define macros for read/write regular bitfield based subbitfields. 296#define SubBitUnion(name, first, last) \ 297 __SubBitUnion(Bitfield, first, last, name) 298 299//Regular bitfields --- 14 unchanged lines hidden --- |