Mark constant array as const.

This commit is contained in:
Ulrich Drepper
2008-12-31 09:12:50 -08:00
parent 5bd4444e15
commit b51abc6fc1
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -1,5 +1,7 @@
2008-12-31 Ulrich Drepper <drepper@redhat.com>
* i386_disasm.c (amd3dnow): Mark as const.
* defs/i386: Add blendvpd and blendvps opcodes.
2008-12-30 Ulrich Drepper <drepper@redhat.com>
+1 -1
View File
@@ -227,7 +227,7 @@ static const char amd3dnowstr[] =
#define AMD3DNOW_LOW_IDX 0x0d
#define AMD3DNOW_HIGH_IDX (sizeof (amd3dnow) + AMD3DNOW_LOW_IDX - 1)
#define AMD3DNOW_IDX(val) ((val) - AMD3DNOW_LOW_IDX)
static unsigned char amd3dnow[] =
static const unsigned char amd3dnow[] =
{
[AMD3DNOW_IDX (0xbf)] = MNE_3DNOW_PAVGUSB,
[AMD3DNOW_IDX (0x9e)] = MNE_3DNOW_PFADD,