SIPE: Small Integer Plus Exponent
Vincent LEFÈVRE
AriC, INRIA Grenoble – Rhône-Alpes / LIP, ENS-Lyon
Arith 21, Austin, Texas, USA, 2013-04-09
[arith21.tex 59594 2013-04-09 05:39:35Z vinc17/xvii]
SIPE: Small Integer Plus Exponent Vincent LEFVRE AriC, INRIA - - PowerPoint PPT Presentation
SIPE: Small Integer Plus Exponent Vincent LEFVRE AriC, INRIA Grenoble Rhne-Alpes / LIP, ENS-Lyon Arith 21, Austin, Texas, USA, 2013-04-09 [arith21.tex 59594 2013-04-09 05:39:35Z vinc17/xvii] Introduction: Why SIPE? All started with
AriC, INRIA Grenoble – Rhône-Alpes / LIP, ENS-Lyon
[arith21.tex 59594 2013-04-09 05:39:35Z vinc17/xvii]
[arith21.tex 59594 2013-04-09 05:39:35Z vinc17/xvii]
1See Computing Correctly Rounded Integer Powers in Floating-Point Arithmetic, by
Vincent LEFÈVRE (INRIA / LIP, ENS-Lyon) SIPE: Small Integer Plus Exponent Arith 21, Austin, USA, 2013-04-09 2 / 17
[arith21.tex 59594 2013-04-09 05:39:35Z vinc17/xvii]
Vincent LEFÈVRE (INRIA / LIP, ENS-Lyon) SIPE: Small Integer Plus Exponent Arith 21, Austin, USA, 2013-04-09 3 / 17
[arith21.tex 59594 2013-04-09 05:39:35Z vinc17/xvii]
◮ very generic: not specifically optimized for a given precision; ◮ we had to take into account that different precisions can even be mixed; ◮ overhead due to exception handling and special data.
◮ no support for negative numbers; ◮ rounding is roundTiesToAway: to nearest, but not the usual even-rounding
◮ the precision is more or less hard-coded; ◮ overflow detection, unnecessary in our context; ◮ no FMA support (needed for DblMult); ◮ apparently, not very optimized. Vincent LEFÈVRE (INRIA / LIP, ENS-Lyon) SIPE: Small Integer Plus Exponent Arith 21, Austin, USA, 2013-04-09 4 / 17
[arith21.tex 59594 2013-04-09 05:39:35Z vinc17/xvii]
◮ code written in C (for portability), with some GCC extensions; ◮ exceptions (in particular overflows/underflows) are ignored, and unsupported
◮ restriction: the precision must be small enough to have a simple and fast
Vincent LEFÈVRE (INRIA / LIP, ENS-Lyon) SIPE: Small Integer Plus Exponent Arith 21, Austin, USA, 2013-04-09 5 / 17
[arith21.tex 59594 2013-04-09 05:39:35Z vinc17/xvii]
Vincent LEFÈVRE (INRIA / LIP, ENS-Lyon) SIPE: Small Integer Plus Exponent Arith 21, Austin, USA, 2013-04-09 6 / 17
[arith21.tex 59594 2013-04-09 05:39:35Z vinc17/xvii]
Vincent LEFÈVRE (INRIA / LIP, ENS-Lyon) SIPE: Small Integer Plus Exponent Arith 21, Austin, USA, 2013-04-09 7 / 17
[arith21.tex 59594 2013-04-09 05:39:35Z vinc17/xvii]
Vincent LEFÈVRE (INRIA / LIP, ENS-Lyon) SIPE: Small Integer Plus Exponent Arith 21, Austin, USA, 2013-04-09 8 / 17
[arith21.tex 59594 2013-04-09 05:39:35Z vinc17/xvii]
Vincent LEFÈVRE (INRIA / LIP, ENS-Lyon) SIPE: Small Integer Plus Exponent Arith 21, Austin, USA, 2013-04-09 9 / 17
[arith21.tex 59594 2013-04-09 05:39:35Z vinc17/xvii]
Vincent LEFÈVRE (INRIA / LIP, ENS-Lyon) SIPE: Small Integer Plus Exponent Arith 21, Austin, USA, 2013-04-09 10 / 17
[arith21.tex 59594 2013-04-09 05:39:35Z vinc17/xvii]
Vincent LEFÈVRE (INRIA / LIP, ENS-Lyon) SIPE: Small Integer Plus Exponent Arith 21, Austin, USA, 2013-04-09 11 / 17
[arith21.tex 59594 2013-04-09 05:39:35Z vinc17/xvii]
Vincent LEFÈVRE (INRIA / LIP, ENS-Lyon) SIPE: Small Integer Plus Exponent Arith 21, Austin, USA, 2013-04-09 12 / 17
[arith21.tex 59594 2013-04-09 05:39:35Z vinc17/xvii]
1
2
3
Vincent LEFÈVRE (INRIA / LIP, ENS-Lyon) SIPE: Small Integer Plus Exponent Arith 21, Austin, USA, 2013-04-09 13 / 17
[arith21.tex 59594 2013-04-09 05:39:35Z vinc17/xvii]
Vincent LEFÈVRE (INRIA / LIP, ENS-Lyon) SIPE: Small Integer Plus Exponent Arith 21, Austin, USA, 2013-04-09 14 / 17
[arith21.tex 59594 2013-04-09 05:39:35Z vinc17/xvii]
Vincent LEFÈVRE (INRIA / LIP, ENS-Lyon) SIPE: Small Integer Plus Exponent Arith 21, Austin, USA, 2013-04-09 15 / 17
[arith21.tex 59594 2013-04-09 05:39:35Z vinc17/xvii]
Vincent LEFÈVRE (INRIA / LIP, ENS-Lyon) SIPE: Small Integer Plus Exponent Arith 21, Austin, USA, 2013-04-09 16 / 17
[arith21.tex 59594 2013-04-09 05:39:35Z vinc17/xvii]
Vincent LEFÈVRE (INRIA / LIP, ENS-Lyon) SIPE: Small Integer Plus Exponent Arith 21, Austin, USA, 2013-04-09 17 / 17