Lines Matching refs:mask
39 /* mask indicates the bits to be cleared (the status bit that */
40 /* corresponds to each 1 bit in the mask is cleared) */
45 U_CAPI decContext * U_EXPORT2 uprv_decContextClearStatus(decContext *context, uInt mask) {
46 context->status&=~mask;
149 /* mask indicates the bits to be restored (the status bit that */
150 /* corresponds to each 1 bit in the mask is set to the value of */
157 uInt newstatus, uInt mask) {
158 context->status&=~mask; /* clear the selected bits */
159 context->status|=(mask&newstatus); /* or in the new bits */
167 /* mask indicates the bits to be saved (the status bits that */
168 /* correspond to each 1 bit in the mask are saved) */
169 /* returns the AND of the mask and the current status */
173 U_CAPI uInt U_EXPORT2 uprv_decContextSaveStatus(decContext *context, uInt mask) {
174 return context->status&mask;
394 /* mask indicates the bits to be tested (the oldstatus bits that */
395 /* correspond to each 1 bit in the mask are tested) */
400 U_CAPI uInt U_EXPORT2 uprv_decContextTestSavedStatus(uInt oldstatus, uInt mask) {
401 return (oldstatus&mask)!=0;
408 /* mask indicates the bits to be tested (the status bits that */
409 /* correspond to each 1 bit in the mask are tested) */
414 U_CAPI uInt U_EXPORT2 uprv_decContextTestStatus(decContext *context, uInt mask) {
415 return (context->status&mask)!=0;