decContext.c (af44da87e926ff64260b95f4350d338c4fc113ca) | decContext.c (67cc32ebfd8c0ee3fcdb26780a8991baf5eb1d45) |
---|---|
1/* Decimal context module for the decNumber C Library. 2 Copyright (C) 2005, 2007 Free Software Foundation, Inc. 3 Contributed by IBM Corporation. Author Mike Cowlishaw. 4 5 This file is part of GCC. 6 7 GCC is free software; you can redistribute it and/or modify it under 8 the terms of the GNU General Public License as published by the Free --- 172 unchanged lines hidden (view full) --- 181 182/* ------------------------------------------------------------------ */ 183/* decContextRestoreStatus -- restore bits in current status */ 184/* */ 185/* context is the context structure to be updated */ 186/* newstatus is the source for the bits to be restored */ 187/* mask indicates the bits to be restored (the status bit that */ 188/* corresponds to each 1 bit in the mask is set to the value of */ | 1/* Decimal context module for the decNumber C Library. 2 Copyright (C) 2005, 2007 Free Software Foundation, Inc. 3 Contributed by IBM Corporation. Author Mike Cowlishaw. 4 5 This file is part of GCC. 6 7 GCC is free software; you can redistribute it and/or modify it under 8 the terms of the GNU General Public License as published by the Free --- 172 unchanged lines hidden (view full) --- 181 182/* ------------------------------------------------------------------ */ 183/* decContextRestoreStatus -- restore bits in current status */ 184/* */ 185/* context is the context structure to be updated */ 186/* newstatus is the source for the bits to be restored */ 187/* mask indicates the bits to be restored (the status bit that */ 188/* corresponds to each 1 bit in the mask is set to the value of */ |
189/* the correspnding bit in newstatus) */ | 189/* the corresponding bit in newstatus) */ |
190/* returns context */ 191/* */ 192/* No error is possible. */ 193/* ------------------------------------------------------------------ */ 194decContext *decContextRestoreStatus(decContext *context, 195 uInt newstatus, uInt mask) { 196 context->status&=~mask; /* clear the selected bits */ 197 context->status|=(mask&newstatus); /* or in the new bits */ --- 236 unchanged lines hidden --- | 190/* returns context */ 191/* */ 192/* No error is possible. */ 193/* ------------------------------------------------------------------ */ 194decContext *decContextRestoreStatus(decContext *context, 195 uInt newstatus, uInt mask) { 196 context->status&=~mask; /* clear the selected bits */ 197 context->status|=(mask&newstatus); /* or in the new bits */ --- 236 unchanged lines hidden --- |