diff options
author | burnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-03-30 21:35:46 +0000 |
---|---|---|
committer | burnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-03-30 21:35:46 +0000 |
commit | 47e0c827b52f4a4f977186336acb40175cbc1c45 (patch) | |
tree | 7c5a928fbb50b9cb9084bfef0e0da0f3317084bd /libgfortran/generated/iparity_i2.c | |
parent | 43f4896f0f8428aaef3e83ef582479bf1dab1567 (diff) | |
parent | 9ddbb4046b6e821bffa1495bcafa22b17cfc8265 (diff) | |
download | gcc-47e0c827b52f4a4f977186336acb40175cbc1c45.tar.gz |
2013-03-30 Tobias Burnus <burnus@net-b.de>
* Merged Revs. 189741 to 197268 from the trunk.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/fortran-dev@197269 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/generated/iparity_i2.c')
-rw-r--r-- | libgfortran/generated/iparity_i2.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/libgfortran/generated/iparity_i2.c b/libgfortran/generated/iparity_i2.c index 5ff64e0ecc0..70fee4ff321 100644 --- a/libgfortran/generated/iparity_i2.c +++ b/libgfortran/generated/iparity_i2.c @@ -1,5 +1,5 @@ /* Implementation of the IPARITY intrinsic - Copyright 2010 Free Software Foundation, Inc. + Copyright (C) 2010-2013 Free Software Foundation, Inc. Contributed by Tobias Burnus <burnus@net-b.de> This file is part of the GNU Fortran runtime library (libgfortran). @@ -323,18 +323,13 @@ miparity_i2 (gfc_array_i2 * const restrict retarray, { result = 0; - if (len <= 0) - *dest = 0; - else + for (n = 0; n < len; n++, src += delta, msrc += mdelta) { - for (n = 0; n < len; n++, src += delta, msrc += mdelta) - { if (*msrc) result ^= *src; - } - *dest = result; } + *dest = result; } /* Advance to the next element. */ count[0]++; |