commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 01/07: remove and/or/xor keywords.


From: git
Subject: [Commit-gnuradio] [gnuradio] 01/07: remove and/or/xor keywords.
Date: Wed, 27 May 2015 16:59:46 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

jcorgan pushed a commit to branch master
in repository gnuradio.

commit ebd97e5eb541b58f76bbbe8be877c55517fe6b6f
Author: lazydodo <address@hidden>
Date:   Mon May 11 10:27:21 2015 -0600

    remove and/or/xor keywords.
---
 gr-digital/lib/corr_est_cc_impl.cc               | 2 +-
 gr-digital/lib/msk_timing_recovery_cc_impl.cc    | 2 +-
 gr-digital/lib/ofdm_frame_equalizer_vcvc_impl.cc | 2 +-
 gr-fec/lib/gf2mat.cc                             | 4 ++--
 gr-qtgui/lib/vector_sink_f_impl.cc               | 4 ++--
 5 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/gr-digital/lib/corr_est_cc_impl.cc 
b/gr-digital/lib/corr_est_cc_impl.cc
index ac753fb..66645f6 100644
--- a/gr-digital/lib/corr_est_cc_impl.cc
+++ b/gr-digital/lib/corr_est_cc_impl.cc
@@ -266,7 +266,7 @@ namespace gr {
         // holds the +/- fraction of a sample index from the found
         // peak index to the estimated actual peak index.
         double center = 0.0;
-        if (i > 0 and i < (noutput_items - 1)) {
+        if (i > 0 && i < (noutput_items - 1)) {
           double nom = 0, den = 0;
           for(int s = 0; s < 3; s++) {
             nom += (s+1)*d_corr_mag[i+s-1];
diff --git a/gr-digital/lib/msk_timing_recovery_cc_impl.cc 
b/gr-digital/lib/msk_timing_recovery_cc_impl.cc
index a567357..4b26573 100644
--- a/gr-digital/lib/msk_timing_recovery_cc_impl.cc
+++ b/gr-digital/lib/msk_timing_recovery_cc_impl.cc
@@ -183,7 +183,7 @@ out:
                 d_mu    += d_gain*err_out;
             }
             //output every other d_sps by default.
-            if(!(d_div % 2) or d_osps==2) {
+            if(!(d_div % 2) || d_osps==2) {
                 out[oidx] = in_interp;
                 if(output_items.size() >= 2) out2[oidx] = err_out;
                 if(output_items.size() >= 3) out3[oidx] = d_mu;
diff --git a/gr-digital/lib/ofdm_frame_equalizer_vcvc_impl.cc 
b/gr-digital/lib/ofdm_frame_equalizer_vcvc_impl.cc
index 70e840d..1b0dee4 100644
--- a/gr-digital/lib/ofdm_frame_equalizer_vcvc_impl.cc
+++ b/gr-digital/lib/ofdm_frame_equalizer_vcvc_impl.cc
@@ -167,7 +167,7 @@ namespace gr {
       get_tags_in_window(tags, 0, 0, frame_len);
       for (size_t i = 0; i < tags.size(); i++) {
         if (tags[i].key != CHAN_TAPS_KEY
-            and tags[i].key != pmt::mp(d_length_tag_key_str)) {
+            && tags[i].key != pmt::mp(d_length_tag_key_str)) {
           add_item_tag(0, tags[i]);
         }
       }
diff --git a/gr-fec/lib/gf2mat.cc b/gr-fec/lib/gf2mat.cc
index 87cb300..accc285 100644
--- a/gr-fec/lib/gf2mat.cc
+++ b/gr-fec/lib/gf2mat.cc
@@ -109,13 +109,13 @@ GF2Vec GF2Mat::get_col(int i) {
 
 void GF2Mat::add_cols(int i, int j) {
     for ( int row = 0; row < M; row++ ) {
-        H[row][i] = H[row][i] xor H[row][j];
+        H[row][i] = H[row][i] ^ H[row][j];
     }
 }
 
 void GF2Mat::add_rows(int i, int j) {
     for ( int col = 0; col < N; col++ ) {
-        H[i][col] = H[i][col] xor H[j][col];
+        H[i][col] = H[i][col] ^ H[j][col];
     }
 }
 
diff --git a/gr-qtgui/lib/vector_sink_f_impl.cc 
b/gr-qtgui/lib/vector_sink_f_impl.cc
index 0644071..ba139b9 100644
--- a/gr-qtgui/lib/vector_sink_f_impl.cc
+++ b/gr-qtgui/lib/vector_sink_f_impl.cc
@@ -157,7 +157,7 @@ namespace gr {
       d_main_gui->setVecSize(d_vlen);
       set_x_axis(x_start, x_step);
 
-      if(not name.empty())
+      if(! name.empty())
         set_title(name);
       set_x_axis_label(x_axis_label);
       set_y_axis_label(y_axis_label);
@@ -203,7 +203,7 @@ namespace gr {
     void
     vector_sink_f_impl::set_vec_average(const float avg)
     {
-      if (avg < 0 or avg > 1.0) {
+      if (avg < 0 || avg > 1.0) {
         GR_LOG_ALERT(d_logger, "Invalid average value received in 
set_vec_average(), must be within [0, 1].");
         return;
       }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]