/vqdr/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/vqdr/trunk

« back to all changes in this revision

Viewing changes to src/utils/fast_number.vala

  • Committer: Gustav Hartvigsson
  • Date: 2022-05-30 18:35:38 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20220530183538-xlixbth43j8k3s42
Added NamedVector

Added Pair

Removed debugs from FastNumber

Added foreach_pop and foreach_peek to Stak.

Show diffs side-by-side

added added

removed removed

Lines of Context:
294
294
    public static extern long static_compare (FastNumber a, FastNumber b);
295
295
    
296
296
    private void parse_raw_number (string str) {
297
 
      debug (@"(parse_raw_number) str: $str");
 
297
      //debug (@"(parse_raw_number) str: $str");
298
298
      long ret_val = 0;
299
299
      int i_of_dot = str.index_of_char ('.');
300
300
      if (i_of_dot >= 0) {
307
307
          this.leading_zeros = i;
308
308
          // remove leading zeros
309
309
          intr_str = intr_str.substring (i);
310
 
          debug (@"(parse_raw_number) Intermediate string: $intr_str");
 
310
          //debug (@"(parse_raw_number) Intermediate string: $intr_str");
311
311
          ret_val = long.parse (intr_str);
312
312
        }
313
313
        
333
333
      } else {
334
334
        ret_val = (long.parse (str) * MUL_FACTOR);
335
335
      }
336
 
      debug (@"(parse_raw_number) ret_val (finished): $ret_val\n");
 
336
      //debug (@"(parse_raw_number) ret_val (finished): $ret_val\n");
337
337
      this.raw_number = ret_val;
338
338
    }
339
339
  }