Back to home page

MITgcm

 
 

    


File indexing completed on 2023-05-28 05:10:57 UTC

view on githubraw file Latest commit b4daa243 on 2023-05-28 03:53:22 UTC
b4daa24319 Shre*0001 #ifndef ADSTACK_INCLUDED
                0002 #define ADSTACK_INCLUDED
                0003 
                0004 #include "complex.h"
                0005 
                0006 void adStack_startRepeat() ;
                0007 void adStack_resetRepeat() ;
                0008 void adStack_endRepeat() ;
                0009 
                0010 /* char* pushBlock() ; */
                0011 /* char* popBlock() ; */
                0012 /* void pushNArray(char *x, int nbChars) ; */
                0013 /* void popNArray(char *x, int nbChars) ; */
                0014 
                0015 void pushInteger4Array(int *x, int n) ;
                0016 void popInteger4Array(int *x, int n) ;
                0017 void pushInteger8Array(long *x, int n) ;
                0018 void popInteger8Array(long *x, int n) ;
                0019 void pushReal4Array(float *x, int n) ;
                0020 void popReal4Array(float *x, int n) ;
                0021 void pushReal8Array(double *x, int n) ;
                0022 void popReal8Array(double *x, int n) ;
                0023 /* Commented out because sizeof(complex) == sizeof(double complex) == 16 */
                0024 /* void pushComplex8Array(complex *x, int n) ; */
                0025 /* void popComplex8Array(complex *x, int n) ; */
                0026 void pushComplex16Array(double complex *x, int n) ;
                0027 void popComplex16Array(double complex *x, int n) ;
                0028 void pushCharacterArray(char *x, int n) ;
                0029 void popCharacterArray(char *x, int n) ;
                0030 
                0031 void pushCharacter(char val) ;
                0032 void popCharacter(char* val) ;
                0033 void pushReal4(float val) ;
                0034 void popReal4(float* val) ;
                0035 void pushReal8(double val) ;
                0036 void popReal8(double* val) ;
                0037 void pushInteger4(int val) ;
                0038 void popInteger4(int* val) ;
                0039 void pushInteger8(long val) ;
                0040 void popInteger8(long* val) ;
                0041 /* Commented out because sizeof(complex) == sizeof(double complex) == 16 */
                0042 /* void pushComplex8(complex val) ; */
                0043 /* void popComplex8(complex *val) ; */
                0044 void pushComplex16(double complex val) ;
                0045 void popComplex16(double complex *val) ;
                0046 void pushPointer4(void* val) ;
                0047 void popPointer4(void** val) ;
                0048 void pushPointer8(void* val) ;
                0049 void popPointer8(void** val) ;
                0050 void pushBoolean(int x) ;
                0051 void popBoolean(int *x) ;
                0052 
                0053 void pushBit(int x) ;
                0054 int popBit() ;
                0055 
                0056 void pushControl1b(int cc) ;
                0057 void popControl1b(int *cc) ;
                0058 void pushControl2b(int cc) ;
                0059 void popControl2b(int *cc) ;
                0060 void pushControl3b(int cc) ;
                0061 void popControl3b(int *cc) ;
                0062 void pushControl4b(int cc) ;
                0063 void popControl4b(int *cc) ;
                0064 void pushControl5b(int cc) ;
                0065 void popControl5b(int *cc) ;
                0066 void pushControl6b(int cc) ;
                0067 void popControl6b(int *cc) ;
                0068 void pushControl7b(int cc) ;
                0069 void popControl7b(int *cc) ;
                0070 void pushControl8b(int cc) ;
                0071 void popControl8b(int *cc) ;
                0072 
                0073 void adStack_showPeakSize() ;
                0074 void adStack_showTotalTraffic() ;
                0075 void adStack_showStackSize(int label) ;
                0076 void adStack_showStack(char *locationName) ;
                0077 
                0078 int stackIsThreadSafe() ;
                0079 #endif