Skip to content

Commit 23b9e50

Browse files
authored
Merge pull request trussed-dev#1 from jnordholz/fix-lookahead
Fix RAM macros to configure minimum amount of lookahead.
2 parents 99d4373 + 6588793 commit 23b9e50

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/macros.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ macro_rules! ram_storage { (
9393
cache_size_ty=$crate::consts::U32,
9494
block_size=128,
9595
block_count=$bytes/128,
96-
lookaheadwords_size_ty=$crate::consts::U1,
96+
lookaheadwords_size_ty=$crate::consts::U2,
9797
filename_max_plus_one_ty=$crate::consts::U256,
9898
path_max_plus_one_ty=$crate::consts::U256,
9999
result=LfsResult,
@@ -110,7 +110,7 @@ macro_rules! ram_storage { (
110110
cache_size_ty=$crate::consts::U32,
111111
block_size=128,
112112
block_count=8,
113-
lookaheadwords_size_ty=$crate::consts::U1,
113+
lookaheadwords_size_ty=$crate::consts::U2,
114114
filename_max_plus_one_ty=$crate::consts::U256,
115115
path_max_plus_one_ty=$crate::consts::U256,
116116
result=Result,
@@ -221,7 +221,7 @@ macro_rules! const_ram_storage { (
221221
cache_size_ty=$crate::consts::U512,
222222
block_size=512,
223223
block_count=$bytes/512,
224-
lookaheadwords_size_ty=$crate::consts::U1,
224+
lookaheadwords_size_ty=$crate::consts::U2,
225225
filename_max_plus_one_ty=$crate::consts::U256,
226226
path_max_plus_one_ty=$crate::consts::U256,
227227
result=LfsResult,

src/tests.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ ram_storage!(
2626
cache_size_ty=consts::U32,
2727
block_size=256,
2828
block_count=512,
29-
lookaheadwords_size_ty=consts::U1,
29+
lookaheadwords_size_ty=consts::U2,
3030
filename_max_plus_one_ty=consts::U256,
3131
path_max_plus_one_ty=consts::U256,
3232
result=Result,

0 commit comments

Comments
 (0)