-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Systematic FNT #239
Systematic FNT #239
Changes from all commits
ddde68c
fc780c1
9a22c0c
10a0dc8
fa13abf
2ee8ecb
55484eb
681f21b
f9bfe95
65d69f4
96931bc
ecb2a3a
c847089
7b2a6b1
420be60
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,7 +50,7 @@ void RsFnt<uint16_t>::encode_post_process( | |
{ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This commit should either have a proper commit message, or be squashed with the commit that introduced the bug. Commit without proper commit message are just polluting the git log and makes git blame less useful to understand a code base. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It will be squashed There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I will rewrite the commit message :) |
||
size_t size = this->pkt_size; | ||
uint16_t threshold = this->gf->card_minus_one(); | ||
unsigned code_len = this->code_len; | ||
unsigned code_len = this->n_outputs; | ||
|
||
// number of elements per vector register | ||
unsigned vec_size = ALIGN_SIZE / sizeof(uint16_t); | ||
|
@@ -67,7 +67,7 @@ void RsFnt<uint16_t>::encode_post_process( | |
uint16_t* chunk = output.get(i); | ||
for (size_t j = vecs_nb * vec_size; j < size; ++j) { | ||
if (chunk[j] == threshold) { | ||
props[i].add(offset + j, 1); | ||
props[i].add(offset + j, OOR_MARK); | ||
} | ||
} | ||
} | ||
|
@@ -82,7 +82,7 @@ void RsFnt<uint32_t>::encode_post_process( | |
{ | ||
const size_t size = this->pkt_size; | ||
const uint32_t threshold = this->gf->card_minus_one(); | ||
const unsigned code_len = this->code_len; | ||
const unsigned code_len = this->n_outputs; | ||
|
||
// number of elements per vector register | ||
const unsigned vec_size = ALIGN_SIZE / sizeof(uint32_t); | ||
|
@@ -99,7 +99,7 @@ void RsFnt<uint32_t>::encode_post_process( | |
uint32_t* chunk = output.get(i); | ||
for (size_t j = vecs_nb * vec_size; j < size; ++j) { | ||
if (chunk[j] == threshold) { | ||
props[i].add(offset + j, 1); | ||
props[i].add(offset + j, OOR_MARK); | ||
} | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We really should use
size_t
here, especially on 64-bit.I think after this PR you need to tackle #243 next.