Changeset 94fe43 in git for libpolys/misc/intvec.cc


Ignore:
Timestamp:
Jan 25, 2013, 10:09:01 PM (11 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
39e070d960bd0ab6d36b34b34c868cd1085371e5
Parents:
5efd81570bd3d8921d3bf3272bb1214556bf665f
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-01-25 22:09:01+01:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-01-28 18:21:51+01:00
Message:
Fix: (for 32-bit builds): libpolys/misc/intvec.cc should be compiled with "-fwrapv"

This option instructs the compiler to assume that signed arithmetic
overflow of addition, subtraction and multiplication wraps around
using twos-complement representation. This flag enables some
optimizations and disables others.

See http://gcc.gnu.org/onlinedocs/gcc-4.4.6/gcc/Code-Gen-Options.html
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/misc/intvec.cc

    r5efd81 r94fe43  
    88#define INTVEC_CC
    99
     10
    1011#include "config.h"
    1112#include <misc/auxiliary.h>
     
    1516#include <misc/options.h>
    1617#include <omalloc/omalloc.h>
     18
     19#pragma GCC push_options
     20#pragma GCC optimize ("wrapv")
    1721
    1822/*0 implementation*/
     
    804808}
    805809
     810#pragma GCC pop_options
     811
    806812#endif
Note: See TracChangeset for help on using the changeset viewer.