1. 19 Jun, 2013 1 commit
  2. 28 May, 2013 1 commit
  3. 26 May, 2013 1 commit
  4. 25 May, 2013 1 commit
  5. 23 May, 2013 1 commit
  6. 22 May, 2013 1 commit
  7. 18 Apr, 2013 2 commits
  8. 09 Apr, 2013 1 commit
  9. 27 Mar, 2013 1 commit
  10. 19 Mar, 2013 1 commit
  11. 18 Feb, 2013 1 commit
  12. 19 Jan, 2013 1 commit
  13. 18 Jan, 2013 1 commit
  14. 10 Jan, 2013 2 commits
  15. 18 Oct, 2012 1 commit
  16. 04 Oct, 2012 1 commit
  17. 11 Jul, 2012 1 commit
  18. 08 Jun, 2012 1 commit
  19. 27 May, 2012 1 commit
  20. 25 Apr, 2012 1 commit
  21. 19 Apr, 2012 1 commit
    • Dick Hollenbeck's avatar
      // Dick Hollenbeck's KiROUND R&D · c24863c0
      Dick Hollenbeck authored
      // This provides better project control over rounding to int from double
      // than wxRound() did.  This scheme provides better logging in Debug builds
      // and it provides for compile time calculation of constants.
      
      
      #include <stdio.h>
      #include <assert.h>
      #include <limits.h>
      
      //-----<KiROUND KIT>------------------------------------------------------------
      
      /**
       * KiROUND
       * rounds a floating point number to an int using
       * "round halfway cases away from zero".
       * In Debug build an assert fires if will not fit into an int.
       */
      
      #if defined( DEBUG )
      
      // DEBUG: a macro to capture line and file, then calls this inline
      
      static inline int KiRound( double v, int line, const char* filename )
      {
          v = v < 0 ? v - 0.5 : v + 0.5;
          if( v > INT_MAX + 0.5 )
          {
              printf( "%s: in file %s on line %d, val: %.16g too ' > 0 ' for int\n", __FUNCTION__, filename, line, v );
          }
          else if( v < INT_MIN - 0.5 )
          {
              printf( "%s: in file %s on line %d, val: %.16g too ' < 0 ' for int\n", __FUNCTION__, filename, line, v );
          }
          return int( v );
      }
      
      #define KiROUND( v )    KiRound( v, __LINE__, __FILE__ )
      
      #else
      
      // RELEASE: a macro so compile can pre-compute constants.
      
      #define KiROUND( v )  int( (v) < 0 ? (v) - 0.5 : (v) + 0.5 )
      
      #endif
      
      
      //-----</KiROUND KIT>-----------------------------------------------------------
      
      // Only a macro is compile time calculated, an inline function causes a static constructor
      // in a situation like this.
      // Therefore the Release build is best done with a MACRO not an inline function.
      int Computed = KiROUND( 14.3 * 8 );
      
      
      int main( int argc, char** argv )
      {
          for( double d = double(INT_MAX)-1;  d < double(INT_MAX)+8;  d += 2.0 )
          {
              int i = KiROUND( d );
      
              printf( "t: %d  %.16g\n", i, d );
          }
      
          return 0;
      }
      c24863c0
  22. 16 Apr, 2012 1 commit
    • Wayne Stambaugh's avatar
      Removal of internal units. · bf5802f1
      Wayne Stambaugh authored
      * Remove internal units from BASE_SCREEN and it's derivatives.
      * Remove internal units from EDA_DRAW_FRAME and it's derivatives.
      * Use build time code to replace internal units conversions.
      * Fix scaling bug in page layout sample window that I created in my
        last commit.
      bf5802f1
  23. 05 Apr, 2012 1 commit
  24. 02 Apr, 2012 1 commit
    • jean-pierre charras's avatar
      pcb_calculator: enhancement in Regulators page dialog: · 7ce97878
      jean-pierre charras authored
      * support for 3 terminal regulators
      * add a data file management to store parameters for regulators ( name, vref value, Iadj value, type)
      Needs some refinements, but it is already very useable.
      
       Commit dialog page setting patch from Alexander Zakamaldin
      7ce97878
  25. 27 Mar, 2012 1 commit
    • jean-pierre charras's avatar
      Fix issues about translations: · e356e6dc
      jean-pierre charras authored
      Eeschema: one string with a bad char (\a, not useable in internationalized strings).
      Dialog_page_settings: use not translated strings in code, so strings can be freely translated for the UI.
      (Initial code was not working with existing translations)
      Update 2 icons.
      e356e6dc
  26. 26 Mar, 2012 1 commit
  27. 08 Mar, 2012 1 commit
  28. 19 Feb, 2012 1 commit
  29. 23 Jan, 2012 2 commits
  30. 22 Jan, 2012 1 commit
  31. 17 Jan, 2012 1 commit
  32. 16 Jan, 2012 3 commits
  33. 15 Jan, 2012 1 commit
  34. 09 Jan, 2012 1 commit
  35. 05 Jan, 2012 1 commit