Loading…
On Ziv's Rounding Test
A very simple test, introduced by Ziv, allows one to determine if an approximation to the value f(x) of an elementary function at a given point x suffices to return the floating-point number nearest f(x) . The same test may be used when implementing floating-point operations with input and output op...
Saved in:
Published in: | ACM transactions on mathematical software 2013-07, Vol.39 (4), p.1-19 |
---|---|
Main Authors: | , , , |
Format: | Article |
Language: | English |
Subjects: | |
Citations: | Items that this one cites Items that cite this one |
Online Access: | Get full text |
Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
Summary: | A very simple test, introduced by Ziv, allows one to determine if an approximation to the value
f(x)
of an elementary function at a given point
x
suffices to return the floating-point number nearest
f(x)
. The same test may be used when implementing floating-point operations with input and output operands of different formats, using arithmetic operators tailored for manipulating operands of the same format. That test depends on a “magic constant”
e
. We show how to choose that constant
e
to make the test reliable and efficient. Various cases are considered, depending on the availability of an fma instruction, and on the range of
f(x)
. |
---|---|
ISSN: | 0098-3500 1557-7295 |
DOI: | 10.1145/2491491.2491495 |