py: Make a function static and comment out those not used.

This commit is contained in:
Damien George 2015-01-12 22:22:46 +00:00
parent 0178aa9a11
commit 3dd1c0a88a
1 changed files with 5 additions and 1 deletions

View File

@ -281,11 +281,13 @@ void asm_x64_push_i32(asm_x64_t *as, int src_i32) {
} }
*/ */
/*
void asm_x64_push_disp(asm_x64_t *as, int src_r64, int src_offset) { void asm_x64_push_disp(asm_x64_t *as, int src_r64, int src_offset) {
assert(src_r64 < 8); assert(src_r64 < 8);
asm_x64_write_byte_1(as, OPCODE_PUSH_M64); asm_x64_write_byte_1(as, OPCODE_PUSH_M64);
asm_x64_write_r64_disp(as, 6, src_r64, src_offset); asm_x64_write_r64_disp(as, 6, src_r64, src_offset);
} }
*/
void asm_x64_pop_r64(asm_x64_t *as, int dest_r64) { void asm_x64_pop_r64(asm_x64_t *as, int dest_r64) {
if (dest_r64 < 8) { if (dest_r64 < 8) {
@ -357,7 +359,7 @@ void asm_x64_mov_mem64_to_r64(asm_x64_t *as, int src_r64, int src_disp, int dest
asm_x64_write_r64_disp(as, dest_r64, src_r64, src_disp); asm_x64_write_r64_disp(as, dest_r64, src_r64, src_disp);
} }
void asm_x64_lea_disp_to_r64(asm_x64_t *as, int src_r64, int src_disp, int dest_r64) { STATIC void asm_x64_lea_disp_to_r64(asm_x64_t *as, int src_r64, int src_disp, int dest_r64) {
// use REX prefix for 64 bit operation // use REX prefix for 64 bit operation
assert(src_r64 < 8); assert(src_r64 < 8);
assert(dest_r64 < 8); assert(dest_r64 < 8);
@ -365,10 +367,12 @@ void asm_x64_lea_disp_to_r64(asm_x64_t *as, int src_r64, int src_disp, int dest_
asm_x64_write_r64_disp(as, dest_r64, src_r64, src_disp); asm_x64_write_r64_disp(as, dest_r64, src_r64, src_disp);
} }
/*
void asm_x64_mov_i8_to_r8(asm_x64_t *as, int src_i8, int dest_r64) { void asm_x64_mov_i8_to_r8(asm_x64_t *as, int src_i8, int dest_r64) {
assert(dest_r64 < 8); assert(dest_r64 < 8);
asm_x64_write_byte_2(as, OPCODE_MOV_I8_TO_R8 | dest_r64, src_i8); asm_x64_write_byte_2(as, OPCODE_MOV_I8_TO_R8 | dest_r64, src_i8);
} }
*/
STATIC void asm_x64_mov_i32_to_r64(asm_x64_t *as, int src_i32, int dest_r64) { STATIC void asm_x64_mov_i32_to_r64(asm_x64_t *as, int src_i32, int dest_r64) {
// cpu defaults to i32 to r64, with zero extension // cpu defaults to i32 to r64, with zero extension