Skip to content

Commit 185cd58

Browse files
authored
Merge pull request #797 from fjtrujy/fix_math3d_assembly
Fix inline assembly constraints in math3d for LTO compatibility
2 parents 08658cd + 8e3f48a commit 185cd58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ee/math3d/src/math3d.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ void vector_triangle_normal(VECTOR output, VECTOR a, VECTOR b, VECTOR c) {
516516
"addi %1, -1 \n"
517517
"bne $0, %1, 1b \n"
518518
#endif
519-
: : "r" (output), "r" (count), "r" (normals), "r" (local_light)
519+
: "+r" (output), "+r" (count), "+r" (normals) : "r" (local_light)
520520
: "memory"
521521
);
522522
}
@@ -646,7 +646,7 @@ void vector_triangle_normal(VECTOR output, VECTOR a, VECTOR b, VECTOR c) {
646646
"addi %2, 0x10 \n"
647647
"addi %1, -1 \n"
648648
"bne $0, %1, 1b \n"
649-
: : "r" (output), "r" (count), "r" (vertices), "r" (local_screen)
649+
: "+r" (output), "+r" (count), "+r" (vertices) : "r" (local_screen)
650650
: "$10", "memory"
651651
);
652652
}

0 commit comments

Comments
 (0)