Update comments

This commit is contained in:
Yutaka Sawada
2023-03-18 15:07:28 +09:00
committed by GitHub
parent 459ed802bb
commit 4ae5473b49

View File

@@ -926,7 +926,7 @@ static int check_block_size(unsigned int adjust_size, int alloc_method, int limi
if (pad_size > 0){ // 近辺で効率が良くなる所を探す
if (alloc_method == 0){ // ブロック数が指定された
// 指定された個数から -12.5% ~ +6.25% の範囲を調べる1600 個指定なら 1400 ~ 1700
//printf("Search better count from %d to %d\n", target * 7 / 8, target * 17 / 16);
//printf("Search better count from %d to %d\n", target - target / 8, target + target / 16);
// ブロック・サイズを大きくしてみる
loop_count = 0;
new_size = block_size + base_size;
@@ -1042,7 +1042,7 @@ static int check_block_size(unsigned int adjust_size, int alloc_method, int limi
} else if (adjust_size > 0){ // ブロック・サイズと変更単位の両方が指定された時だけ、自動調整する
// 指定されたサイズから -25% ~ +50% の範囲を調べる1024 KB 指定なら 768KB ~ 1536KB
//printf("Search better size from %d to %d\n", target_size / 4 * 3, target_size / 2 * 3);
//printf("Search better size from %d to %d\n", target_size - target_size / 4, target_size + target_size / 2);
// ブロック・サイズを大きくしてみる
loop_count = 0;
new_size = block_size + base_size;