Changeset 54e903c in tol
- Timestamp:
- Aug 4, 2015, 10:23:28 AM (11 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 59d4d46
- Parents:
- 865a39d3
- File:
-
- 1 edited
-
tol/bbasic/bfsmem.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol/bbasic/bfsmem.cpp
r865a39d3 r54e903c 51 51 52 52 static BYTE pow2_[8] = { 128, 64, 32, 16, 8, 4, 2, 1}; 53 static BYTE _pow2_[8] = { ~128,~64,~32,~16,~8,~4,~2,~1};53 static BYTE _pow2_[8] = {(BYTE)(~128),(BYTE)(~64),(BYTE)(~32),(BYTE)(~16),(BYTE)(~8),(BYTE)(~4),(BYTE)(~2),(BYTE)(~1)}; 54 54 static unsigned short byte_pos_; 55 55 static BYTE bit_pos_; … … 419 419 //-------------------------------------------------------------------- 420 420 : baseSize_ (baseSize), 421 percentThreshold_ (percentThreshold),422 421 page__ (NULL), 422 lastAllocPg_ (0), 423 423 lastPage_ (0), 424 lastAllocPg_ (0),425 424 pgNm_ (0), 426 425 lastDelPgNm_ (0), 427 assigned_ (0) 426 assigned_ (0), 427 percentThreshold_ (percentThreshold) 428 428 { 429 429 assert(baseSize<=BFSMEM_MAX_BASE_SIZE); … … 648 648 if(lastPage_) 649 649 { 650 long int x = maxAllowed_*baseSize_; 650 651 printf("\n" 651 "% 10.4f |"652 "% 10d |"653 "% 10d |"654 "% 10u |"655 "% 10d |"656 "% 10ld |"657 "% 10.2lf%% |",652 "%10.4f |" 653 "%10d |" 654 "%10d |" 655 "%10u |" 656 "%10d |" 657 "%10ld |" 658 "%10.2lf%% |", 658 659 _growingFactor_, 659 660 _initPageSize_, … … 661 662 baseSize_, 662 663 maxAllowed_, 663 maxAllowed_*baseSize_,664 x, 664 665 double(assigned_*100.0)/double(maxAllowed_)); 665 666 /*
Note: See TracChangeset
for help on using the changeset viewer.
