Commit 3ad527ce authored by Masahiko Sakai's avatar Masahiko Sakai

Converted codeing system to unix

parent 892a7d06
#ifndef _INIT_H_
#define _INIT_H_
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <iostream>
#include <list>
#include <vector>
#include <time.h>
#include <unistd.h>
using namespace std;
typedef list<long long> Op_List;
#define MAX_CODE_SIZE 3486784400ll
#define MAX_VALUE 3486784400ll
#define CONST_0 0
#define CONST_1 1743392200ll
#define CONST_2 3486784400ll
#define PAT_20 3486784398ll
#define PAT_21 3486784399ll
#define ALLOCATED 1
#define NOT_ALLOCATED 0
const char xlat1[] =
"+b(29e*j1VMEKLyC})8&m#~W>qxdRp0wkrUo[D7,XTcA\"lI"
".v%{gJh4G\\-=O@5`_3i<?Z';FNQuY]szf$!BS/|t:Pn6^Ha";
const char xlat2[] =
"5z]&gqtyfr$(we4{WP)H-Zn,[%\\3dL+Q;>U!pJS72FhOA1C"
"B6v^=I_0/8|jsb9m<.TVac`uY*MK'X~xDl}REokN:#?G\"i@";
const char rev_xlat1[] =
"rM6qR4f#2'!HZPu?)$aW^{G3%xgc[9d]Ls0F,hX}OU-.+i\\"
"yj=tJC*8IleEYm|`_~\"K<&pTVb(AN5zD>:BnwkQ@;/oSv17";
const char rev_xlat2[] =
"D|y+:$l,3i?85aXWNI</!QHY^xA`TBz~MPOptJ{4UFk>jwL2"
"@sGbCc1mh69;#SVfd]e=.)%K}[vq_7uE&*\\'gR-o(\"0Zrn";
#define Xlat1(c,C) (xlat1[( c - 33 + C ) % 94])
#define RevXlat1(c,C) (((rev_xlat1[(c)-33]-33-(C%94)+94*2)% 94) + 33)
#define Xlat2(c) (xlat2[c - 33])
long long code_mem_manage(long long pos);
void printoplist(Op_List op_list);
long long rot( long long x);
long long op( long long x, long long y );
void print_T(long long t);
//const char* str_T(long long t);
extern long long C,D;
extern char **code;
extern long long code_size;
extern long long *allocated_flag;
long long setchr(long long chr, long long pos);
long long setchr_C(long long chr);
long long setchr_D(long long chr);
#define M_ENTRY 82
long long op_decode(Op_List &op_list, long long dest_pos=-1, long long d_ptr=-1);
long long dm_move(long long pos);
enum Operations {
OP_NOOP,
OP_DEST,
OP_D_PTR,
OP_CL_D_PTR,
OP_MOV_DMOD0,
OP_MOV_DMOD1,
OP_CON0_PTR,
OP_CON1_PTR,
OP_CON2_PTR,
OP_PAT20_PTR,
OP_PAT21_PTR,
OP_SELF_PTR,
OP_ROT_PTR,
OP_CON0,
OP_CON1,
OP_CON2,
OP_PAT20,
OP_PAT21,
OP_SELF,
OP_ROT,
OP_CL_CON0,
OP_CL_CON1,
OP_CL_CON2,
OP_CL_PAT20,
OP_CL_PAT21,
OP_CL_ROT,
OP_TR_CON0,
OP_TR_CON1,
OP_TR_CON2,
OP_TR_PAT20,
OP_TR_PAT21,
OP_TR_REGA,
OP_DEST_CON0,
};
void setup_data_module();
#pragma warning(disable : 4996)
#pragma warning(disable : 4244)
#endif
#ifndef _INIT_H_
#define _INIT_H_
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <iostream>
#include <list>
#include <vector>
#include <time.h>
#include <unistd.h>
using namespace std;
typedef list<long long> Op_List;
#define MAX_CODE_SIZE 3486784400ll
#define MAX_VALUE 3486784400ll
#define CONST_0 0
#define CONST_1 1743392200ll
#define CONST_2 3486784400ll
#define PAT_20 3486784398ll
#define PAT_21 3486784399ll
#define ALLOCATED 1
#define NOT_ALLOCATED 0
const char xlat1[] =
"+b(29e*j1VMEKLyC})8&m#~W>qxdRp0wkrUo[D7,XTcA\"lI"
".v%{gJh4G\\-=O@5`_3i<?Z';FNQuY]szf$!BS/|t:Pn6^Ha";
const char xlat2[] =
"5z]&gqtyfr$(we4{WP)H-Zn,[%\\3dL+Q;>U!pJS72FhOA1C"
"B6v^=I_0/8|jsb9m<.TVac`uY*MK'X~xDl}REokN:#?G\"i@";
const char rev_xlat1[] =
"rM6qR4f#2'!HZPu?)$aW^{G3%xgc[9d]Ls0F,hX}OU-.+i\\"
"yj=tJC*8IleEYm|`_~\"K<&pTVb(AN5zD>:BnwkQ@;/oSv17";
const char rev_xlat2[] =
"D|y+:$l,3i?85aXWNI</!QHY^xA`TBz~MPOptJ{4UFk>jwL2"
"@sGbCc1mh69;#SVfd]e=.)%K}[vq_7uE&*\\'gR-o(\"0Zrn";
#define Xlat1(c,C) (xlat1[( c - 33 + C ) % 94])
#define RevXlat1(c,C) (((rev_xlat1[(c)-33]-33-(C%94)+94*2)% 94) + 33)
#define Xlat2(c) (xlat2[c - 33])
long long code_mem_manage(long long pos);
void printoplist(Op_List op_list);
long long rot( long long x);
long long op( long long x, long long y );
void print_T(long long t);
//const char* str_T(long long t);
extern long long C,D;
extern char **code;
extern long long code_size;
extern long long *allocated_flag;
long long setchr(long long chr, long long pos);
long long setchr_C(long long chr);
long long setchr_D(long long chr);
#define M_ENTRY 82
long long op_decode(Op_List &op_list, long long dest_pos=-1, long long d_ptr=-1);
long long dm_move(long long pos);
enum Operations {
OP_NOOP,
OP_DEST,
OP_D_PTR,
OP_CL_D_PTR,
OP_MOV_DMOD0,
OP_MOV_DMOD1,
OP_CON0_PTR,
OP_CON1_PTR,
OP_CON2_PTR,
OP_PAT20_PTR,
OP_PAT21_PTR,
OP_SELF_PTR,
OP_ROT_PTR,
OP_CON0,
OP_CON1,
OP_CON2,
OP_PAT20,
OP_PAT21,
OP_SELF,
OP_ROT,
OP_CL_CON0,
OP_CL_CON1,
OP_CL_CON2,
OP_CL_PAT20,
OP_CL_PAT21,
OP_CL_ROT,
OP_TR_CON0,
OP_TR_CON1,
OP_TR_CON2,
OP_TR_PAT20,
OP_TR_PAT21,
OP_TR_REGA,
OP_DEST_CON0,
};
void setup_data_module();
#pragma warning(disable : 4996)
#pragma warning(disable : 4244)
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment