decContext.c (7a4e543de6637cda4dcc4a060b9225a863f7c721) | decContext.c (21d7826fdbf13bc3180f8f23f3f87967604fdf7e) |
---|---|
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 --- 39 unchanged lines hidden (view full) --- 48#endif 49 50/* ------------------------------------------------------------------ */ 51/* round-for-reround digits */ 52/* ------------------------------------------------------------------ */ 53const uByte DECSTICKYTAB[10]={1,1,2,3,4,6,6,7,8,9}; /* used if sticky */ 54 55/* ------------------------------------------------------------------ */ | 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 --- 39 unchanged lines hidden (view full) --- 48#endif 49 50/* ------------------------------------------------------------------ */ 51/* round-for-reround digits */ 52/* ------------------------------------------------------------------ */ 53const uByte DECSTICKYTAB[10]={1,1,2,3,4,6,6,7,8,9}; /* used if sticky */ 54 55/* ------------------------------------------------------------------ */ |
56/* Powers of ten (powers[n]==10**n, 0<=n<=9) */ | 56/* Powers of ten (powers[n]==10**n, 0<=n<=19) */ |
57/* ------------------------------------------------------------------ */ | 57/* ------------------------------------------------------------------ */ |
58const uLong DECPOWERS[19] = {1, 10, 100, 1000, 10000, 100000, 1000000, | 58const uLong DECPOWERS[20] = {1, 10, 100, 1000, 10000, 100000, 1000000, |
59 10000000, 100000000, 1000000000, 10000000000ULL, 100000000000ULL, 60 1000000000000ULL, 10000000000000ULL, 100000000000000ULL, 1000000000000000ULL, | 59 10000000, 100000000, 1000000000, 10000000000ULL, 100000000000ULL, 60 1000000000000ULL, 10000000000000ULL, 100000000000000ULL, 1000000000000000ULL, |
61 10000000000000000ULL, 100000000000000000ULL, 1000000000000000000ULL, }; | 61 10000000000000000ULL, 100000000000000000ULL, 1000000000000000000ULL, 62 10000000000000000000ULL,}; |
62 63/* ------------------------------------------------------------------ */ 64/* decContextClearStatus -- clear bits in current status */ 65/* */ 66/* context is the context structure to be queried */ 67/* mask indicates the bits to be cleared (the status bit that */ 68/* corresponds to each 1 bit in the mask is cleared) */ 69/* returns context */ --- 363 unchanged lines hidden --- | 63 64/* ------------------------------------------------------------------ */ 65/* decContextClearStatus -- clear bits in current status */ 66/* */ 67/* context is the context structure to be queried */ 68/* mask indicates the bits to be cleared (the status bit that */ 69/* corresponds to each 1 bit in the mask is cleared) */ 70/* returns context */ --- 363 unchanged lines hidden --- |