issp-center-dev / HPhi

Quantum Lattice Model Simulator Package
https://www.pasums.issp.u-tokyo.ac.jp/hphi/en/
GNU General Public License v3.0
91 stars 25 forks source link

32bit OSでは恐らく正しく動作しない #77

Open wistaria opened 5 years ago

wistaria commented 5 years ago
/home/vagrant/build/hphi_3.3.0/src/bitcalc.c: In function ‘SgnBit’:
/home/vagrant/build/hphi_3.3.0/src/bitcalc.c:350:19: warning: right shift count >= width of type [-Wshift-count-overflow]
    bit =  bit^(bit>>32);
                   ^~
/home/vagrant/build/hphi_3.3.0/src/expec_energy_flct.c: In function ‘expec_energy_flct_HubbardGC’:
/home/vagrant/build/hphi_3.3.0/src/expec_energy_flct.c:234:27: warning: right shift count >= width of type [-Wshift-count-overflow]
         u_ibit1 = ibit_up >> 32;
                           ^~
/home/vagrant/build/hphi_3.3.0/src/expec_energy_flct.c:240:29: warning: right shift count >= width of type [-Wshift-count-overflow]
         u_ibit1 = ibit_down >> 32;
                             ^~
/home/vagrant/build/hphi_3.3.0/src/expec_energy_flct.c:246:26: warning: right shift count >= width of type [-Wshift-count-overflow]
         u_ibit1 = ibit_D >> 32;
                          ^~
/home/vagrant/build/hphi_3.3.0/src/expec_energy_flct.c:253:27: warning: right shift count >= width of type [-Wshift-count-overflow]
         u_ibit1 = ibit_up >> 32;
                           ^~
/home/vagrant/build/hphi_3.3.0/src/expec_energy_flct.c:259:29: warning: right shift count >= width of type [-Wshift-count-overflow]
         u_ibit1 = ibit_down >> 32;
                             ^~
/home/vagrant/build/hphi_3.3.0/src/expec_energy_flct.c:265:26: warning: right shift count >= width of type [-Wshift-count-overflow]
         u_ibit1 = ibit_D >> 32;
                          ^~
/home/vagrant/build/hphi_3.3.0/src/expec_energy_flct.c: In function ‘expec_energy_flct_Hubbard’:
/home/vagrant/build/hphi_3.3.0/src/expec_energy_flct.c:356:27: warning: right shift count >= width of type [-Wshift-count-overflow]
         u_ibit1 = ibit_up >> 32;
                           ^~
/home/vagrant/build/hphi_3.3.0/src/expec_energy_flct.c:362:29: warning: right shift count >= width of type [-Wshift-count-overflow]
         u_ibit1 = ibit_down >> 32;
                             ^~
/home/vagrant/build/hphi_3.3.0/src/expec_energy_flct.c:368:26: warning: right shift count >= width of type [-Wshift-count-overflow]
         u_ibit1 = ibit_D >> 32;
                          ^~
/home/vagrant/build/hphi_3.3.0/src/expec_energy_flct.c:375:27: warning: right shift count >= width of type [-Wshift-count-overflow]
         u_ibit1 = ibit_up >> 32;
                           ^~
/home/vagrant/build/hphi_3.3.0/src/expec_energy_flct.c:381:29: warning: right shift count >= width of type [-Wshift-count-overflow]
         u_ibit1 = ibit_down >> 32;
                             ^~
/home/vagrant/build/hphi_3.3.0/src/expec_energy_flct.c:387:26: warning: right shift count >= width of type [-Wshift-count-overflow]
         u_ibit1 = ibit_D >> 32;
                          ^~
/home/vagrant/build/hphi_3.3.0/src/expec_energy_flct.c: In function ‘expec_energy_flct_HalfSpinGC’:
/home/vagrant/build/hphi_3.3.0/src/expec_energy_flct.c:465:25: warning: right shift count >= width of type [-Wshift-count-overflow]
         u_ibit1 = ibit1 >> 32;
                         ^~
/home/vagrant/build/hphi_3.3.0/src/expec_energy_flct.c:471:25: warning: right shift count >= width of type [-Wshift-count-overflow]
         u_ibit1 = ibit1 >> 32;
                         ^~
/home/vagrant/build/hphi_3.3.0/src/expec_energy_flct.c: In function ‘expec_energy_flct_HalfSpin’:
/home/vagrant/build/hphi_3.3.0/src/expec_energy_flct.c:586:21: warning: right shift count >= width of type [-Wshift-count-overflow]
     u_ibit1 = ibit1 >> 32;
                     ^~
/home/vagrant/build/hphi_3.3.0/src/expec_energy_flct.c:592:21: warning: right shift count >= width of type [-Wshift-count-overflow]
     u_ibit1 = ibit1 >> 32;
                     ^~