summaryrefslogtreecommitdiffstats
path: root/tinySIGCOMP/src/tcomp_instructions.h
diff options
context:
space:
mode:
Diffstat (limited to 'tinySIGCOMP/src/tcomp_instructions.h')
-rwxr-xr-xtinySIGCOMP/src/tcomp_instructions.h88
1 files changed, 43 insertions, 45 deletions
diff --git a/tinySIGCOMP/src/tcomp_instructions.h b/tinySIGCOMP/src/tcomp_instructions.h
index ae2c5b4..c2b6e29 100755
--- a/tinySIGCOMP/src/tcomp_instructions.h
+++ b/tinySIGCOMP/src/tcomp_instructions.h
@@ -2,19 +2,19 @@
* Copyright (C) 2010-2011 Mamadou Diop.
*
* Contact: Mamadou Diop <diopmamadou(at)doubango[dot]org>
-*
+*
* This file is part of Open Source Doubango Framework.
*
* DOUBANGO is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
-*
+*
* DOUBANGO is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
-*
+*
* You should have received a copy of the GNU General Public License
* along with DOUBANGO.
*
@@ -71,51 +71,49 @@
#define TCOMP_UDVM_INST__OUTPUT 34 //1 + output_length
#define TCOMP_UDVM_INST__END_MESSAGE 35 //1 + state_length
-typedef struct tcomp_inst_desc_s
-{
- int32_t code;
- const char* desc;
+typedef struct tcomp_inst_desc_s {
+ int32_t code;
+ const char* desc;
}
tcomp_inst_desc_t;
-static const tcomp_inst_desc_t TCOMP_INST_DESCRIPTIONS[] =
-{
- { TCOMP_UDVM_INST__DECOMPRESSION_FAILURE, "DECOMPRESSION_FAILURE"},
- { TCOMP_UDVM_INST__AND, "AND"},
- { TCOMP_UDVM_INST__OR, "OR"},
- { TCOMP_UDVM_INST__NOT, "NOT"},
- { TCOMP_UDVM_INST__LSHIFT, "LSHIFT"},
- { TCOMP_UDVM_INST__RSHIFT, "RSHIFT"},
- { TCOMP_UDVM_INST__ADD, "ADD"},
- { TCOMP_UDVM_INST__SUBTRACT, "SUBTRACT"},
- { TCOMP_UDVM_INST__MULTIPLY, "MULTIPLY"},
- { TCOMP_UDVM_INST__DIVIDE, "DIVIDE"},
- { TCOMP_UDVM_INST__REMAINDER, "REMAINDER"},
- { TCOMP_UDVM_INST__SORT_ASCENDING, "SORT-ASCENDING"},
- { TCOMP_UDVM_INST__SORT_DESCENDING, "SORT-DESCENDING"},
- { TCOMP_UDVM_INST__SHA_1, "SHA-1"},
- { TCOMP_UDVM_INST__LOAD, "LOAD"},
- { TCOMP_UDVM_INST__MULTILOAD, "MULTILOAD"},
- { TCOMP_UDVM_INST__PUSH, "PUSH"},
- { TCOMP_UDVM_INST__POP, "POP"},
- { TCOMP_UDVM_INST__COPY, "COPY"},
- { TCOMP_UDVM_INST__COPY_LITERAL, "COPY-LITERAL"},
- { TCOMP_UDVM_INST__COPY_OFFSET, "COPY-OFFSET"},
- { TCOMP_UDVM_INST__MEMSET, "MEMSET"},
- { TCOMP_UDVM_INST__JUMP, "JUMP"},
- { TCOMP_UDVM_INST__COMPARE, "COMPARE"},
- { TCOMP_UDVM_INST__CALL, "CALL"},
- { TCOMP_UDVM_INST__RETURN, "RETURN"},
- { TCOMP_UDVM_INST__SWITCH, "SWITCH"},
- { TCOMP_UDVM_INST__CRC, "CRC"},
- { TCOMP_UDVM_INST__INPUT_BYTES, "INPUT-BYTES"},
- { TCOMP_UDVM_INST__INPUT_BITS, "INPUT-BITS"},
- { TCOMP_UDVM_INST__INPUT_HUFFMAN, "INPUT-HUFFMAN"},
- { TCOMP_UDVM_INST__STATE_ACCESS, "STATE-ACCESS"},
- { TCOMP_UDVM_INST__STATE_CREATE, "STATE-CREATE"},
- { TCOMP_UDVM_INST__STATE_FREE, "STATE-FREE"},
- { TCOMP_UDVM_INST__OUTPUT, "OUTPUT"},
- { TCOMP_UDVM_INST__END_MESSAGE, "END-MESSAGE"},
+static const tcomp_inst_desc_t TCOMP_INST_DESCRIPTIONS[] = {
+ { TCOMP_UDVM_INST__DECOMPRESSION_FAILURE, "DECOMPRESSION_FAILURE"},
+ { TCOMP_UDVM_INST__AND, "AND"},
+ { TCOMP_UDVM_INST__OR, "OR"},
+ { TCOMP_UDVM_INST__NOT, "NOT"},
+ { TCOMP_UDVM_INST__LSHIFT, "LSHIFT"},
+ { TCOMP_UDVM_INST__RSHIFT, "RSHIFT"},
+ { TCOMP_UDVM_INST__ADD, "ADD"},
+ { TCOMP_UDVM_INST__SUBTRACT, "SUBTRACT"},
+ { TCOMP_UDVM_INST__MULTIPLY, "MULTIPLY"},
+ { TCOMP_UDVM_INST__DIVIDE, "DIVIDE"},
+ { TCOMP_UDVM_INST__REMAINDER, "REMAINDER"},
+ { TCOMP_UDVM_INST__SORT_ASCENDING, "SORT-ASCENDING"},
+ { TCOMP_UDVM_INST__SORT_DESCENDING, "SORT-DESCENDING"},
+ { TCOMP_UDVM_INST__SHA_1, "SHA-1"},
+ { TCOMP_UDVM_INST__LOAD, "LOAD"},
+ { TCOMP_UDVM_INST__MULTILOAD, "MULTILOAD"},
+ { TCOMP_UDVM_INST__PUSH, "PUSH"},
+ { TCOMP_UDVM_INST__POP, "POP"},
+ { TCOMP_UDVM_INST__COPY, "COPY"},
+ { TCOMP_UDVM_INST__COPY_LITERAL, "COPY-LITERAL"},
+ { TCOMP_UDVM_INST__COPY_OFFSET, "COPY-OFFSET"},
+ { TCOMP_UDVM_INST__MEMSET, "MEMSET"},
+ { TCOMP_UDVM_INST__JUMP, "JUMP"},
+ { TCOMP_UDVM_INST__COMPARE, "COMPARE"},
+ { TCOMP_UDVM_INST__CALL, "CALL"},
+ { TCOMP_UDVM_INST__RETURN, "RETURN"},
+ { TCOMP_UDVM_INST__SWITCH, "SWITCH"},
+ { TCOMP_UDVM_INST__CRC, "CRC"},
+ { TCOMP_UDVM_INST__INPUT_BYTES, "INPUT-BYTES"},
+ { TCOMP_UDVM_INST__INPUT_BITS, "INPUT-BITS"},
+ { TCOMP_UDVM_INST__INPUT_HUFFMAN, "INPUT-HUFFMAN"},
+ { TCOMP_UDVM_INST__STATE_ACCESS, "STATE-ACCESS"},
+ { TCOMP_UDVM_INST__STATE_CREATE, "STATE-CREATE"},
+ { TCOMP_UDVM_INST__STATE_FREE, "STATE-FREE"},
+ { TCOMP_UDVM_INST__OUTPUT, "OUTPUT"},
+ { TCOMP_UDVM_INST__END_MESSAGE, "END-MESSAGE"},
};
#endif /* TCOMP_INSTRUCTIONS_H */
OpenPOWER on IntegriCloud