aboutsummaryrefslogtreecommitdiff
path: root/resolv/tst-resolv-basic.c
diff options
context:
space:
mode:
authorShawn Landden <shawn@git.icu>2019-07-04 17:56:46 -0400
committerTulio Magno Quites Machado Filho <tuliom@linux.ibm.com>2020-02-19 17:29:23 -0300
commit4068846e1e364b2441b93cf3d731a6599596726a (patch)
tree2b92d418d2f8db7a81a63029c424e1deffed4fb6 /resolv/tst-resolv-basic.c
parentd91313ed6fb18acfb4f7b0399fd18e87f5c00221 (diff)
downloadglibc-4068846e1e364b2441b93cf3d731a6599596726a.zip
glibc-4068846e1e364b2441b93cf3d731a6599596726a.tar.gz
glibc-4068846e1e364b2441b93cf3d731a6599596726a.tar.bz2
PPC64: Add libmvec SIMD single-precision power function [BZ #24210]
Based off the ./sysdeps/ieee754/flt-32/powf.c implementation, and thus provides identical results. Unlike other libmvec functions, this sets the underflow and overflow bits. The caller can check these flags, and possibly re-run the calculations with scalar powf to figure out what is causing the overflow or underflow. I may have not normalized the data for benchmarking this properly, but operating only on floats between 0.5 and 1 I get the following: Running 20 times over 32MiB vector: mean 307.659767 (sd 0.203217) scalar: mean 221.837088 (sd 0.032256) And with random data there is a decrease in performance: vector: mean 265.366371 (sd 0.000626) scalar: mean 279.598078 (sd 0.025592) Reviewed-by: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
Diffstat (limited to 'resolv/tst-resolv-basic.c')
0 files changed, 0 insertions, 0 deletions