Skip to content

Commit

Permalink
Align critical path C code
Browse files Browse the repository at this point in the history
  • Loading branch information
IanSB committed Jan 16, 2021
1 parent 3f34c13 commit c1058f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/osd.c
Expand Up @@ -5783,7 +5783,7 @@ void osd_update(uint32_t *osd_base, int bytes_per_line) {
//
// It's a shame we have had to duplicate code here, but speed matters!

void osd_update_fast(uint32_t *osd_base, int bytes_per_line) {
void __attribute__ ((aligned (64))) osd_update_fast(uint32_t *osd_base, int bytes_per_line) {
if (!active) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/rgb_to_hdmi.c
Expand Up @@ -1056,7 +1056,7 @@ static void recalculate_hdmi_clock(int vlockmode, int genlock_adjust) {
//log_pllh();
}

int recalculate_hdmi_clock_line_locked_update(int force) {
int __attribute__ ((aligned (64))) recalculate_hdmi_clock_line_locked_update(int force) {
static int framecount = 0;
static int genlock_adjust = 0;
static int last_vlock = -1;
Expand Down

0 comments on commit c1058f9

Please sign in to comment.