Changeset b52d27 in git for factory/cf_primetab.cc
- Timestamp:
- Jun 13, 2014, 2:48:44 PM (10 years ago)
- Branches:
- (u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'c5facdfddea2addfd91babd8b9019161dea4b695')
- Children:
- d87069c50888d28eb107ade8c7418040795ac0d4
- Parents:
- 086f3ec7ab7655f9627e1c40dd022bf8494b12b1
- git-author:
- Martin Lee <martinlee84@web.de>2014-06-13 14:48:44+02:00
- git-committer:
- Martin Lee <martinlee84@web.de>2014-06-17 17:12:29+02:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/cf_primetab.cc
r086f3e rb52d27 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 2 3 //{{{ docu 4 // 5 // cf_primetab.cc - tables of prime numbers. 6 // 7 // The interface to these tables is the `CFPrimeGenerator' class 8 // in `cf_primes.cc'. 9 // 10 // Used by: cf_primes.cc 11 // 12 // Header file: cf_primes.h 13 // 14 //}}} 3 /** 4 * 5 * @file cf_primetab.cc 6 * 7 * tables of prime numbers. 8 * 9 * The interface to these tables is the `CFPrimeGenerator' class 10 * in `cf_primes.cc'. 11 * 12 * Used by: cf_primes.cc 13 * 14 * Header file: cf_primes.h 15 * 16 **/ 15 17 16 18 … … 20 22 #include "cf_primes.h" 21 23 22 //{{{ constants 23 //{{{ docu 24 // 25 // - first and last indices of small and large primes. 26 // 27 //}}} 24 /** constants 25 * 26 * - first and last indices of small and large primes. 27 * 28 **/ 28 29 const int CFPrimeGenerator::firstSmallIndex = 0; 29 30 const int CFPrimeGenerator::lastSmallIndex = 3510; 30 31 const int CFPrimeGenerator::firstLargeIndex = 3511; 31 32 const int CFPrimeGenerator::lastLargeIndex = CFPrimeGenerator::firstLargeIndex+28426; 32 //}}}33 33 34 //{{{ const int CFPrimeGenerator::smallPrimes [] 35 //{{{ docu 36 // 37 // smallPrimes - list of small prime numbers. 38 // 39 // There are 3511 small prime numbers, all fitting into signed 16 40 // bits. 41 // 42 //}}} 34 /** const int CFPrimeGenerator::smallPrimes [] 35 * 36 * smallPrimes - list of small prime numbers. 37 * 38 * There are 3511 small prime numbers, all fitting into signed 16 39 * bits. 40 * 41 **/ 43 42 const int CFPrimeGenerator::smallPrimes [] = { 44 43 3, 5, 7, 11, 13, 17, … … 629 628 32749, 0 630 629 }; 631 //}}}632 630 633 //{{{ const int CFPrimeGenerator::largePrimes [] 634 //{{{ docu 635 // 636 // largePrimes - list of large prime numbers. 637 // 638 // There are 28427 large prime numbers, all of them fitting into 639 // 29 signed bits. 640 // 641 //}}} 631 /** const int CFPrimeGenerator::largePrimes [] 632 * 633 * largePrimes - list of large prime numbers. 634 * 635 * There are 28427 large prime numbers, all of them fitting into 636 * 29 signed bits. 637 * 638 **/ 642 639 const int CFPrimeGenerator::largePrimes [] = { 643 640 536300041, 536300047, 536300053, 536300069, 536300081, 536300117, … … 5380 5377 536870839, 536870849, 536870869, 536870879, 536870909, 0 5381 5378 }; 5382 //}}}
Note: See TracChangeset
for help on using the changeset viewer.