diff options
author | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-03-16 10:45:49 +0000 |
---|---|---|
committer | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-03-16 10:45:49 +0000 |
commit | fcb5e5f2cd6b1eb4cc96da5d89767db29fd8775a (patch) | |
tree | a60d1ab8e58e2ca36e67aa3b82a1bb1886710c37 /swap.c | |
parent | 8b4b21456512c4c709d5365d4af95c7668d86fc7 (diff) | |
download | mpfr-fcb5e5f2cd6b1eb4cc96da5d89767db29fd8775a.tar.gz |
Update comment
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2844 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'swap.c')
-rw-r--r-- | swap.c | 14 |
1 files changed, 1 insertions, 13 deletions
@@ -23,23 +23,11 @@ MA 02111-1307, USA. */ #include "mpfr-impl.h" -/* (Outdated rem) - * We now use memcpy instead of copying the structure field by field. - * Thus we avoid copying values that may have trap representations, - * and if we change the structure in the future, this will still be - * valid. Also, there should not be any noticeable speed change in - * practice. - */ +/* Using memcpy is a few slower than swapping by hand. */ void mpfr_swap (mpfr_ptr u, mpfr_ptr v) { - /*mpfr_t tmp; - - memcpy (tmp, u, sizeof (mpfr_t)); - memcpy (u, v, sizeof (mpfr_t)); - memcpy (v, tmp, sizeof (mpfr_t));*/ - mpfr_prec_t p1, p2; mpfr_sign_t s1, s2; mp_exp_t e1, e2; |