Changeset 44acc72
- Timestamp:
- Jan 12, 2025, 8:46:48 PM (8 months ago)
- Branches:
- master
- Children:
- b0708ea
- Parents:
- cdd287b9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/BasicTypes-gen.cpp
rcdd287b9 r44acc72 45 45 Float64xComplex, 46 46 Float80, 47 LongDouble, 48 LongDoubleComplex, 49 uuFloat128, 47 50 Float128, 48 51 Float128Complex, 49 uuFloat128,50 LongDouble,51 LongDoubleComplex,52 52 Float128x, 53 53 Float128xComplex, … … 113 113 { DoubleComplex, "DoubleComplex", "DC", "double _Complex", "Cd", Floating, Float64xComplex, -1, -1, 12 }, 114 114 { Float64x, "Float64x", "_FDX", "_Float64x", "DF64x_", Floating, Float80, Float64xComplex, -1, 13 }, 115 { Float64xComplex, "Float64xComplex", "_FDXC", "_Float64x _Complex", "CDF64x_", Floating, Float128Complex, -1, -1, 13 },116 117 { Float80, "Float80", "_F80", "__float80", "Dq", Floating, Float128, Float64xComplex, -1, 14 },115 { Float64xComplex, "Float64xComplex", "_FDXC", "_Float64x _Complex", "CDF64x_", Floating, LongDoubleComplex, -1, -1, 13 }, 116 117 { Float80, "Float80", "_F80", "__float80", "Dq", Floating, LongDouble, LongDoubleComplex, -1, 14 }, 118 118 // __float80 _Complex, no complex counterpart 119 120 { Float128, "Float128", "_FLD", "_Float128", "DF128_", Floating, uuFloat128, Float128Complex, -1, 15 }, 121 { Float128Complex, "Float128Complex", "_FLDC", "_Float128 _Complex", "CDF128_", Floating, LongDoubleComplex, -1, -1, 15 }, 122 { uuFloat128, "uuFloat128", "__FLD", "__float128", "g", Floating, LongDouble, Float128Complex, -1, 16 }, 119 // gcc implements long double as float80 (12 bytes) 120 { LongDouble, "LongDouble", "LD", "long double", "e", Floating, uuFloat128, LongDoubleComplex, -1, 15 }, 121 { LongDoubleComplex, "LongDoubleComplex", "LDC", "long double _Complex", "Ce", Floating, Float128Complex, -1, -1, 15 }, 122 123 { uuFloat128, "uuFloat128", "__FLD", "__float128", "g", Floating, Float128, Float128Complex, -1, 16 }, 123 124 // __float128 _Complex, no complex counterpart 124 { LongDouble, "LongDouble", "LD", "long double", "e", Floating, Float128x, LongDoubleComplex, -1, 17 },125 { LongDoubleComplex, "LongDoubleComplex", "LDC", "long double _Complex", "Ce", Floating, Float128xComplex, -1, -1, 17 },125 { Float128, "Float128", "_FLD", "_Float128", "DF128_", Floating, Float128x, Float128Complex, -1, 17 }, 126 { Float128Complex, "Float128Complex", "_FLDC", "_Float128 _Complex", "CDF128_", Floating, Float128xComplex, -1, -1, 17 }, 126 127 127 128 // may not be supported … … 134 135 static Kind commonTypeMatrix[NUMBER_OF_BASIC_TYPES][NUMBER_OF_BASIC_TYPES]; 135 136 137 // Fangren explain shortest cost algorithm. 136 138 void generateCosts( int row ) { 137 139 bool seen[NUMBER_OF_BASIC_TYPES] = { false /*, ... */ }; … … 174 176 175 177 // traverse children 178 // Fangren explain "max" 176 179 int i = graph[col].left; 177 180 if ( i == -1 ) continue; // leaf … … 188 191 } // generateCosts 189 192 193 // Fangren explain this routine if you can. 190 194 void generateCommonType( int row, int col ) { // row <= col 191 195 if ( costMatrix[row][col] >= 0 ) {
Note:
See TracChangeset
for help on using the changeset viewer.