Skip to content

Commit a5039a3

Browse files
author
Bogusevschi, Silviu
committed
meta: coding standards: add xbyak labels
1 parent 9a3d7d2 commit a5039a3

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

CODING_STANDARDS.md

+14
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,17 @@ Coding style is secondary to the general code design.
6767

6868
- Consider using utils to improve readability (`IMPLICATION`, `one_of`,
6969
`everyone_is`).
70+
71+
### Xbyak
72+
73+
- Don't use `char[]` for label names and don't pass them as parameters. Instead,
74+
use `Xbyak::Label` variables. For example:
75+
~~~cpp
76+
{
77+
Xbyak::Label barrier_exit_label;
78+
...
79+
jmp(barrier_exit_label);
80+
...
81+
L(barrier_exit_label);
82+
}
83+
~~~

0 commit comments

Comments
 (0)