This is the mail archive of the
`fortran@gcc.gnu.org`
mailing list for the GNU Fortran project.

Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|

Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |

Other format: | [Raw text] |

*From*: Tobias Burnus <burnus at net-b dot de>*To*: "'fortran at gcc dot gnu dot org'" <fortran at gcc dot gnu dot org>*Date*: Sun, 27 Jul 2008 19:44:56 +0200*Subject*: [RFC] I/O of arrays with 7 < rank <= 15

#define GFC_DTYPE_RANK_MASK 0x07 // = 111 in binary notation #define GFC_DTYPE_TYPE_SHIFT 3 // the three bits from above #define GFC_DTYPE_TYPE_MASK 0x38 #define GFC_DTYPE_SIZE_SHIFT 6

The dtype member is formatted as follows: rank = dtype & GFC_DTYPE_RANK_MASK // 3 bits type = (dtype & GFC_DTYPE_TYPE_MASK) >> GFC_DTYPE_TYPE_SHIFT // 3 bits size = dtype >> GFC_DTYPE_SIZE_SHIFT

The question is now: How to change this without breaking backward compatibility with 4.3 programs. "dtype" is used all over the place and I do not see any method to make use of versioned symbols. (Well, other than copying half of the library to provide access to the new dtype.)

**Follow-Ups**:**Re: [RFC] I/O of arrays with 7 < rank <= 15***From:*Thomas Koenig

Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|

Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |