-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from klauspost/fix-line-comment-crash
Fix crash on line comments that start with a star.
- Loading branch information
Showing
4 changed files
with
76 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
Quicker way of loading MOD_P ? | ||
MOVL $-1, R8 | ||
NEGQ R8 | ||
MOVL $-1, R8 | ||
NEGQ R8 | ||
*/ | ||
#define MOD_P 0xFFFFFFFF00000001 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#include "textflag.h" | ||
|
||
TEXT ·FailsFormatting(SB), NOSPLIT, $0 | ||
RET // */ | ||
|
||
TEXT ·FailsFormatting(SB), NOSPLIT, $0 | ||
/* | ||
RET //*/ | ||
|
||
TEXT ·FailsFormatting(SB), NOSPLIT, $0 | ||
RET // Some longer comment*/ | ||
|
||
TEXT ·FailsFormatting(SB), NOSPLIT, $0 | ||
/* | ||
RET // Some longer comment*/ | ||
|
||
TEXT ·FailsFormatting(SB), NOSPLIT, $0 | ||
/* RET // */ | ||
|
||
/* | ||
TESTL BX, BX | ||
JEQ move_0 | ||
CMPL BX, $2 | ||
JBE move_1or2 | ||
CMPL BX, $4 | ||
JBE move_3or4 | ||
CMPL BX, $8 | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#include "textflag.h" | ||
|
||
TEXT ·FailsFormatting(SB), NOSPLIT, $0 | ||
RET //*/ | ||
|
||
|
||
TEXT ·FailsFormatting(SB), NOSPLIT, $0 | ||
/* | ||
RET //*/ | ||
|
||
TEXT ·FailsFormatting(SB), NOSPLIT, $0 | ||
RET // Some longer comment*/ | ||
|
||
|
||
TEXT ·FailsFormatting(SB), NOSPLIT, $0 | ||
/* | ||
RET // Some longer comment*/ | ||
|
||
TEXT ·FailsFormatting(SB), NOSPLIT, $0 | ||
/* RET //*/ | ||
|
||
/* | ||
TESTL BX, BX | ||
JEQ move_0 | ||
CMPL BX, $2 | ||
JBE move_1or2 | ||
CMPL BX, $4 | ||
JBE move_3or4 | ||
CMPL BX, $8 | ||
*/ |