Develop and Download Open Source Software
Login
Create Account
Help
MY OSDN
Find Software
Magazine
Develop
Pastebin
Software
People
PersonalForge
Magazine
Wiki
OSDN
>
Find Software
>
プロジェクト・ナニ屋
プロジェクト・ナニ屋
Summary
Project Summary
Developer Dashboard
Project Reviews
Web Page
Developers
List of RSS Feeds
Statistics
History
Image Gallery
Search Keywords
News
Listed News
Help
Downloads
List of Releases
Help
Source Code
Guide
Browse SVN
Help
Wiki
FrontPage
Title index
Recent changes
Wiki Search
Help
Docs
List Docs
Help
Forums
List of Forums
Open Discussion (2)
Help (2)
Help
Ticket
Ticket List
Milestone List
Type List
Component List
List of frequently used tickets/RSS
Submit New Ticket
Help
Browse Subversion Repository
/
[naniya]
/
branches
/
mty-makai
/
mty.c
Diff of /branches/mty-makai/mty.c
Parent Directory
|
Revision Log
|
Patch
revision
204
by
notanpe
, Mon Aug 4 13:07:12 2008 UTC
revision
205
by
notanpe
, Sat Aug 16 13:06:32 2008 UTC
#
Line 103
struct DT *dtidx[0x100 + 1];
Line 103
struct DT *dtidx[0x100 + 1];
103
104
/* MAKAI start */
/* MAKAI start */
105
int special = 0;
int special = 0;
106
#define ST_ALLN 1
#define ST_ALLN 1 /* 全数 */
107
#define ST_NIKO 1<<1
#define ST_NIKO 1<<1 /* 二構 */
108
#define ST_BUOO 1<<8
#define ST_BUOO 1<<8 /* ぶお */
109
#define ST_DOSU 1<<9
#define ST_DOSU 1<<9 /* 怒数 */
110
111
void
void
112
comment( str )
comment( str )
#
Line 1639
main(int argc, char *argv[])
Line 1639
main(int argc, char *argv[])
1639
if ( pmask == 0 ) {
if ( pmask == 0 ) {
1640
proc_mask = thread_avail();
proc_mask = thread_avail();
1641
} else {
} else {
1642
/* だがしかし、Win32 のコードしかここにはない。w */
1643
#ifdef WIN32
1644
DWORD_PTR processMask, systemMask;
1645
if ( GetProcessAffinityMask( GetCurrentProcess(), &processMask, &systemMask )
1646
!= 0 ) {
1647
printf( "CPU の割り当てに失敗 その 1\n" );
1648
exit( 1 );
1649
}
1650
if ( (processMask & pmask) != pmask ) {
1651
printf( "そんな CPU はねぇ!\n" );
1652
exit( 1 );
1653
}
1654
#endif /* WIN32 */
1655
proc_mask = pmask;
proc_mask = pmask;
1656
printf( "CPU : " );
printf( "CPU : " );
1657
for ( i = 0; i < MAX_THREAD; i++ ) {
for ( i = 0; i < MAX_THREAD; i++ ) {
#
Line 1648
main(int argc, char *argv[])
Line 1661
main(int argc, char *argv[])
1661
pmask >>= 1;
pmask >>= 1;
1662
}
}
1663
printf( "を使用します。\n" );
printf( "を使用します。\n" );
/* だがしかし、Win32 のコードしかここにはない。w */
1664
#ifdef WIN32
#ifdef WIN32
1665
SetProcessAffinityMask( GetCurrentProcess(), proc_mask );
if ( SetProcessAffinityMask( GetCurrentProcess(), proc_mask ) == 0 ) {
1666
printf( "CPU の割り当てに失敗 その 2\n" );
1667
exit( 1 );
1668
}
1669
#endif /* WIN32 */
#endif /* WIN32 */
1670
}
}
1671
} else {
} else {
#
Line 1803
main(int argc, char *argv[])
Line 1818
main(int argc, char *argv[])
1818
{
{
1819
struct PACKET_CRYPT64 *pkt_c;
struct PACKET_CRYPT64 *pkt_c;
1820
uint64_t cnt;
uint64_t cnt;
1821
#if DEBUG>=1 /* MAKAI */
1822
int cnt1, cnt2;
int cnt1, cnt2;
1823
#endif /* MAKAI */
1824
int k, kk;
int k, kk;
1825
1826
/* 比較器候補(may be NULL)
/* 比較器候補(may be NULL)
Colored Diff
Long Colored Diff
Full Colored Diff
Unidiff
Context Diff
Side by Side
Legend:
Removed from v.204
changed lines
Added in v.205
Back to OSDN
">
Back to OSDN
ViewVC Help
Powered by
ViewVC 1.1.26