2000-04-12 23:39:44 +00:00
|
|
|
# Begin of automatic generation
|
|
|
|
|
|
|
|
# Maximal error of functions:
|
2015-07-01 17:50:15 +00:00
|
|
|
Function: "acos":
|
2021-03-04 19:12:42 +00:00
|
|
|
double: 1
|
2015-07-01 17:50:15 +00:00
|
|
|
float: 1
|
|
|
|
|
2012-05-30 21:16:52 +00:00
|
|
|
Function: "acos_downward":
|
2015-07-01 17:50:15 +00:00
|
|
|
double: 1
|
2012-05-30 21:16:52 +00:00
|
|
|
float: 1
|
2000-04-12 23:39:44 +00:00
|
|
|
|
2012-05-30 21:16:52 +00:00
|
|
|
Function: "acos_towardzero":
|
2015-07-01 17:50:15 +00:00
|
|
|
double: 1
|
2008-07-18 13:18:53 +00:00
|
|
|
float: 1
|
|
|
|
|
2014-01-01 16:46:17 +00:00
|
|
|
Function: "acos_upward":
|
|
|
|
double: 1
|
2015-07-01 17:50:15 +00:00
|
|
|
float: 1
|
2014-01-01 16:46:17 +00:00
|
|
|
|
|
|
|
Function: "acosh":
|
2015-10-09 22:30:26 +00:00
|
|
|
double: 2
|
2015-07-01 17:50:15 +00:00
|
|
|
float: 2
|
2014-01-01 16:46:17 +00:00
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: "acosh_downward":
|
2015-10-09 22:30:26 +00:00
|
|
|
double: 2
|
|
|
|
float: 2
|
2014-06-30 21:20:35 +00:00
|
|
|
|
|
|
|
Function: "acosh_towardzero":
|
2015-07-01 17:50:15 +00:00
|
|
|
double: 2
|
2015-10-09 22:30:26 +00:00
|
|
|
float: 2
|
2014-06-30 21:20:35 +00:00
|
|
|
|
|
|
|
Function: "acosh_upward":
|
2015-07-01 17:50:15 +00:00
|
|
|
double: 2
|
2015-10-09 22:30:26 +00:00
|
|
|
float: 2
|
2015-07-01 17:50:15 +00:00
|
|
|
|
|
|
|
Function: "asin":
|
2021-03-04 19:12:42 +00:00
|
|
|
double: 1
|
2015-07-01 17:50:15 +00:00
|
|
|
float: 1
|
2014-06-30 21:20:35 +00:00
|
|
|
|
2012-05-30 21:16:52 +00:00
|
|
|
Function: "asin_downward":
|
2000-04-12 23:39:44 +00:00
|
|
|
double: 1
|
2008-07-18 13:18:53 +00:00
|
|
|
float: 1
|
2000-04-12 23:39:44 +00:00
|
|
|
|
2012-05-30 21:16:52 +00:00
|
|
|
Function: "asin_towardzero":
|
2015-07-01 17:50:15 +00:00
|
|
|
double: 1
|
2000-04-12 23:39:44 +00:00
|
|
|
float: 1
|
|
|
|
|
2012-05-30 21:16:52 +00:00
|
|
|
Function: "asin_upward":
|
2021-04-01 17:02:05 +00:00
|
|
|
double: 2
|
2014-01-01 16:46:17 +00:00
|
|
|
float: 1
|
|
|
|
|
|
|
|
Function: "asinh":
|
2021-01-18 20:22:51 +00:00
|
|
|
double: 2
|
2020-04-08 11:50:27 +00:00
|
|
|
float: 2
|
2012-05-30 21:16:52 +00:00
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: "asinh_downward":
|
2015-07-01 17:50:15 +00:00
|
|
|
double: 3
|
|
|
|
float: 3
|
2014-02-21 17:21:13 +00:00
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: "asinh_towardzero":
|
2015-07-01 17:50:15 +00:00
|
|
|
double: 2
|
|
|
|
float: 2
|
2012-05-30 21:16:52 +00:00
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: "asinh_upward":
|
2015-07-01 17:50:15 +00:00
|
|
|
double: 3
|
|
|
|
float: 3
|
|
|
|
|
|
|
|
Function: "atan":
|
2021-04-01 17:02:05 +00:00
|
|
|
double: 1
|
2012-05-30 21:16:52 +00:00
|
|
|
float: 1
|
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: "atan2":
|
2021-03-04 19:12:42 +00:00
|
|
|
float: 2
|
2000-04-12 23:39:44 +00:00
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: "atan2_downward":
|
2013-07-02 20:34:19 +00:00
|
|
|
double: 1
|
|
|
|
float: 2
|
2000-04-12 23:39:44 +00:00
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: "atan2_towardzero":
|
2000-04-12 23:39:44 +00:00
|
|
|
double: 1
|
2013-07-02 20:34:19 +00:00
|
|
|
float: 2
|
2000-04-12 23:39:44 +00:00
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: "atan2_upward":
|
2000-04-12 23:39:44 +00:00
|
|
|
double: 1
|
2016-01-19 21:42:58 +00:00
|
|
|
float: 2
|
2000-04-12 23:39:44 +00:00
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: "atan_downward":
|
2012-05-30 21:16:52 +00:00
|
|
|
double: 1
|
2015-07-01 17:50:15 +00:00
|
|
|
float: 2
|
2000-04-12 23:39:44 +00:00
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: "atan_towardzero":
|
2013-07-02 20:34:19 +00:00
|
|
|
double: 1
|
2000-04-12 23:39:44 +00:00
|
|
|
float: 1
|
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: "atan_upward":
|
|
|
|
double: 1
|
2015-07-01 17:50:15 +00:00
|
|
|
float: 2
|
2000-04-12 23:39:44 +00:00
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: "atanh":
|
2015-10-09 22:30:26 +00:00
|
|
|
double: 2
|
2015-07-01 17:50:15 +00:00
|
|
|
float: 2
|
|
|
|
|
|
|
|
Function: "atanh_downward":
|
|
|
|
double: 3
|
2015-10-09 22:30:26 +00:00
|
|
|
float: 3
|
2013-07-02 20:34:19 +00:00
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: "atanh_towardzero":
|
2015-07-01 17:50:15 +00:00
|
|
|
double: 2
|
|
|
|
float: 2
|
2000-04-12 23:39:44 +00:00
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: "atanh_upward":
|
2015-10-09 22:30:26 +00:00
|
|
|
double: 3
|
2015-07-01 17:50:15 +00:00
|
|
|
float: 3
|
|
|
|
|
|
|
|
Function: "cabs":
|
|
|
|
double: 1
|
|
|
|
|
|
|
|
Function: "cabs_downward":
|
|
|
|
double: 1
|
|
|
|
|
|
|
|
Function: "cabs_towardzero":
|
|
|
|
double: 1
|
|
|
|
|
|
|
|
Function: "cabs_upward":
|
2000-04-12 23:39:44 +00:00
|
|
|
double: 1
|
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: Real part of "cacos":
|
2000-04-12 23:39:44 +00:00
|
|
|
double: 1
|
2014-06-30 21:20:35 +00:00
|
|
|
float: 2
|
2000-04-12 23:39:44 +00:00
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: Imaginary part of "cacos":
|
2017-02-17 23:10:01 +00:00
|
|
|
double: 2
|
2014-06-30 21:20:35 +00:00
|
|
|
float: 2
|
2000-04-12 23:39:44 +00:00
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: Real part of "cacos_downward":
|
2017-02-17 23:10:01 +00:00
|
|
|
double: 3
|
2014-06-30 21:20:35 +00:00
|
|
|
float: 2
|
2000-04-12 23:39:44 +00:00
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: Imaginary part of "cacos_downward":
|
|
|
|
double: 5
|
|
|
|
float: 3
|
|
|
|
|
|
|
|
Function: Real part of "cacos_towardzero":
|
2017-02-17 23:10:01 +00:00
|
|
|
double: 3
|
2014-06-30 21:20:35 +00:00
|
|
|
float: 2
|
2000-04-12 23:39:44 +00:00
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: Imaginary part of "cacos_towardzero":
|
|
|
|
double: 5
|
|
|
|
float: 3
|
|
|
|
|
|
|
|
Function: Real part of "cacos_upward":
|
2012-05-30 21:16:52 +00:00
|
|
|
double: 2
|
2014-06-30 21:20:35 +00:00
|
|
|
float: 2
|
2000-04-12 23:39:44 +00:00
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: Imaginary part of "cacos_upward":
|
2017-02-17 23:10:01 +00:00
|
|
|
double: 5
|
|
|
|
float: 7
|
2014-06-30 21:20:35 +00:00
|
|
|
|
|
|
|
Function: Real part of "cacosh":
|
2017-02-17 23:10:01 +00:00
|
|
|
double: 2
|
2012-05-30 21:16:52 +00:00
|
|
|
float: 2
|
2000-04-12 23:39:44 +00:00
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: Imaginary part of "cacosh":
|
2000-04-12 23:39:44 +00:00
|
|
|
double: 1
|
2014-06-30 21:20:35 +00:00
|
|
|
float: 2
|
2000-04-12 23:39:44 +00:00
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: Real part of "cacosh_downward":
|
|
|
|
double: 5
|
|
|
|
float: 3
|
|
|
|
|
|
|
|
Function: Imaginary part of "cacosh_downward":
|
2017-02-17 23:10:01 +00:00
|
|
|
double: 3
|
|
|
|
float: 3
|
2000-04-12 23:39:44 +00:00
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: Real part of "cacosh_towardzero":
|
|
|
|
double: 5
|
|
|
|
float: 3
|
|
|
|
|
|
|
|
Function: Imaginary part of "cacosh_towardzero":
|
2017-02-17 23:10:01 +00:00
|
|
|
double: 3
|
2014-06-30 21:20:35 +00:00
|
|
|
float: 2
|
|
|
|
|
|
|
|
Function: Real part of "cacosh_upward":
|
|
|
|
double: 4
|
|
|
|
float: 4
|
|
|
|
|
|
|
|
Function: Imaginary part of "cacosh_upward":
|
2017-02-17 23:10:01 +00:00
|
|
|
double: 3
|
2012-11-30 20:41:26 +00:00
|
|
|
float: 2
|
|
|
|
|
2015-07-01 17:50:15 +00:00
|
|
|
Function: "carg":
|
|
|
|
float: 1
|
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: "carg_downward":
|
2000-04-12 23:39:44 +00:00
|
|
|
double: 1
|
2014-06-30 21:20:35 +00:00
|
|
|
float: 2
|
2000-04-12 23:39:44 +00:00
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: "carg_towardzero":
|
2015-07-01 17:50:15 +00:00
|
|
|
double: 1
|
|
|
|
float: 2
|
2000-04-12 23:39:44 +00:00
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: "carg_upward":
|
2014-01-01 16:46:17 +00:00
|
|
|
double: 1
|
2016-01-19 21:42:58 +00:00
|
|
|
float: 2
|
2012-05-30 21:16:52 +00:00
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: Real part of "casin":
|
2014-01-01 16:46:17 +00:00
|
|
|
double: 1
|
2012-05-30 21:16:52 +00:00
|
|
|
float: 1
|
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: Imaginary part of "casin":
|
2017-02-17 23:10:01 +00:00
|
|
|
double: 2
|
2012-05-30 21:16:52 +00:00
|
|
|
float: 2
|
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: Real part of "casin_downward":
|
|
|
|
double: 3
|
2017-02-17 23:10:01 +00:00
|
|
|
float: 2
|
2014-01-01 16:46:17 +00:00
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: Imaginary part of "casin_downward":
|
|
|
|
double: 5
|
|
|
|
float: 3
|
2014-01-01 16:46:17 +00:00
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: Real part of "casin_towardzero":
|
|
|
|
double: 3
|
2012-05-30 21:16:52 +00:00
|
|
|
float: 1
|
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: Imaginary part of "casin_towardzero":
|
|
|
|
double: 5
|
|
|
|
float: 3
|
|
|
|
|
|
|
|
Function: Real part of "casin_upward":
|
2017-02-17 23:10:01 +00:00
|
|
|
double: 3
|
|
|
|
float: 2
|
2012-05-30 21:16:52 +00:00
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: Imaginary part of "casin_upward":
|
2017-02-17 23:10:01 +00:00
|
|
|
double: 5
|
|
|
|
float: 7
|
2014-06-30 21:20:35 +00:00
|
|
|
|
|
|
|
Function: Real part of "casinh":
|
2017-02-17 23:10:01 +00:00
|
|
|
double: 2
|
2014-01-01 16:46:17 +00:00
|
|
|
float: 2
|
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: Imaginary part of "casinh":
|
2012-05-30 21:16:52 +00:00
|
|
|
double: 1
|
2000-04-12 23:39:44 +00:00
|
|
|
float: 1
|
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: Real part of "casinh_downward":
|
|
|
|
double: 5
|
|
|
|
float: 3
|
|
|
|
|
|
|
|
Function: Imaginary part of "casinh_downward":
|
|
|
|
double: 3
|
2017-02-17 23:10:01 +00:00
|
|
|
float: 2
|
2014-06-30 21:20:35 +00:00
|
|
|
|
|
|
|
Function: Real part of "casinh_towardzero":
|
|
|
|
double: 5
|
|
|
|
float: 3
|
|
|
|
|
|
|
|
Function: Imaginary part of "casinh_towardzero":
|
|
|
|
double: 3
|
2000-04-12 23:39:44 +00:00
|
|
|
float: 1
|
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: Real part of "casinh_upward":
|
2017-02-17 23:10:01 +00:00
|
|
|
double: 5
|
|
|
|
float: 7
|
2014-06-30 21:20:35 +00:00
|
|
|
|
|
|
|
Function: Imaginary part of "casinh_upward":
|
2017-02-17 23:10:01 +00:00
|
|
|
double: 3
|
2014-06-30 21:20:35 +00:00
|
|
|
float: 2
|
|
|
|
|
|
|
|
Function: Real part of "catan":
|
2017-02-17 23:10:01 +00:00
|
|
|
double: 1
|
2014-06-30 21:20:35 +00:00
|
|
|
float: 1
|
2000-04-12 23:39:44 +00:00
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: Imaginary part of "catan":
|
2000-04-12 23:39:44 +00:00
|
|
|
double: 1
|
|
|
|
float: 1
|
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: Real part of "catan_downward":
|
2012-05-30 21:16:52 +00:00
|
|
|
double: 1
|
2017-02-17 23:10:01 +00:00
|
|
|
float: 2
|
2000-04-12 23:39:44 +00:00
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: Imaginary part of "catan_downward":
|
|
|
|
double: 2
|
|
|
|
float: 2
|
|
|
|
|
|
|
|
Function: Real part of "catan_towardzero":
|
2000-04-12 23:39:44 +00:00
|
|
|
double: 1
|
2017-02-17 23:10:01 +00:00
|
|
|
float: 2
|
2000-04-12 23:39:44 +00:00
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: Imaginary part of "catan_towardzero":
|
2012-11-30 20:41:26 +00:00
|
|
|
double: 2
|
2017-02-17 23:10:01 +00:00
|
|
|
float: 2
|
2012-11-30 20:41:26 +00:00
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: Real part of "catan_upward":
|
2017-02-17 23:10:01 +00:00
|
|
|
double: 1
|
2012-11-30 20:41:26 +00:00
|
|
|
float: 1
|
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: Imaginary part of "catan_upward":
|
|
|
|
double: 3
|
|
|
|
float: 3
|
|
|
|
|
|
|
|
Function: Real part of "catanh":
|
2014-01-01 16:46:17 +00:00
|
|
|
double: 1
|
2012-11-30 20:41:26 +00:00
|
|
|
float: 1
|
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: Imaginary part of "catanh":
|
2017-02-17 23:10:01 +00:00
|
|
|
double: 1
|
2012-11-30 20:41:26 +00:00
|
|
|
float: 1
|
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: Real part of "catanh_downward":
|
2014-01-01 16:46:17 +00:00
|
|
|
double: 2
|
|
|
|
float: 2
|
2012-11-30 20:41:26 +00:00
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: Imaginary part of "catanh_downward":
|
|
|
|
double: 1
|
|
|
|
float: 2
|
2012-11-30 20:41:26 +00:00
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: Real part of "catanh_towardzero":
|
|
|
|
double: 2
|
2017-02-17 23:10:01 +00:00
|
|
|
float: 2
|
2014-06-30 21:20:35 +00:00
|
|
|
|
|
|
|
Function: Imaginary part of "catanh_towardzero":
|
|
|
|
double: 1
|
|
|
|
float: 2
|
|
|
|
|
|
|
|
Function: Real part of "catanh_upward":
|
|
|
|
double: 4
|
2017-02-17 23:10:01 +00:00
|
|
|
float: 4
|
2014-06-30 21:20:35 +00:00
|
|
|
|
|
|
|
Function: Imaginary part of "catanh_upward":
|
2017-02-17 23:10:01 +00:00
|
|
|
double: 1
|
2014-06-30 21:20:35 +00:00
|
|
|
float: 1
|
|
|
|
|
|
|
|
Function: "cbrt":
|
2021-01-18 20:22:51 +00:00
|
|
|
double: 4
|
2014-06-30 21:20:35 +00:00
|
|
|
float: 1
|
|
|
|
|
|
|
|
Function: "cbrt_downward":
|
2015-07-01 17:50:15 +00:00
|
|
|
double: 4
|
2014-06-30 21:20:35 +00:00
|
|
|
float: 1
|
|
|
|
|
|
|
|
Function: "cbrt_towardzero":
|
|
|
|
double: 3
|
|
|
|
float: 1
|
|
|
|
|
2015-07-01 17:50:15 +00:00
|
|
|
Function: "cbrt_upward":
|
2015-10-09 22:30:26 +00:00
|
|
|
double: 5
|
2015-07-01 17:50:15 +00:00
|
|
|
float: 1
|
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: Real part of "ccos":
|
|
|
|
double: 1
|
|
|
|
float: 1
|
|
|
|
|
|
|
|
Function: Imaginary part of "ccos":
|
|
|
|
double: 1
|
|
|
|
float: 1
|
|
|
|
|
|
|
|
Function: Real part of "ccos_downward":
|
|
|
|
double: 1
|
|
|
|
float: 1
|
|
|
|
|
|
|
|
Function: Imaginary part of "ccos_downward":
|
Add new exp and exp2 implementations
Optimized exp and exp2 implementations using a lookup table for
fractional powers of 2. There are several variants, see e_exp_data.c,
they can be selected by modifying math_config.h allowing different
tradeoffs.
The default selection should be acceptable as generic libm code.
Worst case error is 0.509 ULP for exp and 0.507 ULP for exp2, on
aarch64 the rodata size is 2160 bytes, shared between exp and exp2.
On aarch64 .text + .rodata size decreased by 24912 bytes.
The non-nearest rounding error is less than 1 ULP even on targets
without efficient round implementation (although the error rate is
higher in that case). Targets with single instruction, rounding mode
independent, to nearest integer rounding and conversion can use them
by setting TOINT_INTRINSICS and adding the necessary code to their
math_private.h.
The __exp1 code uses the same algorithm, so the error bound of pow
increased a bit.
New double precision error handling code was added following the
style of the single precision error handling code.
Improvements on Cortex-A72 compared to current glibc master:
exp thruput: 1.61x in [-9.9 9.9]
exp latency: 1.53x in [-9.9 9.9]
exp thruput: 1.13x in [0.5 1]
exp latency: 1.30x in [0.5 1]
exp2 thruput: 2.03x in [-9.9 9.9]
exp2 latency: 1.64x in [-9.9 9.9]
For small (< 1) inputs the current exp code uses a separate algorithm
so the speed up there is less.
Was tested on
aarch64-linux-gnu (TOINT_INTRINSICS, fma contraction) and
arm-linux-gnueabihf (!TOINT_INTRINSICS, no fma contraction) and
x86_64-linux-gnu (!TOINT_INTRINSICS, no fma contraction) and
powerpc64le-linux-gnu (!TOINT_INTRINSICS, fma contraction) targets,
only non-nearest rounding ulp errors increase and they are within
acceptable bounds (ulp updates are in separate patches).
* NEWS: Mention exp and exp2 improvements.
* math/Makefile (libm-support): Remove t_exp.
(type-double-routines): Add math_err and e_exp_data.
* sysdeps/aarch64/libm-test-ulps: Update.
* sysdeps/arm/libm-test-ulps: Update.
* sysdeps/i386/fpu/e_exp_data.c: New file.
* sysdeps/i386/fpu/math_err.c: New file.
* sysdeps/i386/fpu/t_exp.c: Remove.
* sysdeps/ia64/fpu/e_exp_data.c: New file.
* sysdeps/ia64/fpu/math_err.c: New file.
* sysdeps/ia64/fpu/t_exp.c: Remove.
* sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
* sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
* sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
* sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
* sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
* sysdeps/ieee754/dbl-64/math_config.h: New file.
* sysdeps/ieee754/dbl-64/math_err.c: New file.
* sysdeps/ieee754/dbl-64/t_exp.c: Remove.
* sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
* sysdeps/ieee754/dbl-64/uexp.h: Remove.
* sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
* sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
* sysdeps/m68k/m680x0/fpu/math_err.c: New file.
* sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
* sysdeps/powerpc/fpu/libm-test-ulps: Update.
* sysdeps/x86_64/fpu/libm-test-ulps: Update.
2018-02-12 18:16:03 +00:00
|
|
|
double: 3
|
2014-01-01 16:46:17 +00:00
|
|
|
float: 3
|
2012-11-30 20:41:26 +00:00
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: Real part of "ccos_towardzero":
|
|
|
|
double: 1
|
|
|
|
float: 2
|
|
|
|
|
|
|
|
Function: Imaginary part of "ccos_towardzero":
|
Add new exp and exp2 implementations
Optimized exp and exp2 implementations using a lookup table for
fractional powers of 2. There are several variants, see e_exp_data.c,
they can be selected by modifying math_config.h allowing different
tradeoffs.
The default selection should be acceptable as generic libm code.
Worst case error is 0.509 ULP for exp and 0.507 ULP for exp2, on
aarch64 the rodata size is 2160 bytes, shared between exp and exp2.
On aarch64 .text + .rodata size decreased by 24912 bytes.
The non-nearest rounding error is less than 1 ULP even on targets
without efficient round implementation (although the error rate is
higher in that case). Targets with single instruction, rounding mode
independent, to nearest integer rounding and conversion can use them
by setting TOINT_INTRINSICS and adding the necessary code to their
math_private.h.
The __exp1 code uses the same algorithm, so the error bound of pow
increased a bit.
New double precision error handling code was added following the
style of the single precision error handling code.
Improvements on Cortex-A72 compared to current glibc master:
exp thruput: 1.61x in [-9.9 9.9]
exp latency: 1.53x in [-9.9 9.9]
exp thruput: 1.13x in [0.5 1]
exp latency: 1.30x in [0.5 1]
exp2 thruput: 2.03x in [-9.9 9.9]
exp2 latency: 1.64x in [-9.9 9.9]
For small (< 1) inputs the current exp code uses a separate algorithm
so the speed up there is less.
Was tested on
aarch64-linux-gnu (TOINT_INTRINSICS, fma contraction) and
arm-linux-gnueabihf (!TOINT_INTRINSICS, no fma contraction) and
x86_64-linux-gnu (!TOINT_INTRINSICS, no fma contraction) and
powerpc64le-linux-gnu (!TOINT_INTRINSICS, fma contraction) targets,
only non-nearest rounding ulp errors increase and they are within
acceptable bounds (ulp updates are in separate patches).
* NEWS: Mention exp and exp2 improvements.
* math/Makefile (libm-support): Remove t_exp.
(type-double-routines): Add math_err and e_exp_data.
* sysdeps/aarch64/libm-test-ulps: Update.
* sysdeps/arm/libm-test-ulps: Update.
* sysdeps/i386/fpu/e_exp_data.c: New file.
* sysdeps/i386/fpu/math_err.c: New file.
* sysdeps/i386/fpu/t_exp.c: Remove.
* sysdeps/ia64/fpu/e_exp_data.c: New file.
* sysdeps/ia64/fpu/math_err.c: New file.
* sysdeps/ia64/fpu/t_exp.c: Remove.
* sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
* sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
* sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
* sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
* sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
* sysdeps/ieee754/dbl-64/math_config.h: New file.
* sysdeps/ieee754/dbl-64/math_err.c: New file.
* sysdeps/ieee754/dbl-64/t_exp.c: Remove.
* sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
* sysdeps/ieee754/dbl-64/uexp.h: Remove.
* sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
* sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
* sysdeps/m68k/m680x0/fpu/math_err.c: New file.
* sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
* sysdeps/powerpc/fpu/libm-test-ulps: Update.
* sysdeps/x86_64/fpu/libm-test-ulps: Update.
2018-02-12 18:16:03 +00:00
|
|
|
double: 3
|
2014-06-30 21:20:35 +00:00
|
|
|
float: 3
|
|
|
|
|
|
|
|
Function: Real part of "ccos_upward":
|
|
|
|
double: 1
|
|
|
|
float: 2
|
|
|
|
|
|
|
|
Function: Imaginary part of "ccos_upward":
|
|
|
|
double: 2
|
|
|
|
float: 2
|
|
|
|
|
|
|
|
Function: Real part of "ccosh":
|
|
|
|
double: 1
|
|
|
|
float: 1
|
|
|
|
|
|
|
|
Function: Imaginary part of "ccosh":
|
|
|
|
double: 1
|
|
|
|
float: 1
|
|
|
|
|
|
|
|
Function: Real part of "ccosh_downward":
|
Add new exp and exp2 implementations
Optimized exp and exp2 implementations using a lookup table for
fractional powers of 2. There are several variants, see e_exp_data.c,
they can be selected by modifying math_config.h allowing different
tradeoffs.
The default selection should be acceptable as generic libm code.
Worst case error is 0.509 ULP for exp and 0.507 ULP for exp2, on
aarch64 the rodata size is 2160 bytes, shared between exp and exp2.
On aarch64 .text + .rodata size decreased by 24912 bytes.
The non-nearest rounding error is less than 1 ULP even on targets
without efficient round implementation (although the error rate is
higher in that case). Targets with single instruction, rounding mode
independent, to nearest integer rounding and conversion can use them
by setting TOINT_INTRINSICS and adding the necessary code to their
math_private.h.
The __exp1 code uses the same algorithm, so the error bound of pow
increased a bit.
New double precision error handling code was added following the
style of the single precision error handling code.
Improvements on Cortex-A72 compared to current glibc master:
exp thruput: 1.61x in [-9.9 9.9]
exp latency: 1.53x in [-9.9 9.9]
exp thruput: 1.13x in [0.5 1]
exp latency: 1.30x in [0.5 1]
exp2 thruput: 2.03x in [-9.9 9.9]
exp2 latency: 1.64x in [-9.9 9.9]
For small (< 1) inputs the current exp code uses a separate algorithm
so the speed up there is less.
Was tested on
aarch64-linux-gnu (TOINT_INTRINSICS, fma contraction) and
arm-linux-gnueabihf (!TOINT_INTRINSICS, no fma contraction) and
x86_64-linux-gnu (!TOINT_INTRINSICS, no fma contraction) and
powerpc64le-linux-gnu (!TOINT_INTRINSICS, fma contraction) targets,
only non-nearest rounding ulp errors increase and they are within
acceptable bounds (ulp updates are in separate patches).
* NEWS: Mention exp and exp2 improvements.
* math/Makefile (libm-support): Remove t_exp.
(type-double-routines): Add math_err and e_exp_data.
* sysdeps/aarch64/libm-test-ulps: Update.
* sysdeps/arm/libm-test-ulps: Update.
* sysdeps/i386/fpu/e_exp_data.c: New file.
* sysdeps/i386/fpu/math_err.c: New file.
* sysdeps/i386/fpu/t_exp.c: Remove.
* sysdeps/ia64/fpu/e_exp_data.c: New file.
* sysdeps/ia64/fpu/math_err.c: New file.
* sysdeps/ia64/fpu/t_exp.c: Remove.
* sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
* sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
* sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
* sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
* sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
* sysdeps/ieee754/dbl-64/math_config.h: New file.
* sysdeps/ieee754/dbl-64/math_err.c: New file.
* sysdeps/ieee754/dbl-64/t_exp.c: Remove.
* sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
* sysdeps/ieee754/dbl-64/uexp.h: Remove.
* sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
* sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
* sysdeps/m68k/m680x0/fpu/math_err.c: New file.
* sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
* sysdeps/powerpc/fpu/libm-test-ulps: Update.
* sysdeps/x86_64/fpu/libm-test-ulps: Update.
2018-02-12 18:16:03 +00:00
|
|
|
double: 2
|
2014-06-30 21:20:35 +00:00
|
|
|
float: 3
|
|
|
|
|
|
|
|
Function: Imaginary part of "ccosh_downward":
|
Add new exp and exp2 implementations
Optimized exp and exp2 implementations using a lookup table for
fractional powers of 2. There are several variants, see e_exp_data.c,
they can be selected by modifying math_config.h allowing different
tradeoffs.
The default selection should be acceptable as generic libm code.
Worst case error is 0.509 ULP for exp and 0.507 ULP for exp2, on
aarch64 the rodata size is 2160 bytes, shared between exp and exp2.
On aarch64 .text + .rodata size decreased by 24912 bytes.
The non-nearest rounding error is less than 1 ULP even on targets
without efficient round implementation (although the error rate is
higher in that case). Targets with single instruction, rounding mode
independent, to nearest integer rounding and conversion can use them
by setting TOINT_INTRINSICS and adding the necessary code to their
math_private.h.
The __exp1 code uses the same algorithm, so the error bound of pow
increased a bit.
New double precision error handling code was added following the
style of the single precision error handling code.
Improvements on Cortex-A72 compared to current glibc master:
exp thruput: 1.61x in [-9.9 9.9]
exp latency: 1.53x in [-9.9 9.9]
exp thruput: 1.13x in [0.5 1]
exp latency: 1.30x in [0.5 1]
exp2 thruput: 2.03x in [-9.9 9.9]
exp2 latency: 1.64x in [-9.9 9.9]
For small (< 1) inputs the current exp code uses a separate algorithm
so the speed up there is less.
Was tested on
aarch64-linux-gnu (TOINT_INTRINSICS, fma contraction) and
arm-linux-gnueabihf (!TOINT_INTRINSICS, no fma contraction) and
x86_64-linux-gnu (!TOINT_INTRINSICS, no fma contraction) and
powerpc64le-linux-gnu (!TOINT_INTRINSICS, fma contraction) targets,
only non-nearest rounding ulp errors increase and they are within
acceptable bounds (ulp updates are in separate patches).
* NEWS: Mention exp and exp2 improvements.
* math/Makefile (libm-support): Remove t_exp.
(type-double-routines): Add math_err and e_exp_data.
* sysdeps/aarch64/libm-test-ulps: Update.
* sysdeps/arm/libm-test-ulps: Update.
* sysdeps/i386/fpu/e_exp_data.c: New file.
* sysdeps/i386/fpu/math_err.c: New file.
* sysdeps/i386/fpu/t_exp.c: Remove.
* sysdeps/ia64/fpu/e_exp_data.c: New file.
* sysdeps/ia64/fpu/math_err.c: New file.
* sysdeps/ia64/fpu/t_exp.c: Remove.
* sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
* sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
* sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
* sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
* sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
* sysdeps/ieee754/dbl-64/math_config.h: New file.
* sysdeps/ieee754/dbl-64/math_err.c: New file.
* sysdeps/ieee754/dbl-64/t_exp.c: Remove.
* sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
* sysdeps/ieee754/dbl-64/uexp.h: Remove.
* sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
* sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
* sysdeps/m68k/m680x0/fpu/math_err.c: New file.
* sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
* sysdeps/powerpc/fpu/libm-test-ulps: Update.
* sysdeps/x86_64/fpu/libm-test-ulps: Update.
2018-02-12 18:16:03 +00:00
|
|
|
double: 3
|
2014-06-30 21:20:35 +00:00
|
|
|
float: 3
|
|
|
|
|
|
|
|
Function: Real part of "ccosh_towardzero":
|
Add new exp and exp2 implementations
Optimized exp and exp2 implementations using a lookup table for
fractional powers of 2. There are several variants, see e_exp_data.c,
they can be selected by modifying math_config.h allowing different
tradeoffs.
The default selection should be acceptable as generic libm code.
Worst case error is 0.509 ULP for exp and 0.507 ULP for exp2, on
aarch64 the rodata size is 2160 bytes, shared between exp and exp2.
On aarch64 .text + .rodata size decreased by 24912 bytes.
The non-nearest rounding error is less than 1 ULP even on targets
without efficient round implementation (although the error rate is
higher in that case). Targets with single instruction, rounding mode
independent, to nearest integer rounding and conversion can use them
by setting TOINT_INTRINSICS and adding the necessary code to their
math_private.h.
The __exp1 code uses the same algorithm, so the error bound of pow
increased a bit.
New double precision error handling code was added following the
style of the single precision error handling code.
Improvements on Cortex-A72 compared to current glibc master:
exp thruput: 1.61x in [-9.9 9.9]
exp latency: 1.53x in [-9.9 9.9]
exp thruput: 1.13x in [0.5 1]
exp latency: 1.30x in [0.5 1]
exp2 thruput: 2.03x in [-9.9 9.9]
exp2 latency: 1.64x in [-9.9 9.9]
For small (< 1) inputs the current exp code uses a separate algorithm
so the speed up there is less.
Was tested on
aarch64-linux-gnu (TOINT_INTRINSICS, fma contraction) and
arm-linux-gnueabihf (!TOINT_INTRINSICS, no fma contraction) and
x86_64-linux-gnu (!TOINT_INTRINSICS, no fma contraction) and
powerpc64le-linux-gnu (!TOINT_INTRINSICS, fma contraction) targets,
only non-nearest rounding ulp errors increase and they are within
acceptable bounds (ulp updates are in separate patches).
* NEWS: Mention exp and exp2 improvements.
* math/Makefile (libm-support): Remove t_exp.
(type-double-routines): Add math_err and e_exp_data.
* sysdeps/aarch64/libm-test-ulps: Update.
* sysdeps/arm/libm-test-ulps: Update.
* sysdeps/i386/fpu/e_exp_data.c: New file.
* sysdeps/i386/fpu/math_err.c: New file.
* sysdeps/i386/fpu/t_exp.c: Remove.
* sysdeps/ia64/fpu/e_exp_data.c: New file.
* sysdeps/ia64/fpu/math_err.c: New file.
* sysdeps/ia64/fpu/t_exp.c: Remove.
* sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
* sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
* sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
* sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
* sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
* sysdeps/ieee754/dbl-64/math_config.h: New file.
* sysdeps/ieee754/dbl-64/math_err.c: New file.
* sysdeps/ieee754/dbl-64/t_exp.c: Remove.
* sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
* sysdeps/ieee754/dbl-64/uexp.h: Remove.
* sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
* sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
* sysdeps/m68k/m680x0/fpu/math_err.c: New file.
* sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
* sysdeps/powerpc/fpu/libm-test-ulps: Update.
* sysdeps/x86_64/fpu/libm-test-ulps: Update.
2018-02-12 18:16:03 +00:00
|
|
|
double: 2
|
2014-06-30 21:20:35 +00:00
|
|
|
float: 3
|
|
|
|
|
|
|
|
Function: Imaginary part of "ccosh_towardzero":
|
Add new exp and exp2 implementations
Optimized exp and exp2 implementations using a lookup table for
fractional powers of 2. There are several variants, see e_exp_data.c,
they can be selected by modifying math_config.h allowing different
tradeoffs.
The default selection should be acceptable as generic libm code.
Worst case error is 0.509 ULP for exp and 0.507 ULP for exp2, on
aarch64 the rodata size is 2160 bytes, shared between exp and exp2.
On aarch64 .text + .rodata size decreased by 24912 bytes.
The non-nearest rounding error is less than 1 ULP even on targets
without efficient round implementation (although the error rate is
higher in that case). Targets with single instruction, rounding mode
independent, to nearest integer rounding and conversion can use them
by setting TOINT_INTRINSICS and adding the necessary code to their
math_private.h.
The __exp1 code uses the same algorithm, so the error bound of pow
increased a bit.
New double precision error handling code was added following the
style of the single precision error handling code.
Improvements on Cortex-A72 compared to current glibc master:
exp thruput: 1.61x in [-9.9 9.9]
exp latency: 1.53x in [-9.9 9.9]
exp thruput: 1.13x in [0.5 1]
exp latency: 1.30x in [0.5 1]
exp2 thruput: 2.03x in [-9.9 9.9]
exp2 latency: 1.64x in [-9.9 9.9]
For small (< 1) inputs the current exp code uses a separate algorithm
so the speed up there is less.
Was tested on
aarch64-linux-gnu (TOINT_INTRINSICS, fma contraction) and
arm-linux-gnueabihf (!TOINT_INTRINSICS, no fma contraction) and
x86_64-linux-gnu (!TOINT_INTRINSICS, no fma contraction) and
powerpc64le-linux-gnu (!TOINT_INTRINSICS, fma contraction) targets,
only non-nearest rounding ulp errors increase and they are within
acceptable bounds (ulp updates are in separate patches).
* NEWS: Mention exp and exp2 improvements.
* math/Makefile (libm-support): Remove t_exp.
(type-double-routines): Add math_err and e_exp_data.
* sysdeps/aarch64/libm-test-ulps: Update.
* sysdeps/arm/libm-test-ulps: Update.
* sysdeps/i386/fpu/e_exp_data.c: New file.
* sysdeps/i386/fpu/math_err.c: New file.
* sysdeps/i386/fpu/t_exp.c: Remove.
* sysdeps/ia64/fpu/e_exp_data.c: New file.
* sysdeps/ia64/fpu/math_err.c: New file.
* sysdeps/ia64/fpu/t_exp.c: Remove.
* sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
* sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
* sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
* sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
* sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
* sysdeps/ieee754/dbl-64/math_config.h: New file.
* sysdeps/ieee754/dbl-64/math_err.c: New file.
* sysdeps/ieee754/dbl-64/t_exp.c: Remove.
* sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
* sysdeps/ieee754/dbl-64/uexp.h: Remove.
* sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
* sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
* sysdeps/m68k/m680x0/fpu/math_err.c: New file.
* sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
* sysdeps/powerpc/fpu/libm-test-ulps: Update.
* sysdeps/x86_64/fpu/libm-test-ulps: Update.
2018-02-12 18:16:03 +00:00
|
|
|
double: 3
|
2014-06-30 21:20:35 +00:00
|
|
|
float: 3
|
|
|
|
|
|
|
|
Function: Real part of "ccosh_upward":
|
|
|
|
double: 1
|
|
|
|
float: 2
|
|
|
|
|
|
|
|
Function: Imaginary part of "ccosh_upward":
|
|
|
|
double: 2
|
|
|
|
float: 2
|
|
|
|
|
|
|
|
Function: Real part of "cexp":
|
|
|
|
double: 2
|
|
|
|
float: 1
|
|
|
|
|
|
|
|
Function: Imaginary part of "cexp":
|
|
|
|
double: 1
|
|
|
|
float: 2
|
|
|
|
|
2015-07-01 17:50:15 +00:00
|
|
|
Function: Real part of "cexp_downward":
|
Add new exp and exp2 implementations
Optimized exp and exp2 implementations using a lookup table for
fractional powers of 2. There are several variants, see e_exp_data.c,
they can be selected by modifying math_config.h allowing different
tradeoffs.
The default selection should be acceptable as generic libm code.
Worst case error is 0.509 ULP for exp and 0.507 ULP for exp2, on
aarch64 the rodata size is 2160 bytes, shared between exp and exp2.
On aarch64 .text + .rodata size decreased by 24912 bytes.
The non-nearest rounding error is less than 1 ULP even on targets
without efficient round implementation (although the error rate is
higher in that case). Targets with single instruction, rounding mode
independent, to nearest integer rounding and conversion can use them
by setting TOINT_INTRINSICS and adding the necessary code to their
math_private.h.
The __exp1 code uses the same algorithm, so the error bound of pow
increased a bit.
New double precision error handling code was added following the
style of the single precision error handling code.
Improvements on Cortex-A72 compared to current glibc master:
exp thruput: 1.61x in [-9.9 9.9]
exp latency: 1.53x in [-9.9 9.9]
exp thruput: 1.13x in [0.5 1]
exp latency: 1.30x in [0.5 1]
exp2 thruput: 2.03x in [-9.9 9.9]
exp2 latency: 1.64x in [-9.9 9.9]
For small (< 1) inputs the current exp code uses a separate algorithm
so the speed up there is less.
Was tested on
aarch64-linux-gnu (TOINT_INTRINSICS, fma contraction) and
arm-linux-gnueabihf (!TOINT_INTRINSICS, no fma contraction) and
x86_64-linux-gnu (!TOINT_INTRINSICS, no fma contraction) and
powerpc64le-linux-gnu (!TOINT_INTRINSICS, fma contraction) targets,
only non-nearest rounding ulp errors increase and they are within
acceptable bounds (ulp updates are in separate patches).
* NEWS: Mention exp and exp2 improvements.
* math/Makefile (libm-support): Remove t_exp.
(type-double-routines): Add math_err and e_exp_data.
* sysdeps/aarch64/libm-test-ulps: Update.
* sysdeps/arm/libm-test-ulps: Update.
* sysdeps/i386/fpu/e_exp_data.c: New file.
* sysdeps/i386/fpu/math_err.c: New file.
* sysdeps/i386/fpu/t_exp.c: Remove.
* sysdeps/ia64/fpu/e_exp_data.c: New file.
* sysdeps/ia64/fpu/math_err.c: New file.
* sysdeps/ia64/fpu/t_exp.c: Remove.
* sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
* sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
* sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
* sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
* sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
* sysdeps/ieee754/dbl-64/math_config.h: New file.
* sysdeps/ieee754/dbl-64/math_err.c: New file.
* sysdeps/ieee754/dbl-64/t_exp.c: Remove.
* sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
* sysdeps/ieee754/dbl-64/uexp.h: Remove.
* sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
* sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
* sysdeps/m68k/m680x0/fpu/math_err.c: New file.
* sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
* sysdeps/powerpc/fpu/libm-test-ulps: Update.
* sysdeps/x86_64/fpu/libm-test-ulps: Update.
2018-02-12 18:16:03 +00:00
|
|
|
double: 2
|
2015-07-01 17:50:15 +00:00
|
|
|
float: 2
|
2014-06-30 21:20:35 +00:00
|
|
|
|
2015-07-01 17:50:15 +00:00
|
|
|
Function: Imaginary part of "cexp_downward":
|
Add new exp and exp2 implementations
Optimized exp and exp2 implementations using a lookup table for
fractional powers of 2. There are several variants, see e_exp_data.c,
they can be selected by modifying math_config.h allowing different
tradeoffs.
The default selection should be acceptable as generic libm code.
Worst case error is 0.509 ULP for exp and 0.507 ULP for exp2, on
aarch64 the rodata size is 2160 bytes, shared between exp and exp2.
On aarch64 .text + .rodata size decreased by 24912 bytes.
The non-nearest rounding error is less than 1 ULP even on targets
without efficient round implementation (although the error rate is
higher in that case). Targets with single instruction, rounding mode
independent, to nearest integer rounding and conversion can use them
by setting TOINT_INTRINSICS and adding the necessary code to their
math_private.h.
The __exp1 code uses the same algorithm, so the error bound of pow
increased a bit.
New double precision error handling code was added following the
style of the single precision error handling code.
Improvements on Cortex-A72 compared to current glibc master:
exp thruput: 1.61x in [-9.9 9.9]
exp latency: 1.53x in [-9.9 9.9]
exp thruput: 1.13x in [0.5 1]
exp latency: 1.30x in [0.5 1]
exp2 thruput: 2.03x in [-9.9 9.9]
exp2 latency: 1.64x in [-9.9 9.9]
For small (< 1) inputs the current exp code uses a separate algorithm
so the speed up there is less.
Was tested on
aarch64-linux-gnu (TOINT_INTRINSICS, fma contraction) and
arm-linux-gnueabihf (!TOINT_INTRINSICS, no fma contraction) and
x86_64-linux-gnu (!TOINT_INTRINSICS, no fma contraction) and
powerpc64le-linux-gnu (!TOINT_INTRINSICS, fma contraction) targets,
only non-nearest rounding ulp errors increase and they are within
acceptable bounds (ulp updates are in separate patches).
* NEWS: Mention exp and exp2 improvements.
* math/Makefile (libm-support): Remove t_exp.
(type-double-routines): Add math_err and e_exp_data.
* sysdeps/aarch64/libm-test-ulps: Update.
* sysdeps/arm/libm-test-ulps: Update.
* sysdeps/i386/fpu/e_exp_data.c: New file.
* sysdeps/i386/fpu/math_err.c: New file.
* sysdeps/i386/fpu/t_exp.c: Remove.
* sysdeps/ia64/fpu/e_exp_data.c: New file.
* sysdeps/ia64/fpu/math_err.c: New file.
* sysdeps/ia64/fpu/t_exp.c: Remove.
* sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
* sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
* sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
* sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
* sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
* sysdeps/ieee754/dbl-64/math_config.h: New file.
* sysdeps/ieee754/dbl-64/math_err.c: New file.
* sysdeps/ieee754/dbl-64/t_exp.c: Remove.
* sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
* sysdeps/ieee754/dbl-64/uexp.h: Remove.
* sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
* sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
* sysdeps/m68k/m680x0/fpu/math_err.c: New file.
* sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
* sysdeps/powerpc/fpu/libm-test-ulps: Update.
* sysdeps/x86_64/fpu/libm-test-ulps: Update.
2018-02-12 18:16:03 +00:00
|
|
|
double: 3
|
2015-07-01 17:50:15 +00:00
|
|
|
float: 3
|
2014-06-30 21:20:35 +00:00
|
|
|
|
2015-07-01 17:50:15 +00:00
|
|
|
Function: Real part of "cexp_towardzero":
|
Add new exp and exp2 implementations
Optimized exp and exp2 implementations using a lookup table for
fractional powers of 2. There are several variants, see e_exp_data.c,
they can be selected by modifying math_config.h allowing different
tradeoffs.
The default selection should be acceptable as generic libm code.
Worst case error is 0.509 ULP for exp and 0.507 ULP for exp2, on
aarch64 the rodata size is 2160 bytes, shared between exp and exp2.
On aarch64 .text + .rodata size decreased by 24912 bytes.
The non-nearest rounding error is less than 1 ULP even on targets
without efficient round implementation (although the error rate is
higher in that case). Targets with single instruction, rounding mode
independent, to nearest integer rounding and conversion can use them
by setting TOINT_INTRINSICS and adding the necessary code to their
math_private.h.
The __exp1 code uses the same algorithm, so the error bound of pow
increased a bit.
New double precision error handling code was added following the
style of the single precision error handling code.
Improvements on Cortex-A72 compared to current glibc master:
exp thruput: 1.61x in [-9.9 9.9]
exp latency: 1.53x in [-9.9 9.9]
exp thruput: 1.13x in [0.5 1]
exp latency: 1.30x in [0.5 1]
exp2 thruput: 2.03x in [-9.9 9.9]
exp2 latency: 1.64x in [-9.9 9.9]
For small (< 1) inputs the current exp code uses a separate algorithm
so the speed up there is less.
Was tested on
aarch64-linux-gnu (TOINT_INTRINSICS, fma contraction) and
arm-linux-gnueabihf (!TOINT_INTRINSICS, no fma contraction) and
x86_64-linux-gnu (!TOINT_INTRINSICS, no fma contraction) and
powerpc64le-linux-gnu (!TOINT_INTRINSICS, fma contraction) targets,
only non-nearest rounding ulp errors increase and they are within
acceptable bounds (ulp updates are in separate patches).
* NEWS: Mention exp and exp2 improvements.
* math/Makefile (libm-support): Remove t_exp.
(type-double-routines): Add math_err and e_exp_data.
* sysdeps/aarch64/libm-test-ulps: Update.
* sysdeps/arm/libm-test-ulps: Update.
* sysdeps/i386/fpu/e_exp_data.c: New file.
* sysdeps/i386/fpu/math_err.c: New file.
* sysdeps/i386/fpu/t_exp.c: Remove.
* sysdeps/ia64/fpu/e_exp_data.c: New file.
* sysdeps/ia64/fpu/math_err.c: New file.
* sysdeps/ia64/fpu/t_exp.c: Remove.
* sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
* sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
* sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
* sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
* sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
* sysdeps/ieee754/dbl-64/math_config.h: New file.
* sysdeps/ieee754/dbl-64/math_err.c: New file.
* sysdeps/ieee754/dbl-64/t_exp.c: Remove.
* sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
* sysdeps/ieee754/dbl-64/uexp.h: Remove.
* sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
* sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
* sysdeps/m68k/m680x0/fpu/math_err.c: New file.
* sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
* sysdeps/powerpc/fpu/libm-test-ulps: Update.
* sysdeps/x86_64/fpu/libm-test-ulps: Update.
2018-02-12 18:16:03 +00:00
|
|
|
double: 2
|
2014-02-21 17:21:13 +00:00
|
|
|
float: 2
|
2000-04-12 23:39:44 +00:00
|
|
|
|
2015-07-01 17:50:15 +00:00
|
|
|
Function: Imaginary part of "cexp_towardzero":
|
Add new exp and exp2 implementations
Optimized exp and exp2 implementations using a lookup table for
fractional powers of 2. There are several variants, see e_exp_data.c,
they can be selected by modifying math_config.h allowing different
tradeoffs.
The default selection should be acceptable as generic libm code.
Worst case error is 0.509 ULP for exp and 0.507 ULP for exp2, on
aarch64 the rodata size is 2160 bytes, shared between exp and exp2.
On aarch64 .text + .rodata size decreased by 24912 bytes.
The non-nearest rounding error is less than 1 ULP even on targets
without efficient round implementation (although the error rate is
higher in that case). Targets with single instruction, rounding mode
independent, to nearest integer rounding and conversion can use them
by setting TOINT_INTRINSICS and adding the necessary code to their
math_private.h.
The __exp1 code uses the same algorithm, so the error bound of pow
increased a bit.
New double precision error handling code was added following the
style of the single precision error handling code.
Improvements on Cortex-A72 compared to current glibc master:
exp thruput: 1.61x in [-9.9 9.9]
exp latency: 1.53x in [-9.9 9.9]
exp thruput: 1.13x in [0.5 1]
exp latency: 1.30x in [0.5 1]
exp2 thruput: 2.03x in [-9.9 9.9]
exp2 latency: 1.64x in [-9.9 9.9]
For small (< 1) inputs the current exp code uses a separate algorithm
so the speed up there is less.
Was tested on
aarch64-linux-gnu (TOINT_INTRINSICS, fma contraction) and
arm-linux-gnueabihf (!TOINT_INTRINSICS, no fma contraction) and
x86_64-linux-gnu (!TOINT_INTRINSICS, no fma contraction) and
powerpc64le-linux-gnu (!TOINT_INTRINSICS, fma contraction) targets,
only non-nearest rounding ulp errors increase and they are within
acceptable bounds (ulp updates are in separate patches).
* NEWS: Mention exp and exp2 improvements.
* math/Makefile (libm-support): Remove t_exp.
(type-double-routines): Add math_err and e_exp_data.
* sysdeps/aarch64/libm-test-ulps: Update.
* sysdeps/arm/libm-test-ulps: Update.
* sysdeps/i386/fpu/e_exp_data.c: New file.
* sysdeps/i386/fpu/math_err.c: New file.
* sysdeps/i386/fpu/t_exp.c: Remove.
* sysdeps/ia64/fpu/e_exp_data.c: New file.
* sysdeps/ia64/fpu/math_err.c: New file.
* sysdeps/ia64/fpu/t_exp.c: Remove.
* sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
* sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
* sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
* sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
* sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
* sysdeps/ieee754/dbl-64/math_config.h: New file.
* sysdeps/ieee754/dbl-64/math_err.c: New file.
* sysdeps/ieee754/dbl-64/t_exp.c: Remove.
* sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
* sysdeps/ieee754/dbl-64/uexp.h: Remove.
* sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
* sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
* sysdeps/m68k/m680x0/fpu/math_err.c: New file.
* sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
* sysdeps/powerpc/fpu/libm-test-ulps: Update.
* sysdeps/x86_64/fpu/libm-test-ulps: Update.
2018-02-12 18:16:03 +00:00
|
|
|
double: 3
|
2014-06-30 21:20:35 +00:00
|
|
|
float: 3
|
|
|
|
|
2015-07-01 17:50:15 +00:00
|
|
|
Function: Real part of "cexp_upward":
|
|
|
|
double: 1
|
2014-06-30 21:20:35 +00:00
|
|
|
float: 2
|
|
|
|
|
2015-07-01 17:50:15 +00:00
|
|
|
Function: Imaginary part of "cexp_upward":
|
Add new exp and exp2 implementations
Optimized exp and exp2 implementations using a lookup table for
fractional powers of 2. There are several variants, see e_exp_data.c,
they can be selected by modifying math_config.h allowing different
tradeoffs.
The default selection should be acceptable as generic libm code.
Worst case error is 0.509 ULP for exp and 0.507 ULP for exp2, on
aarch64 the rodata size is 2160 bytes, shared between exp and exp2.
On aarch64 .text + .rodata size decreased by 24912 bytes.
The non-nearest rounding error is less than 1 ULP even on targets
without efficient round implementation (although the error rate is
higher in that case). Targets with single instruction, rounding mode
independent, to nearest integer rounding and conversion can use them
by setting TOINT_INTRINSICS and adding the necessary code to their
math_private.h.
The __exp1 code uses the same algorithm, so the error bound of pow
increased a bit.
New double precision error handling code was added following the
style of the single precision error handling code.
Improvements on Cortex-A72 compared to current glibc master:
exp thruput: 1.61x in [-9.9 9.9]
exp latency: 1.53x in [-9.9 9.9]
exp thruput: 1.13x in [0.5 1]
exp latency: 1.30x in [0.5 1]
exp2 thruput: 2.03x in [-9.9 9.9]
exp2 latency: 1.64x in [-9.9 9.9]
For small (< 1) inputs the current exp code uses a separate algorithm
so the speed up there is less.
Was tested on
aarch64-linux-gnu (TOINT_INTRINSICS, fma contraction) and
arm-linux-gnueabihf (!TOINT_INTRINSICS, no fma contraction) and
x86_64-linux-gnu (!TOINT_INTRINSICS, no fma contraction) and
powerpc64le-linux-gnu (!TOINT_INTRINSICS, fma contraction) targets,
only non-nearest rounding ulp errors increase and they are within
acceptable bounds (ulp updates are in separate patches).
* NEWS: Mention exp and exp2 improvements.
* math/Makefile (libm-support): Remove t_exp.
(type-double-routines): Add math_err and e_exp_data.
* sysdeps/aarch64/libm-test-ulps: Update.
* sysdeps/arm/libm-test-ulps: Update.
* sysdeps/i386/fpu/e_exp_data.c: New file.
* sysdeps/i386/fpu/math_err.c: New file.
* sysdeps/i386/fpu/t_exp.c: Remove.
* sysdeps/ia64/fpu/e_exp_data.c: New file.
* sysdeps/ia64/fpu/math_err.c: New file.
* sysdeps/ia64/fpu/t_exp.c: Remove.
* sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
* sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
* sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
* sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
* sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
* sysdeps/ieee754/dbl-64/math_config.h: New file.
* sysdeps/ieee754/dbl-64/math_err.c: New file.
* sysdeps/ieee754/dbl-64/t_exp.c: Remove.
* sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
* sysdeps/ieee754/dbl-64/uexp.h: Remove.
* sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
* sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
* sysdeps/m68k/m680x0/fpu/math_err.c: New file.
* sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
* sysdeps/powerpc/fpu/libm-test-ulps: Update.
* sysdeps/x86_64/fpu/libm-test-ulps: Update.
2018-02-12 18:16:03 +00:00
|
|
|
double: 3
|
2014-06-30 21:20:35 +00:00
|
|
|
float: 2
|
|
|
|
|
2015-07-01 17:50:15 +00:00
|
|
|
Function: Real part of "clog":
|
2014-06-30 21:20:35 +00:00
|
|
|
double: 3
|
2015-10-09 22:30:26 +00:00
|
|
|
float: 3
|
2014-06-30 21:20:35 +00:00
|
|
|
|
2015-07-01 17:50:15 +00:00
|
|
|
Function: Imaginary part of "clog":
|
2021-04-01 17:02:05 +00:00
|
|
|
double: 1
|
2015-07-01 17:50:15 +00:00
|
|
|
float: 1
|
|
|
|
|
|
|
|
Function: Real part of "clog10":
|
|
|
|
double: 3
|
2015-10-09 22:30:26 +00:00
|
|
|
float: 4
|
2014-06-30 21:20:35 +00:00
|
|
|
|
2015-07-01 17:50:15 +00:00
|
|
|
Function: Imaginary part of "clog10":
|
2014-06-30 21:20:35 +00:00
|
|
|
double: 2
|
|
|
|
float: 2
|
|
|
|
|
2015-07-01 17:50:15 +00:00
|
|
|
Function: Real part of "clog10_downward":
|
2015-10-09 22:30:26 +00:00
|
|
|
double: 5
|
2017-10-05 22:17:30 +00:00
|
|
|
float: 5
|
2015-07-01 17:50:15 +00:00
|
|
|
|
|
|
|
Function: Imaginary part of "clog10_downward":
|
2014-06-30 21:20:35 +00:00
|
|
|
double: 2
|
2015-07-01 17:50:15 +00:00
|
|
|
float: 4
|
|
|
|
|
|
|
|
Function: Real part of "clog10_towardzero":
|
|
|
|
double: 5
|
2015-10-09 22:30:26 +00:00
|
|
|
float: 5
|
2015-07-01 17:50:15 +00:00
|
|
|
|
|
|
|
Function: Imaginary part of "clog10_towardzero":
|
|
|
|
double: 2
|
|
|
|
float: 4
|
|
|
|
|
|
|
|
Function: Real part of "clog10_upward":
|
2015-10-09 22:30:26 +00:00
|
|
|
double: 6
|
2015-07-01 17:50:15 +00:00
|
|
|
float: 5
|
|
|
|
|
|
|
|
Function: Imaginary part of "clog10_upward":
|
|
|
|
double: 2
|
2015-10-09 22:30:26 +00:00
|
|
|
float: 4
|
2015-07-01 17:50:15 +00:00
|
|
|
|
|
|
|
Function: Real part of "clog_downward":
|
2015-10-09 22:30:26 +00:00
|
|
|
double: 4
|
|
|
|
float: 3
|
2014-06-30 21:20:35 +00:00
|
|
|
|
|
|
|
Function: Imaginary part of "clog_downward":
|
|
|
|
double: 1
|
|
|
|
float: 2
|
|
|
|
|
|
|
|
Function: Real part of "clog_towardzero":
|
2015-10-09 22:30:26 +00:00
|
|
|
double: 4
|
|
|
|
float: 4
|
2014-06-30 21:20:35 +00:00
|
|
|
|
|
|
|
Function: Imaginary part of "clog_towardzero":
|
|
|
|
double: 1
|
2015-10-09 22:30:26 +00:00
|
|
|
float: 3
|
2014-06-30 21:20:35 +00:00
|
|
|
|
|
|
|
Function: Real part of "clog_upward":
|
2015-10-09 22:30:26 +00:00
|
|
|
double: 4
|
|
|
|
float: 3
|
2014-06-30 21:20:35 +00:00
|
|
|
|
|
|
|
Function: Imaginary part of "clog_upward":
|
2015-07-01 17:50:15 +00:00
|
|
|
double: 1
|
2014-06-30 21:20:35 +00:00
|
|
|
float: 2
|
|
|
|
|
|
|
|
Function: "cos":
|
2018-04-05 19:31:27 +00:00
|
|
|
double: 1
|
2014-06-30 21:20:35 +00:00
|
|
|
float: 1
|
|
|
|
|
|
|
|
Function: "cos_downward":
|
|
|
|
double: 1
|
|
|
|
float: 2
|
|
|
|
|
|
|
|
Function: "cos_towardzero":
|
|
|
|
double: 1
|
|
|
|
float: 1
|
|
|
|
|
|
|
|
Function: "cos_upward":
|
|
|
|
double: 1
|
|
|
|
float: 2
|
|
|
|
|
|
|
|
Function: "cosh":
|
2021-01-18 20:22:51 +00:00
|
|
|
double: 2
|
2020-04-08 11:50:27 +00:00
|
|
|
float: 2
|
2014-06-30 21:20:35 +00:00
|
|
|
|
|
|
|
Function: "cosh_downward":
|
2021-01-18 20:22:51 +00:00
|
|
|
double: 3
|
2014-06-30 21:20:35 +00:00
|
|
|
float: 1
|
|
|
|
|
|
|
|
Function: "cosh_towardzero":
|
2021-01-18 20:22:51 +00:00
|
|
|
double: 3
|
2014-06-30 21:20:35 +00:00
|
|
|
float: 1
|
|
|
|
|
|
|
|
Function: "cosh_upward":
|
Add new exp and exp2 implementations
Optimized exp and exp2 implementations using a lookup table for
fractional powers of 2. There are several variants, see e_exp_data.c,
they can be selected by modifying math_config.h allowing different
tradeoffs.
The default selection should be acceptable as generic libm code.
Worst case error is 0.509 ULP for exp and 0.507 ULP for exp2, on
aarch64 the rodata size is 2160 bytes, shared between exp and exp2.
On aarch64 .text + .rodata size decreased by 24912 bytes.
The non-nearest rounding error is less than 1 ULP even on targets
without efficient round implementation (although the error rate is
higher in that case). Targets with single instruction, rounding mode
independent, to nearest integer rounding and conversion can use them
by setting TOINT_INTRINSICS and adding the necessary code to their
math_private.h.
The __exp1 code uses the same algorithm, so the error bound of pow
increased a bit.
New double precision error handling code was added following the
style of the single precision error handling code.
Improvements on Cortex-A72 compared to current glibc master:
exp thruput: 1.61x in [-9.9 9.9]
exp latency: 1.53x in [-9.9 9.9]
exp thruput: 1.13x in [0.5 1]
exp latency: 1.30x in [0.5 1]
exp2 thruput: 2.03x in [-9.9 9.9]
exp2 latency: 1.64x in [-9.9 9.9]
For small (< 1) inputs the current exp code uses a separate algorithm
so the speed up there is less.
Was tested on
aarch64-linux-gnu (TOINT_INTRINSICS, fma contraction) and
arm-linux-gnueabihf (!TOINT_INTRINSICS, no fma contraction) and
x86_64-linux-gnu (!TOINT_INTRINSICS, no fma contraction) and
powerpc64le-linux-gnu (!TOINT_INTRINSICS, fma contraction) targets,
only non-nearest rounding ulp errors increase and they are within
acceptable bounds (ulp updates are in separate patches).
* NEWS: Mention exp and exp2 improvements.
* math/Makefile (libm-support): Remove t_exp.
(type-double-routines): Add math_err and e_exp_data.
* sysdeps/aarch64/libm-test-ulps: Update.
* sysdeps/arm/libm-test-ulps: Update.
* sysdeps/i386/fpu/e_exp_data.c: New file.
* sysdeps/i386/fpu/math_err.c: New file.
* sysdeps/i386/fpu/t_exp.c: Remove.
* sysdeps/ia64/fpu/e_exp_data.c: New file.
* sysdeps/ia64/fpu/math_err.c: New file.
* sysdeps/ia64/fpu/t_exp.c: Remove.
* sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
* sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
* sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
* sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
* sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
* sysdeps/ieee754/dbl-64/math_config.h: New file.
* sysdeps/ieee754/dbl-64/math_err.c: New file.
* sysdeps/ieee754/dbl-64/t_exp.c: Remove.
* sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
* sysdeps/ieee754/dbl-64/uexp.h: Remove.
* sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
* sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
* sysdeps/m68k/m680x0/fpu/math_err.c: New file.
* sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
* sysdeps/powerpc/fpu/libm-test-ulps: Update.
* sysdeps/x86_64/fpu/libm-test-ulps: Update.
2018-02-12 18:16:03 +00:00
|
|
|
double: 2
|
2014-06-30 21:20:35 +00:00
|
|
|
float: 2
|
|
|
|
|
|
|
|
Function: Real part of "cpow":
|
|
|
|
double: 2
|
2018-01-02 18:37:06 +00:00
|
|
|
float: 5
|
2014-06-30 21:20:35 +00:00
|
|
|
|
|
|
|
Function: Imaginary part of "cpow":
|
|
|
|
float: 2
|
|
|
|
|
|
|
|
Function: Real part of "cpow_downward":
|
Add new exp and exp2 implementations
Optimized exp and exp2 implementations using a lookup table for
fractional powers of 2. There are several variants, see e_exp_data.c,
they can be selected by modifying math_config.h allowing different
tradeoffs.
The default selection should be acceptable as generic libm code.
Worst case error is 0.509 ULP for exp and 0.507 ULP for exp2, on
aarch64 the rodata size is 2160 bytes, shared between exp and exp2.
On aarch64 .text + .rodata size decreased by 24912 bytes.
The non-nearest rounding error is less than 1 ULP even on targets
without efficient round implementation (although the error rate is
higher in that case). Targets with single instruction, rounding mode
independent, to nearest integer rounding and conversion can use them
by setting TOINT_INTRINSICS and adding the necessary code to their
math_private.h.
The __exp1 code uses the same algorithm, so the error bound of pow
increased a bit.
New double precision error handling code was added following the
style of the single precision error handling code.
Improvements on Cortex-A72 compared to current glibc master:
exp thruput: 1.61x in [-9.9 9.9]
exp latency: 1.53x in [-9.9 9.9]
exp thruput: 1.13x in [0.5 1]
exp latency: 1.30x in [0.5 1]
exp2 thruput: 2.03x in [-9.9 9.9]
exp2 latency: 1.64x in [-9.9 9.9]
For small (< 1) inputs the current exp code uses a separate algorithm
so the speed up there is less.
Was tested on
aarch64-linux-gnu (TOINT_INTRINSICS, fma contraction) and
arm-linux-gnueabihf (!TOINT_INTRINSICS, no fma contraction) and
x86_64-linux-gnu (!TOINT_INTRINSICS, no fma contraction) and
powerpc64le-linux-gnu (!TOINT_INTRINSICS, fma contraction) targets,
only non-nearest rounding ulp errors increase and they are within
acceptable bounds (ulp updates are in separate patches).
* NEWS: Mention exp and exp2 improvements.
* math/Makefile (libm-support): Remove t_exp.
(type-double-routines): Add math_err and e_exp_data.
* sysdeps/aarch64/libm-test-ulps: Update.
* sysdeps/arm/libm-test-ulps: Update.
* sysdeps/i386/fpu/e_exp_data.c: New file.
* sysdeps/i386/fpu/math_err.c: New file.
* sysdeps/i386/fpu/t_exp.c: Remove.
* sysdeps/ia64/fpu/e_exp_data.c: New file.
* sysdeps/ia64/fpu/math_err.c: New file.
* sysdeps/ia64/fpu/t_exp.c: Remove.
* sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
* sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
* sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
* sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
* sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
* sysdeps/ieee754/dbl-64/math_config.h: New file.
* sysdeps/ieee754/dbl-64/math_err.c: New file.
* sysdeps/ieee754/dbl-64/t_exp.c: Remove.
* sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
* sysdeps/ieee754/dbl-64/uexp.h: Remove.
* sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
* sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
* sysdeps/m68k/m680x0/fpu/math_err.c: New file.
* sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
* sysdeps/powerpc/fpu/libm-test-ulps: Update.
* sysdeps/x86_64/fpu/libm-test-ulps: Update.
2018-02-12 18:16:03 +00:00
|
|
|
double: 5
|
2014-06-30 21:20:35 +00:00
|
|
|
float: 8
|
|
|
|
|
|
|
|
Function: Imaginary part of "cpow_downward":
|
2015-07-01 17:50:15 +00:00
|
|
|
double: 1
|
2014-06-30 21:20:35 +00:00
|
|
|
float: 2
|
|
|
|
|
|
|
|
Function: Real part of "cpow_towardzero":
|
Add new exp and exp2 implementations
Optimized exp and exp2 implementations using a lookup table for
fractional powers of 2. There are several variants, see e_exp_data.c,
they can be selected by modifying math_config.h allowing different
tradeoffs.
The default selection should be acceptable as generic libm code.
Worst case error is 0.509 ULP for exp and 0.507 ULP for exp2, on
aarch64 the rodata size is 2160 bytes, shared between exp and exp2.
On aarch64 .text + .rodata size decreased by 24912 bytes.
The non-nearest rounding error is less than 1 ULP even on targets
without efficient round implementation (although the error rate is
higher in that case). Targets with single instruction, rounding mode
independent, to nearest integer rounding and conversion can use them
by setting TOINT_INTRINSICS and adding the necessary code to their
math_private.h.
The __exp1 code uses the same algorithm, so the error bound of pow
increased a bit.
New double precision error handling code was added following the
style of the single precision error handling code.
Improvements on Cortex-A72 compared to current glibc master:
exp thruput: 1.61x in [-9.9 9.9]
exp latency: 1.53x in [-9.9 9.9]
exp thruput: 1.13x in [0.5 1]
exp latency: 1.30x in [0.5 1]
exp2 thruput: 2.03x in [-9.9 9.9]
exp2 latency: 1.64x in [-9.9 9.9]
For small (< 1) inputs the current exp code uses a separate algorithm
so the speed up there is less.
Was tested on
aarch64-linux-gnu (TOINT_INTRINSICS, fma contraction) and
arm-linux-gnueabihf (!TOINT_INTRINSICS, no fma contraction) and
x86_64-linux-gnu (!TOINT_INTRINSICS, no fma contraction) and
powerpc64le-linux-gnu (!TOINT_INTRINSICS, fma contraction) targets,
only non-nearest rounding ulp errors increase and they are within
acceptable bounds (ulp updates are in separate patches).
* NEWS: Mention exp and exp2 improvements.
* math/Makefile (libm-support): Remove t_exp.
(type-double-routines): Add math_err and e_exp_data.
* sysdeps/aarch64/libm-test-ulps: Update.
* sysdeps/arm/libm-test-ulps: Update.
* sysdeps/i386/fpu/e_exp_data.c: New file.
* sysdeps/i386/fpu/math_err.c: New file.
* sysdeps/i386/fpu/t_exp.c: Remove.
* sysdeps/ia64/fpu/e_exp_data.c: New file.
* sysdeps/ia64/fpu/math_err.c: New file.
* sysdeps/ia64/fpu/t_exp.c: Remove.
* sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
* sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
* sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
* sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
* sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
* sysdeps/ieee754/dbl-64/math_config.h: New file.
* sysdeps/ieee754/dbl-64/math_err.c: New file.
* sysdeps/ieee754/dbl-64/t_exp.c: Remove.
* sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
* sysdeps/ieee754/dbl-64/uexp.h: Remove.
* sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
* sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
* sysdeps/m68k/m680x0/fpu/math_err.c: New file.
* sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
* sysdeps/powerpc/fpu/libm-test-ulps: Update.
* sysdeps/x86_64/fpu/libm-test-ulps: Update.
2018-02-12 18:16:03 +00:00
|
|
|
double: 5
|
2014-06-30 21:20:35 +00:00
|
|
|
float: 8
|
|
|
|
|
|
|
|
Function: Imaginary part of "cpow_towardzero":
|
2015-07-01 17:50:15 +00:00
|
|
|
double: 1
|
2014-06-30 21:20:35 +00:00
|
|
|
float: 2
|
|
|
|
|
|
|
|
Function: Real part of "cpow_upward":
|
|
|
|
double: 4
|
|
|
|
float: 1
|
|
|
|
|
|
|
|
Function: Imaginary part of "cpow_upward":
|
|
|
|
double: 1
|
|
|
|
float: 2
|
|
|
|
|
|
|
|
Function: Real part of "csin":
|
|
|
|
double: 1
|
|
|
|
float: 1
|
|
|
|
|
|
|
|
Function: Real part of "csin_downward":
|
Add new exp and exp2 implementations
Optimized exp and exp2 implementations using a lookup table for
fractional powers of 2. There are several variants, see e_exp_data.c,
they can be selected by modifying math_config.h allowing different
tradeoffs.
The default selection should be acceptable as generic libm code.
Worst case error is 0.509 ULP for exp and 0.507 ULP for exp2, on
aarch64 the rodata size is 2160 bytes, shared between exp and exp2.
On aarch64 .text + .rodata size decreased by 24912 bytes.
The non-nearest rounding error is less than 1 ULP even on targets
without efficient round implementation (although the error rate is
higher in that case). Targets with single instruction, rounding mode
independent, to nearest integer rounding and conversion can use them
by setting TOINT_INTRINSICS and adding the necessary code to their
math_private.h.
The __exp1 code uses the same algorithm, so the error bound of pow
increased a bit.
New double precision error handling code was added following the
style of the single precision error handling code.
Improvements on Cortex-A72 compared to current glibc master:
exp thruput: 1.61x in [-9.9 9.9]
exp latency: 1.53x in [-9.9 9.9]
exp thruput: 1.13x in [0.5 1]
exp latency: 1.30x in [0.5 1]
exp2 thruput: 2.03x in [-9.9 9.9]
exp2 latency: 1.64x in [-9.9 9.9]
For small (< 1) inputs the current exp code uses a separate algorithm
so the speed up there is less.
Was tested on
aarch64-linux-gnu (TOINT_INTRINSICS, fma contraction) and
arm-linux-gnueabihf (!TOINT_INTRINSICS, no fma contraction) and
x86_64-linux-gnu (!TOINT_INTRINSICS, no fma contraction) and
powerpc64le-linux-gnu (!TOINT_INTRINSICS, fma contraction) targets,
only non-nearest rounding ulp errors increase and they are within
acceptable bounds (ulp updates are in separate patches).
* NEWS: Mention exp and exp2 improvements.
* math/Makefile (libm-support): Remove t_exp.
(type-double-routines): Add math_err and e_exp_data.
* sysdeps/aarch64/libm-test-ulps: Update.
* sysdeps/arm/libm-test-ulps: Update.
* sysdeps/i386/fpu/e_exp_data.c: New file.
* sysdeps/i386/fpu/math_err.c: New file.
* sysdeps/i386/fpu/t_exp.c: Remove.
* sysdeps/ia64/fpu/e_exp_data.c: New file.
* sysdeps/ia64/fpu/math_err.c: New file.
* sysdeps/ia64/fpu/t_exp.c: Remove.
* sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
* sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
* sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
* sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
* sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
* sysdeps/ieee754/dbl-64/math_config.h: New file.
* sysdeps/ieee754/dbl-64/math_err.c: New file.
* sysdeps/ieee754/dbl-64/t_exp.c: Remove.
* sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
* sysdeps/ieee754/dbl-64/uexp.h: Remove.
* sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
* sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
* sysdeps/m68k/m680x0/fpu/math_err.c: New file.
* sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
* sysdeps/powerpc/fpu/libm-test-ulps: Update.
* sysdeps/x86_64/fpu/libm-test-ulps: Update.
2018-02-12 18:16:03 +00:00
|
|
|
double: 3
|
2014-06-30 21:20:35 +00:00
|
|
|
float: 3
|
|
|
|
|
|
|
|
Function: Imaginary part of "csin_downward":
|
|
|
|
double: 1
|
2015-07-01 17:50:15 +00:00
|
|
|
float: 1
|
2014-06-30 21:20:35 +00:00
|
|
|
|
|
|
|
Function: Real part of "csin_towardzero":
|
Add new exp and exp2 implementations
Optimized exp and exp2 implementations using a lookup table for
fractional powers of 2. There are several variants, see e_exp_data.c,
they can be selected by modifying math_config.h allowing different
tradeoffs.
The default selection should be acceptable as generic libm code.
Worst case error is 0.509 ULP for exp and 0.507 ULP for exp2, on
aarch64 the rodata size is 2160 bytes, shared between exp and exp2.
On aarch64 .text + .rodata size decreased by 24912 bytes.
The non-nearest rounding error is less than 1 ULP even on targets
without efficient round implementation (although the error rate is
higher in that case). Targets with single instruction, rounding mode
independent, to nearest integer rounding and conversion can use them
by setting TOINT_INTRINSICS and adding the necessary code to their
math_private.h.
The __exp1 code uses the same algorithm, so the error bound of pow
increased a bit.
New double precision error handling code was added following the
style of the single precision error handling code.
Improvements on Cortex-A72 compared to current glibc master:
exp thruput: 1.61x in [-9.9 9.9]
exp latency: 1.53x in [-9.9 9.9]
exp thruput: 1.13x in [0.5 1]
exp latency: 1.30x in [0.5 1]
exp2 thruput: 2.03x in [-9.9 9.9]
exp2 latency: 1.64x in [-9.9 9.9]
For small (< 1) inputs the current exp code uses a separate algorithm
so the speed up there is less.
Was tested on
aarch64-linux-gnu (TOINT_INTRINSICS, fma contraction) and
arm-linux-gnueabihf (!TOINT_INTRINSICS, no fma contraction) and
x86_64-linux-gnu (!TOINT_INTRINSICS, no fma contraction) and
powerpc64le-linux-gnu (!TOINT_INTRINSICS, fma contraction) targets,
only non-nearest rounding ulp errors increase and they are within
acceptable bounds (ulp updates are in separate patches).
* NEWS: Mention exp and exp2 improvements.
* math/Makefile (libm-support): Remove t_exp.
(type-double-routines): Add math_err and e_exp_data.
* sysdeps/aarch64/libm-test-ulps: Update.
* sysdeps/arm/libm-test-ulps: Update.
* sysdeps/i386/fpu/e_exp_data.c: New file.
* sysdeps/i386/fpu/math_err.c: New file.
* sysdeps/i386/fpu/t_exp.c: Remove.
* sysdeps/ia64/fpu/e_exp_data.c: New file.
* sysdeps/ia64/fpu/math_err.c: New file.
* sysdeps/ia64/fpu/t_exp.c: Remove.
* sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
* sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
* sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
* sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
* sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
* sysdeps/ieee754/dbl-64/math_config.h: New file.
* sysdeps/ieee754/dbl-64/math_err.c: New file.
* sysdeps/ieee754/dbl-64/t_exp.c: Remove.
* sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
* sysdeps/ieee754/dbl-64/uexp.h: Remove.
* sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
* sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
* sysdeps/m68k/m680x0/fpu/math_err.c: New file.
* sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
* sysdeps/powerpc/fpu/libm-test-ulps: Update.
* sysdeps/x86_64/fpu/libm-test-ulps: Update.
2018-02-12 18:16:03 +00:00
|
|
|
double: 3
|
2014-06-30 21:20:35 +00:00
|
|
|
float: 3
|
|
|
|
|
|
|
|
Function: Imaginary part of "csin_towardzero":
|
2015-07-01 17:50:15 +00:00
|
|
|
double: 1
|
|
|
|
float: 1
|
|
|
|
|
|
|
|
Function: Real part of "csin_upward":
|
2014-06-30 21:20:35 +00:00
|
|
|
double: 2
|
|
|
|
float: 2
|
|
|
|
|
|
|
|
Function: Imaginary part of "csin_upward":
|
|
|
|
double: 1
|
2015-07-01 17:50:15 +00:00
|
|
|
float: 2
|
2014-06-30 21:20:35 +00:00
|
|
|
|
|
|
|
Function: Real part of "csinh":
|
|
|
|
float: 1
|
|
|
|
|
|
|
|
Function: Imaginary part of "csinh":
|
|
|
|
double: 1
|
|
|
|
float: 1
|
|
|
|
|
|
|
|
Function: Real part of "csinh_downward":
|
2015-07-01 17:50:15 +00:00
|
|
|
double: 2
|
|
|
|
float: 2
|
2014-06-30 21:20:35 +00:00
|
|
|
|
|
|
|
Function: Imaginary part of "csinh_downward":
|
Add new exp and exp2 implementations
Optimized exp and exp2 implementations using a lookup table for
fractional powers of 2. There are several variants, see e_exp_data.c,
they can be selected by modifying math_config.h allowing different
tradeoffs.
The default selection should be acceptable as generic libm code.
Worst case error is 0.509 ULP for exp and 0.507 ULP for exp2, on
aarch64 the rodata size is 2160 bytes, shared between exp and exp2.
On aarch64 .text + .rodata size decreased by 24912 bytes.
The non-nearest rounding error is less than 1 ULP even on targets
without efficient round implementation (although the error rate is
higher in that case). Targets with single instruction, rounding mode
independent, to nearest integer rounding and conversion can use them
by setting TOINT_INTRINSICS and adding the necessary code to their
math_private.h.
The __exp1 code uses the same algorithm, so the error bound of pow
increased a bit.
New double precision error handling code was added following the
style of the single precision error handling code.
Improvements on Cortex-A72 compared to current glibc master:
exp thruput: 1.61x in [-9.9 9.9]
exp latency: 1.53x in [-9.9 9.9]
exp thruput: 1.13x in [0.5 1]
exp latency: 1.30x in [0.5 1]
exp2 thruput: 2.03x in [-9.9 9.9]
exp2 latency: 1.64x in [-9.9 9.9]
For small (< 1) inputs the current exp code uses a separate algorithm
so the speed up there is less.
Was tested on
aarch64-linux-gnu (TOINT_INTRINSICS, fma contraction) and
arm-linux-gnueabihf (!TOINT_INTRINSICS, no fma contraction) and
x86_64-linux-gnu (!TOINT_INTRINSICS, no fma contraction) and
powerpc64le-linux-gnu (!TOINT_INTRINSICS, fma contraction) targets,
only non-nearest rounding ulp errors increase and they are within
acceptable bounds (ulp updates are in separate patches).
* NEWS: Mention exp and exp2 improvements.
* math/Makefile (libm-support): Remove t_exp.
(type-double-routines): Add math_err and e_exp_data.
* sysdeps/aarch64/libm-test-ulps: Update.
* sysdeps/arm/libm-test-ulps: Update.
* sysdeps/i386/fpu/e_exp_data.c: New file.
* sysdeps/i386/fpu/math_err.c: New file.
* sysdeps/i386/fpu/t_exp.c: Remove.
* sysdeps/ia64/fpu/e_exp_data.c: New file.
* sysdeps/ia64/fpu/math_err.c: New file.
* sysdeps/ia64/fpu/t_exp.c: Remove.
* sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
* sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
* sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
* sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
* sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
* sysdeps/ieee754/dbl-64/math_config.h: New file.
* sysdeps/ieee754/dbl-64/math_err.c: New file.
* sysdeps/ieee754/dbl-64/t_exp.c: Remove.
* sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
* sysdeps/ieee754/dbl-64/uexp.h: Remove.
* sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
* sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
* sysdeps/m68k/m680x0/fpu/math_err.c: New file.
* sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
* sysdeps/powerpc/fpu/libm-test-ulps: Update.
* sysdeps/x86_64/fpu/libm-test-ulps: Update.
2018-02-12 18:16:03 +00:00
|
|
|
double: 3
|
2014-06-30 21:20:35 +00:00
|
|
|
float: 3
|
|
|
|
|
|
|
|
Function: Real part of "csinh_towardzero":
|
|
|
|
double: 2
|
|
|
|
float: 2
|
|
|
|
|
|
|
|
Function: Imaginary part of "csinh_towardzero":
|
Add new exp and exp2 implementations
Optimized exp and exp2 implementations using a lookup table for
fractional powers of 2. There are several variants, see e_exp_data.c,
they can be selected by modifying math_config.h allowing different
tradeoffs.
The default selection should be acceptable as generic libm code.
Worst case error is 0.509 ULP for exp and 0.507 ULP for exp2, on
aarch64 the rodata size is 2160 bytes, shared between exp and exp2.
On aarch64 .text + .rodata size decreased by 24912 bytes.
The non-nearest rounding error is less than 1 ULP even on targets
without efficient round implementation (although the error rate is
higher in that case). Targets with single instruction, rounding mode
independent, to nearest integer rounding and conversion can use them
by setting TOINT_INTRINSICS and adding the necessary code to their
math_private.h.
The __exp1 code uses the same algorithm, so the error bound of pow
increased a bit.
New double precision error handling code was added following the
style of the single precision error handling code.
Improvements on Cortex-A72 compared to current glibc master:
exp thruput: 1.61x in [-9.9 9.9]
exp latency: 1.53x in [-9.9 9.9]
exp thruput: 1.13x in [0.5 1]
exp latency: 1.30x in [0.5 1]
exp2 thruput: 2.03x in [-9.9 9.9]
exp2 latency: 1.64x in [-9.9 9.9]
For small (< 1) inputs the current exp code uses a separate algorithm
so the speed up there is less.
Was tested on
aarch64-linux-gnu (TOINT_INTRINSICS, fma contraction) and
arm-linux-gnueabihf (!TOINT_INTRINSICS, no fma contraction) and
x86_64-linux-gnu (!TOINT_INTRINSICS, no fma contraction) and
powerpc64le-linux-gnu (!TOINT_INTRINSICS, fma contraction) targets,
only non-nearest rounding ulp errors increase and they are within
acceptable bounds (ulp updates are in separate patches).
* NEWS: Mention exp and exp2 improvements.
* math/Makefile (libm-support): Remove t_exp.
(type-double-routines): Add math_err and e_exp_data.
* sysdeps/aarch64/libm-test-ulps: Update.
* sysdeps/arm/libm-test-ulps: Update.
* sysdeps/i386/fpu/e_exp_data.c: New file.
* sysdeps/i386/fpu/math_err.c: New file.
* sysdeps/i386/fpu/t_exp.c: Remove.
* sysdeps/ia64/fpu/e_exp_data.c: New file.
* sysdeps/ia64/fpu/math_err.c: New file.
* sysdeps/ia64/fpu/t_exp.c: Remove.
* sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
* sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
* sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
* sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
* sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
* sysdeps/ieee754/dbl-64/math_config.h: New file.
* sysdeps/ieee754/dbl-64/math_err.c: New file.
* sysdeps/ieee754/dbl-64/t_exp.c: Remove.
* sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
* sysdeps/ieee754/dbl-64/uexp.h: Remove.
* sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
* sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
* sysdeps/m68k/m680x0/fpu/math_err.c: New file.
* sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
* sysdeps/powerpc/fpu/libm-test-ulps: Update.
* sysdeps/x86_64/fpu/libm-test-ulps: Update.
2018-02-12 18:16:03 +00:00
|
|
|
double: 3
|
2014-06-30 21:20:35 +00:00
|
|
|
float: 3
|
|
|
|
|
|
|
|
Function: Real part of "csinh_upward":
|
|
|
|
double: 1
|
2015-07-01 17:50:15 +00:00
|
|
|
float: 2
|
2014-06-30 21:20:35 +00:00
|
|
|
|
|
|
|
Function: Imaginary part of "csinh_upward":
|
|
|
|
double: 2
|
|
|
|
float: 2
|
|
|
|
|
2015-07-01 17:50:15 +00:00
|
|
|
Function: Real part of "csqrt":
|
2014-06-30 21:20:35 +00:00
|
|
|
double: 2
|
|
|
|
float: 2
|
|
|
|
|
2015-07-01 17:50:15 +00:00
|
|
|
Function: Imaginary part of "csqrt":
|
2014-06-30 21:20:35 +00:00
|
|
|
double: 2
|
|
|
|
float: 2
|
|
|
|
|
2015-07-01 17:50:15 +00:00
|
|
|
Function: Real part of "csqrt_downward":
|
2015-10-09 22:30:26 +00:00
|
|
|
double: 5
|
2015-07-01 17:50:15 +00:00
|
|
|
float: 4
|
|
|
|
|
|
|
|
Function: Imaginary part of "csqrt_downward":
|
|
|
|
double: 4
|
|
|
|
float: 3
|
|
|
|
|
|
|
|
Function: Real part of "csqrt_towardzero":
|
2015-10-09 22:30:26 +00:00
|
|
|
double: 4
|
2015-07-01 17:50:15 +00:00
|
|
|
float: 3
|
|
|
|
|
|
|
|
Function: Imaginary part of "csqrt_towardzero":
|
|
|
|
double: 4
|
|
|
|
float: 3
|
|
|
|
|
|
|
|
Function: Real part of "csqrt_upward":
|
|
|
|
double: 5
|
|
|
|
float: 4
|
2014-06-30 21:20:35 +00:00
|
|
|
|
|
|
|
Function: Imaginary part of "csqrt_upward":
|
2015-07-01 17:50:15 +00:00
|
|
|
double: 3
|
|
|
|
float: 3
|
2014-06-30 21:20:35 +00:00
|
|
|
|
|
|
|
Function: Real part of "ctan":
|
|
|
|
double: 1
|
|
|
|
float: 1
|
|
|
|
|
|
|
|
Function: Imaginary part of "ctan":
|
|
|
|
double: 2
|
2018-01-02 18:37:06 +00:00
|
|
|
float: 2
|
2014-06-30 21:20:35 +00:00
|
|
|
|
|
|
|
Function: Real part of "ctan_downward":
|
|
|
|
double: 6
|
|
|
|
float: 5
|
|
|
|
|
|
|
|
Function: Imaginary part of "ctan_downward":
|
|
|
|
double: 2
|
2018-01-02 18:37:06 +00:00
|
|
|
float: 2
|
2014-06-30 21:20:35 +00:00
|
|
|
|
|
|
|
Function: Real part of "ctan_towardzero":
|
|
|
|
double: 5
|
|
|
|
float: 3
|
|
|
|
|
|
|
|
Function: Imaginary part of "ctan_towardzero":
|
|
|
|
double: 2
|
|
|
|
float: 2
|
|
|
|
|
|
|
|
Function: Real part of "ctan_upward":
|
|
|
|
double: 2
|
2018-01-02 18:37:06 +00:00
|
|
|
float: 4
|
2014-06-30 21:20:35 +00:00
|
|
|
|
|
|
|
Function: Imaginary part of "ctan_upward":
|
|
|
|
double: 2
|
|
|
|
float: 3
|
|
|
|
|
|
|
|
Function: Real part of "ctanh":
|
|
|
|
double: 2
|
2018-01-02 18:37:06 +00:00
|
|
|
float: 2
|
2014-06-30 21:20:35 +00:00
|
|
|
|
2012-05-30 21:16:52 +00:00
|
|
|
Function: Imaginary part of "ctanh":
|
2014-01-01 16:46:17 +00:00
|
|
|
double: 2
|
2000-04-12 23:39:44 +00:00
|
|
|
float: 2
|
|
|
|
|
2012-11-30 20:41:26 +00:00
|
|
|
Function: Real part of "ctanh_downward":
|
2014-01-01 16:46:17 +00:00
|
|
|
double: 4
|
2018-01-02 18:37:06 +00:00
|
|
|
float: 2
|
2012-11-30 20:41:26 +00:00
|
|
|
|
|
|
|
Function: Imaginary part of "ctanh_downward":
|
2014-01-01 16:46:17 +00:00
|
|
|
double: 6
|
|
|
|
float: 5
|
2012-11-30 20:41:26 +00:00
|
|
|
|
|
|
|
Function: Real part of "ctanh_towardzero":
|
2014-01-01 16:46:17 +00:00
|
|
|
double: 2
|
|
|
|
float: 2
|
2012-11-30 20:41:26 +00:00
|
|
|
|
|
|
|
Function: Imaginary part of "ctanh_towardzero":
|
2014-01-01 16:46:17 +00:00
|
|
|
double: 5
|
|
|
|
float: 3
|
2012-11-30 20:41:26 +00:00
|
|
|
|
|
|
|
Function: Real part of "ctanh_upward":
|
2014-01-01 16:46:17 +00:00
|
|
|
double: 2
|
|
|
|
float: 3
|
2012-11-30 20:41:26 +00:00
|
|
|
|
|
|
|
Function: Imaginary part of "ctanh_upward":
|
|
|
|
double: 2
|
2014-01-01 16:46:17 +00:00
|
|
|
float: 3
|
2012-11-30 20:41:26 +00:00
|
|
|
|
2008-07-18 13:18:53 +00:00
|
|
|
Function: "erf":
|
|
|
|
double: 1
|
2015-07-01 17:50:15 +00:00
|
|
|
float: 1
|
2008-07-18 13:18:53 +00:00
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: "erf_downward":
|
2015-07-01 17:50:15 +00:00
|
|
|
double: 1
|
2014-06-30 21:20:35 +00:00
|
|
|
float: 1
|
|
|
|
|
|
|
|
Function: "erf_towardzero":
|
2015-07-01 17:50:15 +00:00
|
|
|
double: 1
|
2014-06-30 21:20:35 +00:00
|
|
|
float: 1
|
|
|
|
|
|
|
|
Function: "erf_upward":
|
2012-05-30 21:16:52 +00:00
|
|
|
double: 1
|
|
|
|
float: 1
|
2000-04-12 23:39:44 +00:00
|
|
|
|
2015-07-01 17:50:15 +00:00
|
|
|
Function: "erfc":
|
2021-01-18 20:22:51 +00:00
|
|
|
double: 5
|
2020-04-08 11:50:27 +00:00
|
|
|
float: 3
|
2015-07-01 17:50:15 +00:00
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: "erfc_downward":
|
2015-10-09 22:30:26 +00:00
|
|
|
double: 5
|
2015-07-01 17:50:15 +00:00
|
|
|
float: 6
|
2012-05-30 21:16:52 +00:00
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: "erfc_towardzero":
|
2015-07-01 17:50:15 +00:00
|
|
|
double: 3
|
|
|
|
float: 4
|
2014-06-30 21:20:35 +00:00
|
|
|
|
|
|
|
Function: "erfc_upward":
|
2015-10-09 22:30:26 +00:00
|
|
|
double: 5
|
2015-07-01 17:50:15 +00:00
|
|
|
float: 6
|
|
|
|
|
2015-10-09 22:30:26 +00:00
|
|
|
Function: "exp":
|
2021-01-18 20:22:51 +00:00
|
|
|
double: 1
|
2015-10-09 22:30:26 +00:00
|
|
|
float: 1
|
|
|
|
|
2015-07-01 17:50:15 +00:00
|
|
|
Function: "exp10":
|
2014-06-30 21:20:35 +00:00
|
|
|
double: 2
|
2020-04-08 11:50:27 +00:00
|
|
|
float: 1
|
2014-06-30 21:20:35 +00:00
|
|
|
|
2015-07-01 17:50:15 +00:00
|
|
|
Function: "exp10_downward":
|
Add new exp and exp2 implementations
Optimized exp and exp2 implementations using a lookup table for
fractional powers of 2. There are several variants, see e_exp_data.c,
they can be selected by modifying math_config.h allowing different
tradeoffs.
The default selection should be acceptable as generic libm code.
Worst case error is 0.509 ULP for exp and 0.507 ULP for exp2, on
aarch64 the rodata size is 2160 bytes, shared between exp and exp2.
On aarch64 .text + .rodata size decreased by 24912 bytes.
The non-nearest rounding error is less than 1 ULP even on targets
without efficient round implementation (although the error rate is
higher in that case). Targets with single instruction, rounding mode
independent, to nearest integer rounding and conversion can use them
by setting TOINT_INTRINSICS and adding the necessary code to their
math_private.h.
The __exp1 code uses the same algorithm, so the error bound of pow
increased a bit.
New double precision error handling code was added following the
style of the single precision error handling code.
Improvements on Cortex-A72 compared to current glibc master:
exp thruput: 1.61x in [-9.9 9.9]
exp latency: 1.53x in [-9.9 9.9]
exp thruput: 1.13x in [0.5 1]
exp latency: 1.30x in [0.5 1]
exp2 thruput: 2.03x in [-9.9 9.9]
exp2 latency: 1.64x in [-9.9 9.9]
For small (< 1) inputs the current exp code uses a separate algorithm
so the speed up there is less.
Was tested on
aarch64-linux-gnu (TOINT_INTRINSICS, fma contraction) and
arm-linux-gnueabihf (!TOINT_INTRINSICS, no fma contraction) and
x86_64-linux-gnu (!TOINT_INTRINSICS, no fma contraction) and
powerpc64le-linux-gnu (!TOINT_INTRINSICS, fma contraction) targets,
only non-nearest rounding ulp errors increase and they are within
acceptable bounds (ulp updates are in separate patches).
* NEWS: Mention exp and exp2 improvements.
* math/Makefile (libm-support): Remove t_exp.
(type-double-routines): Add math_err and e_exp_data.
* sysdeps/aarch64/libm-test-ulps: Update.
* sysdeps/arm/libm-test-ulps: Update.
* sysdeps/i386/fpu/e_exp_data.c: New file.
* sysdeps/i386/fpu/math_err.c: New file.
* sysdeps/i386/fpu/t_exp.c: Remove.
* sysdeps/ia64/fpu/e_exp_data.c: New file.
* sysdeps/ia64/fpu/math_err.c: New file.
* sysdeps/ia64/fpu/t_exp.c: Remove.
* sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
* sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
* sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
* sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
* sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
* sysdeps/ieee754/dbl-64/math_config.h: New file.
* sysdeps/ieee754/dbl-64/math_err.c: New file.
* sysdeps/ieee754/dbl-64/t_exp.c: Remove.
* sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
* sysdeps/ieee754/dbl-64/uexp.h: Remove.
* sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
* sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
* sysdeps/m68k/m680x0/fpu/math_err.c: New file.
* sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
* sysdeps/powerpc/fpu/libm-test-ulps: Update.
* sysdeps/x86_64/fpu/libm-test-ulps: Update.
2018-02-12 18:16:03 +00:00
|
|
|
double: 3
|
2015-07-01 17:50:15 +00:00
|
|
|
float: 1
|
|
|
|
|
|
|
|
Function: "exp10_towardzero":
|
Add new exp and exp2 implementations
Optimized exp and exp2 implementations using a lookup table for
fractional powers of 2. There are several variants, see e_exp_data.c,
they can be selected by modifying math_config.h allowing different
tradeoffs.
The default selection should be acceptable as generic libm code.
Worst case error is 0.509 ULP for exp and 0.507 ULP for exp2, on
aarch64 the rodata size is 2160 bytes, shared between exp and exp2.
On aarch64 .text + .rodata size decreased by 24912 bytes.
The non-nearest rounding error is less than 1 ULP even on targets
without efficient round implementation (although the error rate is
higher in that case). Targets with single instruction, rounding mode
independent, to nearest integer rounding and conversion can use them
by setting TOINT_INTRINSICS and adding the necessary code to their
math_private.h.
The __exp1 code uses the same algorithm, so the error bound of pow
increased a bit.
New double precision error handling code was added following the
style of the single precision error handling code.
Improvements on Cortex-A72 compared to current glibc master:
exp thruput: 1.61x in [-9.9 9.9]
exp latency: 1.53x in [-9.9 9.9]
exp thruput: 1.13x in [0.5 1]
exp latency: 1.30x in [0.5 1]
exp2 thruput: 2.03x in [-9.9 9.9]
exp2 latency: 1.64x in [-9.9 9.9]
For small (< 1) inputs the current exp code uses a separate algorithm
so the speed up there is less.
Was tested on
aarch64-linux-gnu (TOINT_INTRINSICS, fma contraction) and
arm-linux-gnueabihf (!TOINT_INTRINSICS, no fma contraction) and
x86_64-linux-gnu (!TOINT_INTRINSICS, no fma contraction) and
powerpc64le-linux-gnu (!TOINT_INTRINSICS, fma contraction) targets,
only non-nearest rounding ulp errors increase and they are within
acceptable bounds (ulp updates are in separate patches).
* NEWS: Mention exp and exp2 improvements.
* math/Makefile (libm-support): Remove t_exp.
(type-double-routines): Add math_err and e_exp_data.
* sysdeps/aarch64/libm-test-ulps: Update.
* sysdeps/arm/libm-test-ulps: Update.
* sysdeps/i386/fpu/e_exp_data.c: New file.
* sysdeps/i386/fpu/math_err.c: New file.
* sysdeps/i386/fpu/t_exp.c: Remove.
* sysdeps/ia64/fpu/e_exp_data.c: New file.
* sysdeps/ia64/fpu/math_err.c: New file.
* sysdeps/ia64/fpu/t_exp.c: Remove.
* sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
* sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
* sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
* sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
* sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
* sysdeps/ieee754/dbl-64/math_config.h: New file.
* sysdeps/ieee754/dbl-64/math_err.c: New file.
* sysdeps/ieee754/dbl-64/t_exp.c: Remove.
* sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
* sysdeps/ieee754/dbl-64/uexp.h: Remove.
* sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
* sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
* sysdeps/m68k/m680x0/fpu/math_err.c: New file.
* sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
* sysdeps/powerpc/fpu/libm-test-ulps: Update.
* sysdeps/x86_64/fpu/libm-test-ulps: Update.
2018-02-12 18:16:03 +00:00
|
|
|
double: 3
|
2015-07-01 17:50:15 +00:00
|
|
|
float: 1
|
|
|
|
|
|
|
|
Function: "exp10_upward":
|
|
|
|
double: 2
|
|
|
|
float: 1
|
|
|
|
|
2024-06-18 20:02:34 +00:00
|
|
|
Function: "exp10m1":
|
|
|
|
double: 2
|
|
|
|
float: 1
|
|
|
|
|
|
|
|
Function: "exp10m1_downward":
|
|
|
|
double: 1
|
|
|
|
float: 1
|
|
|
|
|
|
|
|
Function: "exp10m1_towardzero":
|
|
|
|
double: 1
|
|
|
|
float: 1
|
|
|
|
|
|
|
|
Function: "exp10m1_upward":
|
|
|
|
double: 3
|
|
|
|
float: 1
|
|
|
|
|
2015-07-01 17:50:15 +00:00
|
|
|
Function: "exp2":
|
2014-01-01 16:46:17 +00:00
|
|
|
double: 1
|
2015-07-01 17:50:15 +00:00
|
|
|
float: 1
|
2014-01-01 16:46:17 +00:00
|
|
|
|
2015-07-01 17:50:15 +00:00
|
|
|
Function: "exp2_downward":
|
2014-01-01 16:46:17 +00:00
|
|
|
double: 1
|
2014-06-30 21:20:35 +00:00
|
|
|
float: 1
|
2014-01-01 16:46:17 +00:00
|
|
|
|
2015-07-01 17:50:15 +00:00
|
|
|
Function: "exp2_towardzero":
|
2014-01-01 16:46:17 +00:00
|
|
|
double: 1
|
2014-06-30 21:20:35 +00:00
|
|
|
float: 1
|
2014-01-01 16:46:17 +00:00
|
|
|
|
2015-07-01 17:50:15 +00:00
|
|
|
Function: "exp2_upward":
|
2014-01-01 16:46:17 +00:00
|
|
|
double: 1
|
2012-05-30 21:16:52 +00:00
|
|
|
float: 1
|
2000-04-12 23:39:44 +00:00
|
|
|
|
2024-06-18 20:02:34 +00:00
|
|
|
Function: "exp2m1":
|
|
|
|
double: 1
|
|
|
|
float: 1
|
|
|
|
|
|
|
|
Function: "exp2m1_downward":
|
|
|
|
double: 2
|
|
|
|
float: 1
|
|
|
|
|
|
|
|
Function: "exp2m1_towardzero":
|
|
|
|
double: 2
|
|
|
|
float: 1
|
|
|
|
|
|
|
|
Function: "exp2m1_upward":
|
|
|
|
double: 1
|
|
|
|
float: 1
|
|
|
|
|
2014-01-01 16:46:17 +00:00
|
|
|
Function: "exp_downward":
|
|
|
|
double: 1
|
2017-10-05 22:17:30 +00:00
|
|
|
float: 1
|
2014-01-01 16:46:17 +00:00
|
|
|
|
2012-05-30 21:16:52 +00:00
|
|
|
Function: "exp_towardzero":
|
2014-01-01 16:46:17 +00:00
|
|
|
double: 1
|
2017-10-05 22:17:30 +00:00
|
|
|
float: 1
|
2014-01-01 16:46:17 +00:00
|
|
|
|
|
|
|
Function: "exp_upward":
|
|
|
|
double: 1
|
2017-10-05 22:17:30 +00:00
|
|
|
float: 1
|
2014-01-01 16:46:17 +00:00
|
|
|
|
|
|
|
Function: "expm1":
|
|
|
|
double: 1
|
2000-04-12 23:39:44 +00:00
|
|
|
float: 1
|
|
|
|
|
2014-01-01 16:46:17 +00:00
|
|
|
Function: "expm1_downward":
|
|
|
|
double: 1
|
2012-05-30 21:16:52 +00:00
|
|
|
float: 1
|
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: "expm1_towardzero":
|
2000-04-12 23:39:44 +00:00
|
|
|
double: 1
|
2015-10-09 22:30:26 +00:00
|
|
|
float: 2
|
2000-04-12 23:39:44 +00:00
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: "expm1_upward":
|
2013-07-02 20:34:19 +00:00
|
|
|
double: 1
|
2014-01-01 16:46:17 +00:00
|
|
|
float: 1
|
2013-07-02 20:34:19 +00:00
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: "gamma":
|
2015-07-01 17:50:15 +00:00
|
|
|
double: 4
|
2020-04-08 11:50:27 +00:00
|
|
|
float: 7
|
2015-10-09 22:30:26 +00:00
|
|
|
|
|
|
|
Function: "gamma_downward":
|
|
|
|
double: 5
|
2020-04-08 11:50:27 +00:00
|
|
|
float: 7
|
2014-06-30 21:20:35 +00:00
|
|
|
|
|
|
|
Function: "gamma_towardzero":
|
2015-10-09 22:30:26 +00:00
|
|
|
double: 5
|
2020-04-08 11:50:27 +00:00
|
|
|
float: 6
|
2012-05-30 21:16:52 +00:00
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: "gamma_upward":
|
2015-10-09 22:30:26 +00:00
|
|
|
double: 5
|
2020-04-08 11:50:27 +00:00
|
|
|
float: 6
|
2014-06-30 21:20:35 +00:00
|
|
|
|
2014-01-01 16:46:17 +00:00
|
|
|
Function: "hypot":
|
|
|
|
double: 1
|
2023-03-30 13:44:33 +00:00
|
|
|
float: 1
|
2014-01-01 16:46:17 +00:00
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: "hypot_downward":
|
|
|
|
double: 1
|
|
|
|
|
|
|
|
Function: "hypot_towardzero":
|
|
|
|
double: 1
|
|
|
|
|
|
|
|
Function: "hypot_upward":
|
|
|
|
double: 1
|
|
|
|
|
2000-04-12 23:39:44 +00:00
|
|
|
Function: "j0":
|
|
|
|
double: 2
|
2021-04-07 11:45:42 +00:00
|
|
|
float: 9
|
2000-04-12 23:39:44 +00:00
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: "j0_downward":
|
2021-04-07 11:45:42 +00:00
|
|
|
double: 5
|
|
|
|
float: 9
|
2014-06-30 21:20:35 +00:00
|
|
|
|
|
|
|
Function: "j0_towardzero":
|
2021-04-07 11:45:42 +00:00
|
|
|
double: 6
|
|
|
|
float: 9
|
2014-06-30 21:20:35 +00:00
|
|
|
|
|
|
|
Function: "j0_upward":
|
2021-04-07 11:45:42 +00:00
|
|
|
double: 9
|
|
|
|
float: 9
|
2014-06-30 21:20:35 +00:00
|
|
|
|
2000-04-12 23:39:44 +00:00
|
|
|
Function: "j1":
|
2021-04-07 11:45:42 +00:00
|
|
|
double: 4
|
2020-04-08 11:50:27 +00:00
|
|
|
float: 9
|
2000-04-12 23:39:44 +00:00
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: "j1_downward":
|
2021-04-07 11:45:42 +00:00
|
|
|
double: 5
|
|
|
|
float: 8
|
2014-06-30 21:20:35 +00:00
|
|
|
|
|
|
|
Function: "j1_towardzero":
|
2021-04-07 11:45:42 +00:00
|
|
|
double: 4
|
|
|
|
float: 8
|
2014-06-30 21:20:35 +00:00
|
|
|
|
|
|
|
Function: "j1_upward":
|
2021-04-07 11:45:42 +00:00
|
|
|
double: 9
|
|
|
|
float: 9
|
2014-06-30 21:20:35 +00:00
|
|
|
|
2000-04-12 23:39:44 +00:00
|
|
|
Function: "jn":
|
2012-05-30 21:16:52 +00:00
|
|
|
double: 4
|
2014-01-01 16:46:17 +00:00
|
|
|
float: 4
|
2000-04-12 23:39:44 +00:00
|
|
|
|
2015-07-01 17:50:15 +00:00
|
|
|
Function: "jn_downward":
|
|
|
|
double: 5
|
|
|
|
float: 5
|
2014-01-01 16:46:17 +00:00
|
|
|
|
2015-07-01 17:50:15 +00:00
|
|
|
Function: "jn_towardzero":
|
|
|
|
double: 5
|
|
|
|
float: 5
|
|
|
|
|
|
|
|
Function: "jn_upward":
|
|
|
|
double: 5
|
|
|
|
float: 5
|
|
|
|
|
|
|
|
Function: "lgamma":
|
|
|
|
double: 4
|
2020-04-08 11:50:27 +00:00
|
|
|
float: 7
|
2015-10-09 22:30:26 +00:00
|
|
|
|
|
|
|
Function: "lgamma_downward":
|
|
|
|
double: 5
|
2020-04-08 11:50:27 +00:00
|
|
|
float: 7
|
2014-06-30 21:20:35 +00:00
|
|
|
|
|
|
|
Function: "lgamma_towardzero":
|
2015-10-09 22:30:26 +00:00
|
|
|
double: 5
|
2020-04-08 11:50:27 +00:00
|
|
|
float: 6
|
2014-06-30 21:20:35 +00:00
|
|
|
|
|
|
|
Function: "lgamma_upward":
|
2015-10-09 22:30:26 +00:00
|
|
|
double: 5
|
2020-04-08 11:50:27 +00:00
|
|
|
float: 6
|
2014-06-30 21:20:35 +00:00
|
|
|
|
2014-01-01 16:46:17 +00:00
|
|
|
Function: "log":
|
|
|
|
float: 1
|
2000-04-12 23:39:44 +00:00
|
|
|
|
|
|
|
Function: "log10":
|
2015-07-01 17:50:15 +00:00
|
|
|
double: 2
|
2008-07-18 13:18:53 +00:00
|
|
|
float: 2
|
2000-04-12 23:39:44 +00:00
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: "log10_downward":
|
2015-07-01 17:50:15 +00:00
|
|
|
double: 2
|
|
|
|
float: 3
|
2014-06-30 21:20:35 +00:00
|
|
|
|
|
|
|
Function: "log10_towardzero":
|
2015-07-01 17:50:15 +00:00
|
|
|
double: 2
|
|
|
|
float: 2
|
2014-06-30 21:20:35 +00:00
|
|
|
|
|
|
|
Function: "log10_upward":
|
2015-07-01 17:50:15 +00:00
|
|
|
double: 2
|
|
|
|
float: 2
|
2014-06-30 21:20:35 +00:00
|
|
|
|
2024-06-18 20:02:34 +00:00
|
|
|
Function: "log10p1":
|
|
|
|
double: 1
|
|
|
|
float: 1
|
|
|
|
|
|
|
|
Function: "log10p1_downward":
|
|
|
|
double: 2
|
|
|
|
float: 1
|
|
|
|
|
|
|
|
Function: "log10p1_towardzero":
|
|
|
|
double: 2
|
|
|
|
float: 2
|
|
|
|
|
|
|
|
Function: "log10p1_upward":
|
|
|
|
double: 2
|
|
|
|
float: 1
|
|
|
|
|
2000-04-12 23:39:44 +00:00
|
|
|
Function: "log1p":
|
2014-06-30 21:20:35 +00:00
|
|
|
double: 1
|
|
|
|
float: 1
|
|
|
|
|
2015-07-01 17:50:15 +00:00
|
|
|
Function: "log1p_downward":
|
|
|
|
double: 2
|
|
|
|
float: 2
|
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: "log1p_towardzero":
|
2015-07-01 17:50:15 +00:00
|
|
|
double: 2
|
|
|
|
float: 2
|
2014-06-30 21:20:35 +00:00
|
|
|
|
|
|
|
Function: "log1p_upward":
|
|
|
|
double: 2
|
|
|
|
float: 2
|
|
|
|
|
2015-07-01 17:50:15 +00:00
|
|
|
Function: "log2":
|
|
|
|
double: 2
|
2014-06-30 21:20:35 +00:00
|
|
|
float: 1
|
|
|
|
|
2015-07-01 17:50:15 +00:00
|
|
|
Function: "log2_downward":
|
|
|
|
double: 3
|
|
|
|
float: 3
|
|
|
|
|
|
|
|
Function: "log2_towardzero":
|
2014-06-30 21:20:35 +00:00
|
|
|
double: 2
|
|
|
|
float: 2
|
|
|
|
|
2015-07-01 17:50:15 +00:00
|
|
|
Function: "log2_upward":
|
|
|
|
double: 3
|
|
|
|
float: 3
|
|
|
|
|
2024-05-20 15:54:31 +00:00
|
|
|
Function: "log2p1":
|
|
|
|
double: 1
|
|
|
|
float: 1
|
|
|
|
|
|
|
|
Function: "log2p1_downward":
|
|
|
|
double: 2
|
|
|
|
float: 2
|
|
|
|
|
|
|
|
Function: "log2p1_towardzero":
|
|
|
|
double: 2
|
|
|
|
float: 2
|
|
|
|
|
|
|
|
Function: "log2p1_upward":
|
|
|
|
double: 1
|
|
|
|
float: 2
|
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: "log_downward":
|
2015-07-01 17:50:15 +00:00
|
|
|
float: 2
|
|
|
|
|
|
|
|
Function: "log_towardzero":
|
|
|
|
float: 2
|
2014-06-30 21:20:35 +00:00
|
|
|
|
|
|
|
Function: "log_upward":
|
2016-01-18 22:55:47 +00:00
|
|
|
double: 1
|
2015-07-01 17:50:15 +00:00
|
|
|
float: 2
|
2014-06-30 21:20:35 +00:00
|
|
|
|
Implement C23 logp1
C23 adds various <math.h> function families originally defined in TS
18661-4. Add the logp1 functions (aliases for log1p functions - the
name is intended to be more consistent with the new log2p1 and
log10p1, where clearly it would have been very confusing to name those
functions log21p and log101p). As aliases rather than new functions,
the content of this patch is somewhat different from those actually
adding new functions.
Tests are shared with log1p, so this patch *does* mechanically update
all affected libm-test-ulps files to expect the same errors for both
functions.
The vector versions of log1p on aarch64 and x86_64 are *not* updated
to have logp1 aliases (and thus there are no corresponding header,
tests, abilist or ulps changes for vector functions either). It would
be reasonable for such vector aliases and corresponding changes to
other files to be made separately. For now, the log1p tests instead
avoid testing logp1 in the vector case (a Makefile change is needed to
avoid problems with grep, used in generating the .c files for vector
function tests, matching more than one ALL_RM_TEST line in a file
testing multiple functions with the same inputs, when it assumes that
the .inc file only has a single such line).
Tested for x86_64 and x86, and with build-many-glibcs.py.
2024-06-17 13:47:09 +00:00
|
|
|
Function: "logp1":
|
|
|
|
double: 1
|
|
|
|
float: 1
|
|
|
|
|
|
|
|
Function: "logp1_downward":
|
|
|
|
double: 2
|
|
|
|
float: 2
|
|
|
|
|
|
|
|
Function: "logp1_towardzero":
|
|
|
|
double: 2
|
|
|
|
float: 2
|
|
|
|
|
|
|
|
Function: "logp1_upward":
|
|
|
|
double: 2
|
|
|
|
float: 2
|
|
|
|
|
2012-05-30 21:16:52 +00:00
|
|
|
Function: "pow":
|
2018-04-05 19:31:27 +00:00
|
|
|
double: 1
|
2015-10-09 22:30:26 +00:00
|
|
|
float: 1
|
2012-05-30 21:16:52 +00:00
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: "pow_downward":
|
|
|
|
double: 1
|
2015-10-09 22:30:26 +00:00
|
|
|
float: 1
|
2014-01-01 16:46:17 +00:00
|
|
|
|
2012-05-30 21:16:52 +00:00
|
|
|
Function: "pow_towardzero":
|
2014-06-30 21:20:35 +00:00
|
|
|
double: 1
|
2015-10-09 22:30:26 +00:00
|
|
|
float: 1
|
2012-05-30 21:16:52 +00:00
|
|
|
|
|
|
|
Function: "pow_upward":
|
2014-06-30 21:20:35 +00:00
|
|
|
double: 1
|
2015-10-09 22:30:26 +00:00
|
|
|
float: 1
|
2012-05-30 21:16:52 +00:00
|
|
|
|
2014-01-01 16:46:17 +00:00
|
|
|
Function: "sin":
|
2018-04-05 19:31:27 +00:00
|
|
|
double: 1
|
2000-04-12 23:39:44 +00:00
|
|
|
float: 1
|
|
|
|
|
2014-01-01 16:46:17 +00:00
|
|
|
Function: "sin_downward":
|
|
|
|
double: 1
|
|
|
|
float: 2
|
|
|
|
|
2012-05-30 21:16:52 +00:00
|
|
|
Function: "sin_towardzero":
|
2014-01-01 16:46:17 +00:00
|
|
|
double: 1
|
2012-05-30 21:16:52 +00:00
|
|
|
float: 1
|
|
|
|
|
|
|
|
Function: "sin_upward":
|
2014-01-01 16:46:17 +00:00
|
|
|
double: 1
|
2012-05-30 21:16:52 +00:00
|
|
|
float: 2
|
|
|
|
|
2000-04-12 23:39:44 +00:00
|
|
|
Function: "sincos":
|
2018-04-05 19:31:27 +00:00
|
|
|
double: 1
|
2000-04-12 23:39:44 +00:00
|
|
|
float: 1
|
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: "sincos_downward":
|
|
|
|
double: 1
|
|
|
|
float: 2
|
|
|
|
|
|
|
|
Function: "sincos_towardzero":
|
|
|
|
double: 1
|
|
|
|
float: 1
|
|
|
|
|
|
|
|
Function: "sincos_upward":
|
|
|
|
double: 1
|
2015-10-09 22:30:26 +00:00
|
|
|
float: 2
|
2014-06-30 21:20:35 +00:00
|
|
|
|
2015-07-01 17:50:15 +00:00
|
|
|
Function: "sinh":
|
|
|
|
double: 2
|
|
|
|
float: 2
|
|
|
|
|
2012-05-30 21:16:52 +00:00
|
|
|
Function: "sinh_downward":
|
2015-07-01 17:50:15 +00:00
|
|
|
double: 3
|
|
|
|
float: 3
|
2000-04-12 23:39:44 +00:00
|
|
|
|
2012-05-30 21:16:52 +00:00
|
|
|
Function: "sinh_towardzero":
|
2021-01-18 20:22:51 +00:00
|
|
|
double: 3
|
2015-07-01 17:50:15 +00:00
|
|
|
float: 2
|
2012-05-30 21:16:52 +00:00
|
|
|
|
2014-01-01 16:46:17 +00:00
|
|
|
Function: "sinh_upward":
|
2015-07-01 17:50:15 +00:00
|
|
|
double: 3
|
|
|
|
float: 3
|
|
|
|
|
|
|
|
Function: "tan":
|
2012-05-30 21:16:52 +00:00
|
|
|
float: 1
|
|
|
|
|
2014-01-01 16:46:17 +00:00
|
|
|
Function: "tan_downward":
|
|
|
|
double: 1
|
|
|
|
float: 2
|
|
|
|
|
2012-05-30 21:16:52 +00:00
|
|
|
Function: "tan_towardzero":
|
2014-01-01 16:46:17 +00:00
|
|
|
double: 1
|
2012-05-30 21:16:52 +00:00
|
|
|
float: 1
|
|
|
|
|
|
|
|
Function: "tan_upward":
|
2014-01-01 16:46:17 +00:00
|
|
|
double: 1
|
2012-05-30 21:16:52 +00:00
|
|
|
float: 1
|
2000-04-12 23:39:44 +00:00
|
|
|
|
2015-07-01 17:50:15 +00:00
|
|
|
Function: "tanh":
|
|
|
|
double: 2
|
|
|
|
float: 2
|
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: "tanh_downward":
|
2015-07-01 17:50:15 +00:00
|
|
|
double: 3
|
|
|
|
float: 3
|
2014-06-30 21:20:35 +00:00
|
|
|
|
|
|
|
Function: "tanh_towardzero":
|
2015-07-01 17:50:15 +00:00
|
|
|
double: 2
|
|
|
|
float: 2
|
2014-06-30 21:20:35 +00:00
|
|
|
|
|
|
|
Function: "tanh_upward":
|
2015-07-01 17:50:15 +00:00
|
|
|
double: 3
|
2013-07-02 20:34:19 +00:00
|
|
|
float: 3
|
2000-04-12 23:39:44 +00:00
|
|
|
|
2015-07-01 17:50:15 +00:00
|
|
|
Function: "tgamma":
|
2021-01-18 20:22:51 +00:00
|
|
|
double: 9
|
2020-04-08 11:50:27 +00:00
|
|
|
float: 8
|
2015-07-01 17:50:15 +00:00
|
|
|
|
2015-10-09 22:30:26 +00:00
|
|
|
Function: "tgamma_downward":
|
2021-04-07 11:45:42 +00:00
|
|
|
double: 9
|
2020-04-08 11:50:27 +00:00
|
|
|
float: 7
|
2015-07-01 17:50:15 +00:00
|
|
|
|
2015-10-09 22:30:26 +00:00
|
|
|
Function: "tgamma_towardzero":
|
2021-01-18 20:22:51 +00:00
|
|
|
double: 9
|
2020-04-08 11:50:27 +00:00
|
|
|
float: 7
|
2015-10-09 22:30:26 +00:00
|
|
|
|
2015-07-01 17:50:15 +00:00
|
|
|
Function: "tgamma_upward":
|
2021-01-18 20:22:51 +00:00
|
|
|
double: 9
|
2020-04-08 11:50:27 +00:00
|
|
|
float: 8
|
2015-07-01 17:50:15 +00:00
|
|
|
|
2000-04-12 23:39:44 +00:00
|
|
|
Function: "y0":
|
2020-04-08 11:50:27 +00:00
|
|
|
double: 3
|
2021-04-07 11:45:42 +00:00
|
|
|
float: 9
|
2000-04-12 23:39:44 +00:00
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: "y0_downward":
|
|
|
|
double: 3
|
2021-04-07 11:45:42 +00:00
|
|
|
float: 9
|
2014-06-30 21:20:35 +00:00
|
|
|
|
|
|
|
Function: "y0_towardzero":
|
2021-04-07 11:45:42 +00:00
|
|
|
double: 4
|
|
|
|
float: 9
|
2014-06-30 21:20:35 +00:00
|
|
|
|
|
|
|
Function: "y0_upward":
|
|
|
|
double: 3
|
2021-04-07 11:45:42 +00:00
|
|
|
float: 9
|
2014-06-30 21:20:35 +00:00
|
|
|
|
2000-04-12 23:39:44 +00:00
|
|
|
Function: "y1":
|
|
|
|
double: 3
|
2021-04-07 11:45:42 +00:00
|
|
|
float: 9
|
2000-04-12 23:39:44 +00:00
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: "y1_downward":
|
2021-04-07 11:45:42 +00:00
|
|
|
double: 6
|
|
|
|
float: 9
|
2014-06-30 21:20:35 +00:00
|
|
|
|
|
|
|
Function: "y1_towardzero":
|
|
|
|
double: 3
|
2021-04-07 11:45:42 +00:00
|
|
|
float: 9
|
2014-06-30 21:20:35 +00:00
|
|
|
|
|
|
|
Function: "y1_upward":
|
|
|
|
double: 7
|
2021-04-07 11:45:42 +00:00
|
|
|
float: 9
|
2014-06-30 21:20:35 +00:00
|
|
|
|
2000-04-12 23:39:44 +00:00
|
|
|
Function: "yn":
|
|
|
|
double: 3
|
2018-01-02 18:37:06 +00:00
|
|
|
float: 3
|
2000-04-12 23:39:44 +00:00
|
|
|
|
2014-06-30 21:20:35 +00:00
|
|
|
Function: "yn_downward":
|
|
|
|
double: 3
|
2018-01-02 18:37:06 +00:00
|
|
|
float: 4
|
2014-06-30 21:20:35 +00:00
|
|
|
|
|
|
|
Function: "yn_towardzero":
|
|
|
|
double: 3
|
|
|
|
float: 3
|
|
|
|
|
|
|
|
Function: "yn_upward":
|
|
|
|
double: 4
|
2018-01-02 18:37:06 +00:00
|
|
|
float: 5
|
2014-06-30 21:20:35 +00:00
|
|
|
|
2000-04-12 23:39:44 +00:00
|
|
|
# end of automatic generation
|