Go to the documentation of this file.
61 #define Sall(object) (object)
62 #define Ssign(object) Bitfield_extract( 0, 1,object)
63 #define Ssignedsign(object) Bitfield_signed_extract( 0, 1,object)
64 #define Sexponent(object) Bitfield_extract( 1, 8,object)
65 #define Smantissa(object) Bitfield_mask( 9, 23,object)
66 #define Ssignaling(object) Bitfield_extract( 9, 1,object)
67 #define Ssignalingnan(object) Bitfield_extract( 1, 9,object)
68 #define Shigh2mantissa(object) Bitfield_extract( 9, 2,object)
69 #define Sexponentmantissa(object) Bitfield_mask( 1, 31,object)
70 #define Ssignexponent(object) Bitfield_extract( 0, 9,object)
71 #define Shidden(object) Bitfield_extract( 8, 1,object)
72 #define Shiddenoverflow(object) Bitfield_extract( 7, 1,object)
73 #define Shiddenhigh7mantissa(object) Bitfield_extract( 8, 8,object)
74 #define Shiddenhigh3mantissa(object) Bitfield_extract( 8, 4,object)
75 #define Slow(object) Bitfield_mask( 31, 1,object)
76 #define Slow4(object) Bitfield_mask( 28, 4,object)
77 #define Slow31(object) Bitfield_mask( 1, 31,object)
78 #define Shigh31(object) Bitfield_extract( 0, 31,object)
79 #define Ssignedhigh31(object) Bitfield_signed_extract( 0, 31,object)
80 #define Shigh4(object) Bitfield_extract( 0, 4,object)
81 #define Sbit24(object) Bitfield_extract( 24, 1,object)
82 #define Sbit28(object) Bitfield_extract( 28, 1,object)
83 #define Sbit29(object) Bitfield_extract( 29, 1,object)
84 #define Sbit30(object) Bitfield_extract( 30, 1,object)
85 #define Sbit31(object) Bitfield_mask( 31, 1,object)
87 #define Deposit_ssign(object,value) Bitfield_deposit(value,0,1,object)
88 #define Deposit_sexponent(object,value) Bitfield_deposit(value,1,8,object)
89 #define Deposit_smantissa(object,value) Bitfield_deposit(value,9,23,object)
90 #define Deposit_shigh2mantissa(object,value) Bitfield_deposit(value,9,2,object)
91 #define Deposit_sexponentmantissa(object,value) \
92 Bitfield_deposit(value,1,31,object)
93 #define Deposit_ssignexponent(object,value) Bitfield_deposit(value,0,9,object)
94 #define Deposit_slow(object,value) Bitfield_deposit(value,31,1,object)
95 #define Deposit_shigh4(object,value) Bitfield_deposit(value,0,4,object)
97 #define Is_ssign(object) Bitfield_mask( 0, 1,object)
98 #define Is_ssignaling(object) Bitfield_mask( 9, 1,object)
99 #define Is_shidden(object) Bitfield_mask( 8, 1,object)
100 #define Is_shiddenoverflow(object) Bitfield_mask( 7, 1,object)
101 #define Is_slow(object) Bitfield_mask( 31, 1,object)
102 #define Is_sbit24(object) Bitfield_mask( 24, 1,object)
103 #define Is_sbit28(object) Bitfield_mask( 28, 1,object)
104 #define Is_sbit29(object) Bitfield_mask( 29, 1,object)
105 #define Is_sbit30(object) Bitfield_mask( 30, 1,object)
106 #define Is_sbit31(object) Bitfield_mask( 31, 1,object)
118 #define Dallp1(object) (object)
119 #define Dsign(object) Bitfield_extract( 0, 1,object)
120 #define Dsignedsign(object) Bitfield_signed_extract( 0, 1,object)
121 #define Dexponent(object) Bitfield_extract( 1, 11,object)
122 #define Dmantissap1(object) Bitfield_mask( 12, 20,object)
123 #define Dsignaling(object) Bitfield_extract( 12, 1,object)
124 #define Dsignalingnan(object) Bitfield_extract( 1, 12,object)
125 #define Dhigh2mantissa(object) Bitfield_extract( 12, 2,object)
126 #define Dexponentmantissap1(object) Bitfield_mask( 1, 31,object)
127 #define Dsignexponent(object) Bitfield_extract( 0, 12,object)
128 #define Dhidden(object) Bitfield_extract( 11, 1,object)
129 #define Dhiddenoverflow(object) Bitfield_extract( 10, 1,object)
130 #define Dhiddenhigh7mantissa(object) Bitfield_extract( 11, 8,object)
131 #define Dhiddenhigh3mantissa(object) Bitfield_extract( 11, 4,object)
132 #define Dlowp1(object) Bitfield_mask( 31, 1,object)
133 #define Dlow31p1(object) Bitfield_mask( 1, 31,object)
134 #define Dhighp1(object) Bitfield_extract( 0, 1,object)
135 #define Dhigh4p1(object) Bitfield_extract( 0, 4,object)
136 #define Dhigh31p1(object) Bitfield_extract( 0, 31,object)
137 #define Dsignedhigh31p1(object) Bitfield_signed_extract( 0, 31,object)
138 #define Dbit3p1(object) Bitfield_extract( 3, 1,object)
140 #define Deposit_dsign(object,value) Bitfield_deposit(value,0,1,object)
141 #define Deposit_dexponent(object,value) Bitfield_deposit(value,1,11,object)
142 #define Deposit_dmantissap1(object,value) Bitfield_deposit(value,12,20,object)
143 #define Deposit_dhigh2mantissa(object,value) Bitfield_deposit(value,12,2,object)
144 #define Deposit_dexponentmantissap1(object,value) \
145 Bitfield_deposit(value,1,31,object)
146 #define Deposit_dsignexponent(object,value) Bitfield_deposit(value,0,12,object)
147 #define Deposit_dlowp1(object,value) Bitfield_deposit(value,31,1,object)
148 #define Deposit_dhigh4p1(object,value) Bitfield_deposit(value,0,4,object)
150 #define Is_dsign(object) Bitfield_mask( 0, 1,object)
151 #define Is_dsignaling(object) Bitfield_mask( 12, 1,object)
152 #define Is_dhidden(object) Bitfield_mask( 11, 1,object)
153 #define Is_dhiddenoverflow(object) Bitfield_mask( 10, 1,object)
154 #define Is_dlowp1(object) Bitfield_mask( 31, 1,object)
155 #define Is_dhighp1(object) Bitfield_mask( 0, 1,object)
156 #define Is_dbit3p1(object) Bitfield_mask( 3, 1,object)
158 #define Dallp2(object) (object)
159 #define Dmantissap2(object) (object)
160 #define Dlowp2(object) Bitfield_mask( 31, 1,object)
161 #define Dlow4p2(object) Bitfield_mask( 28, 4,object)
162 #define Dlow31p2(object) Bitfield_mask( 1, 31,object)
163 #define Dhighp2(object) Bitfield_extract( 0, 1,object)
164 #define Dhigh31p2(object) Bitfield_extract( 0, 31,object)
165 #define Dbit2p2(object) Bitfield_extract( 2, 1,object)
166 #define Dbit3p2(object) Bitfield_extract( 3, 1,object)
167 #define Dbit21p2(object) Bitfield_extract( 21, 1,object)
168 #define Dbit28p2(object) Bitfield_extract( 28, 1,object)
169 #define Dbit29p2(object) Bitfield_extract( 29, 1,object)
170 #define Dbit30p2(object) Bitfield_extract( 30, 1,object)
171 #define Dbit31p2(object) Bitfield_mask( 31, 1,object)
173 #define Deposit_dlowp2(object,value) Bitfield_deposit(value,31,1,object)
175 #define Is_dlowp2(object) Bitfield_mask( 31, 1,object)
176 #define Is_dhighp2(object) Bitfield_mask( 0, 1,object)
177 #define Is_dbit2p2(object) Bitfield_mask( 2, 1,object)
178 #define Is_dbit3p2(object) Bitfield_mask( 3, 1,object)
179 #define Is_dbit21p2(object) Bitfield_mask( 21, 1,object)
180 #define Is_dbit28p2(object) Bitfield_mask( 28, 1,object)
181 #define Is_dbit29p2(object) Bitfield_mask( 29, 1,object)
182 #define Is_dbit30p2(object) Bitfield_mask( 30, 1,object)
183 #define Is_dbit31p2(object) Bitfield_mask( 31, 1,object)
264 #define Extall(object) (object)
265 #define Extsign(object) Bitfield_extract( 0, 1,object)
266 #define Exthigh31(object) Bitfield_extract( 0, 31,object)
267 #define Extlow31(object) Bitfield_extract( 1, 31,object)
268 #define Extlow(object) Bitfield_extract( 31, 1,object)
274 #define Sextallp1(object) (object)
275 #define Sextallp2(object) (object)
276 #define Sextlowp1(object) Bitfield_extract( 31, 1,object)
277 #define Sexthighp2(object) Bitfield_extract( 0, 1,object)
278 #define Sextlow31p2(object) Bitfield_extract( 1, 31,object)
279 #define Sexthiddenoverflow(object) Bitfield_extract( 4, 1,object)
280 #define Is_sexthiddenoverflow(object) Bitfield_mask( 4, 1,object)
286 #define Dextallp1(object) (object)
287 #define Dextallp2(object) (object)
288 #define Dextallp3(object) (object)
289 #define Dextallp4(object) (object)
290 #define Dextlowp2(object) Bitfield_extract( 31, 1,object)
291 #define Dexthighp3(object) Bitfield_extract( 0, 1,object)
292 #define Dextlow31p3(object) Bitfield_extract( 1, 31,object)
293 #define Dexthiddenoverflow(object) Bitfield_extract( 10, 1,object)
294 #define Is_dexthiddenoverflow(object) Bitfield_mask( 10, 1,object)
295 #define Deposit_dextlowp4(object,value) Bitfield_deposit(value,31,1,object)
366 #define SGL_BITLENGTH 32
368 #define SGL_EMIN (-126)
371 #define SGL_INFINITY_EXPONENT (SGL_EMAX+SGL_BIAS+1)
372 #define SGL_THRESHOLD 32
373 #define SGL_EXP_LENGTH 8
376 #define DBL_BITLENGTH 64
377 #define DBL_EMAX 1023
378 #define DBL_EMIN (-1022)
379 #define DBL_BIAS 1023
380 #define DBL_WRAP 1536
381 #define DBL_INFINITY_EXPONENT (DBL_EMAX+DBL_BIAS+1)
382 #define DBL_THRESHOLD 64
383 #define DBL_EXP_LENGTH 11
386 #define QUAD_BITLENGTH 128
387 #define QUAD_EMAX 16383
388 #define QUAD_EMIN (-16382)
389 #define QUAD_BIAS 16383
390 #define QUAD_WRAP 24576
391 #define QUAD_INFINITY_EXPONENT (QUAD_EMAX+QUAD_BIAS+1)
396 #define TRUE (!FALSE)
423 #define Cbit(object) Bitfield_extract( 5, 1,object)
424 #define Tbit(object) Bitfield_extract( 25, 1,object)
425 #define Roundingmode(object) Bitfield_extract( 21, 2,object)
426 #define Invalidtrap(object) Bitfield_extract( 27, 1,object)
427 #define Divisionbyzerotrap(object) Bitfield_extract( 28, 1,object)
428 #define Overflowtrap(object) Bitfield_extract( 29, 1,object)
429 #define Underflowtrap(object) Bitfield_extract( 30, 1,object)
430 #define Inexacttrap(object) Bitfield_extract( 31, 1,object)
431 #define Invalidflag(object) Bitfield_extract( 0, 1,object)
432 #define Divisionbyzeroflag(object) Bitfield_extract( 1, 1,object)
433 #define Overflowflag(object) Bitfield_extract( 2, 1,object)
434 #define Underflowflag(object) Bitfield_extract( 3, 1,object)
435 #define Inexactflag(object) Bitfield_extract( 4, 1,object)
436 #define Allflags(object) Bitfield_extract( 0, 5,object)
441 #define ROUNDNEAREST 0
447 #define NOEXCEPTION 0x0
448 #define INVALIDEXCEPTION 0x20
449 #define DIVISIONBYZEROEXCEPTION 0x10
450 #define OVERFLOWEXCEPTION 0x08
451 #define UNDERFLOWEXCEPTION 0x04
452 #define INEXACTEXCEPTION 0x02
453 #define UNIMPLEMENTEDEXCEPTION 0x01
456 #define OPC_2E_INVALIDEXCEPTION 0x30
457 #define OPC_2E_OVERFLOWEXCEPTION 0x18
458 #define OPC_2E_UNDERFLOWEXCEPTION 0x0c
459 #define OPC_2E_INEXACTEXCEPTION 0x12
468 #define Allexception(object) (object)
469 #define Exceptiontype(object) Bitfield_extract( 0, 6,object)
470 #define Instructionfield(object) Bitfield_mask( 6,26,object)
471 #define Parmfield(object) Bitfield_extract( 23, 3,object)
472 #define Rabit(object) Bitfield_extract( 24, 1,object)
473 #define Ibit(object) Bitfield_extract( 25, 1,object)
475 #define Set_exceptiontype(object,value) Bitfield_deposit(value, 0, 6,object)
476 #define Set_parmfield(object,value) Bitfield_deposit(value, 23, 3,object)
477 #define Set_exceptiontype_and_instr_field(exception,instruction,object) \
478 object = exception << 26 | instruction
487 #define Allexception(object) (object)
488 #define Greaterthanbit(object) Bitfield_extract( 27, 1,object)
489 #define Lessthanbit(object) Bitfield_extract( 28, 1,object)
490 #define Equalbit(object) Bitfield_extract( 29, 1,object)
491 #define Unorderedbit(object) Bitfield_extract( 30, 1,object)
492 #define Exceptionbit(object) Bitfield_extract( 31, 1,object)
495 #define Fpustatus_register (*status)
502 #define Rounding_mode() Roundingmode(Fpustatus_register)
503 #define Is_rounding_mode(rmode) \
504 (Roundingmode(Fpustatus_register) == rmode)
505 #define Set_rounding_mode(value) \
506 Bitfield_deposit(value,21,2,Fpustatus_register)
509 #define Is_invalidtrap_enabled() Invalidtrap(Fpustatus_register)
510 #define Is_divisionbyzerotrap_enabled() Divisionbyzerotrap(Fpustatus_register)
511 #define Is_overflowtrap_enabled() Overflowtrap(Fpustatus_register)
512 #define Is_underflowtrap_enabled() Underflowtrap(Fpustatus_register)
513 #define Is_inexacttrap_enabled() Inexacttrap(Fpustatus_register)
516 #define Set_invalidflag() Bitfield_deposit(1,0,1,Fpustatus_register)
517 #define Set_divisionbyzeroflag() Bitfield_deposit(1,1,1,Fpustatus_register)
518 #define Set_overflowflag() Bitfield_deposit(1,2,1,Fpustatus_register)
519 #define Set_underflowflag() Bitfield_deposit(1,3,1,Fpustatus_register)
520 #define Set_inexactflag() Bitfield_deposit(1,4,1,Fpustatus_register)
522 #define Clear_all_flags() Bitfield_deposit(0,0,5,Fpustatus_register)
525 #define Set_tbit() Bitfield_deposit(1,25,1,Fpustatus_register)
526 #define Clear_tbit() Bitfield_deposit(0,25,1,Fpustatus_register)
527 #define Is_tbit_set() Tbit(Fpustatus_register)
528 #define Is_cbit_set() Cbit(Fpustatus_register)
530 #define Set_status_cbit(value) \
531 Bitfield_deposit(value,5,1,Fpustatus_register)
536 #define Unordered(cond) Unorderedbit(cond)
537 #define Equal(cond) Equalbit(cond)
538 #define Lessthan(cond) Lessthanbit(cond)
539 #define Greaterthan(cond) Greaterthanbit(cond)
540 #define Exception(cond) Exceptionbit(cond)
544 #define Ext_isone_sign(extent) (Extsign(extent))
545 #define Ext_isnotzero(extent) \
547 #define Ext_isnotzero_lower(extent) \
549 #define Ext_leftshiftby1(extent) \
551 #define Ext_negate(extent) \
552 (int )Extall(extent) = 0 - (int )Extall(extent)
553 #define Ext_setone_low(extent) Bitfield_deposit(1,31,1,extent)
554 #define Ext_setzero(extent) Extall(extent) = 0
561 #define UNDEFFPINST 1
564 #define FTEST (1<<2) | 0
565 #define FCPY (2<<2) | 0
566 #define FABS (3<<2) | 0
567 #define FSQRT (4<<2) | 0
568 #define FRND (5<<2) | 0
570 #define FCNVFF (0<<2) | 1
571 #define FCNVXF (1<<2) | 1
572 #define FCNVFX (2<<2) | 1
573 #define FCNVFXT (3<<2) | 1
575 #define FCMP (0<<2) | 2
577 #define FADD (0<<2) | 3
578 #define FSUB (1<<2) | 3
579 #define FMPY (2<<2) | 3
580 #define FDIV (3<<2) | 3
581 #define FREM (4<<2) | 3