5 #define FORTRAN_FUNCTION 6 #define MATCHN( s1, s2, n) (memcmp((s1), (s2), (n)) == 0) 7 #define DIFFERN(s1, s2, n) (memcmp((s1), (s2), (n)) != 0) 35 #if defined(LITTLE_ENDIAN) || defined(LITTLE) 36 #define H_IONE "\001\000" 37 #define S_IONE "\001\000\000\000" 38 #define D_IONE "\001\000\000\000\000\000\000\000" 39 #define S_RONE "\000\000\200\077" 40 #define D_RONE "\000\000\000\000\000\000\360\077" 41 #define Q_RONE "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\377\077" 43 #define H_IONE "\000\001" 44 #define S_IONE "\000\000\000\001" 45 #define D_IONE "\000\000\000\000\000\000\000\001" 46 #define S_RONE "\077\200\000\000" 47 #define D_RONE "\077\360\000\000\000\000\000\000" 49 #define Q_RONE "\077\377\000\000\000\000\000\000\000\000\000\000\000\000\000\000" 51 #define Q_RONE "\077\360\000\000\000\000\000\000\074\260\000\000\000\000\000\000" 61 #define NPREC n_precision_ 64 #define NPREC n_precision_ 68 #define NPREC n_precision_ 72 #define NPREC n_precision_ 76 #define NPREC n_precision 81 #define NPREC N_PRECISION 85 #define H_IONE "\000\001" 86 #define S_IONE "\000\000\000\001" 87 #define D_IONE "\000\000\000\000\000\000\000\001" 88 #define S_RONE "\100\001\200\000\000\000\000\000" 89 #define D_RONE "\100\001\200\000\000\000\000\000\000\000\000\000\000\000\000\000" 90 #define Q_RONE "\100\001\200\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000" 95 #ifndef ECMWF_PROTOTYPING 96 #define ECMWF_PROTOTYPING 106 #define ___(_T,_V) _T _V 118 #define ___(_T,_V) _V 325 if (MATCHN(value, H_IONE, H_ILEN))
327 if (MATCHN(value + H_ILEN, H_IONE, H_ILEN))
337 if (MATCHN(value, S_IONE, S_ILEN))
339 if (MATCHN(value + S_ILEN, S_IONE, S_ILEN))
349 if (MATCHN(value, S_RONE, S_RLEN))
351 if (MATCHN(value + S_RLEN, S_RONE, S_RLEN))
361 if (MATCHN(value, D_IONE, D_ILEN))
363 if (MATCHN(value + D_ILEN, D_IONE, D_ILEN))
373 if (MATCHN(value, D_RONE, D_RLEN))
375 if (MATCHN(value + D_RLEN, D_RONE, D_RLEN))
385 if (MATCHN(value, Q_RONE, Q_RLEN))
387 if (MATCHN(value + Q_RLEN, Q_RONE, Q_RLEN))
INTEGER NPREC __((char *))
INTEGER FORTRAN_FUNCTION NPREC(___(char *, value))
INTERFACE SUBROUTINE JPRB IMPLICIT NONE INTEGER(KIND=JPIM)