Browse Subversion Repository
Contents of /branches/mty-makai/simplify.h
Parent Directory
| Revision Log
Revision 192 -
( show annotations)
( download)
( as text)
Mon May 26 06:29:35 2008 UTC
(15 years, 10 months ago)
by notanpe
File MIME type: text/x-chdr
File size: 665 byte(s)
シーズン 2 に向けて
| 1 |
/*********************************************************************** |
| 2 |
* |
| 3 |
* file: simpilfy.h |
| 4 |
* |
| 5 |
* $Id: simplify.h 187 2007-12-26 09:02:40Z chapuni $ |
| 6 |
* |
| 7 |
*/ |
| 8 |
|
| 9 |
#ifndef SIMPLIFY_H__ |
| 10 |
#define SIMPLIFY_H__ |
| 11 |
|
| 12 |
#include "mtytypes.h" |
| 13 |
|
| 14 |
/* 最長 64 ワードだと思われ */ |
| 15 |
#define QMX_BITS 6 |
| 16 |
#define QMX_LEN (1U << QMX_BITS) |
| 17 |
#define QMX_N_MASK (QMX_LEN - 1) |
| 18 |
|
| 19 |
struct QMX |
| 20 |
{ |
| 21 |
uint8_t m; /* 6: 項 */ |
| 22 |
uint8_t n; /* 6: 0 は補項 */ |
| 23 |
}; |
| 24 |
|
| 25 |
extern int simplify_qm(struct QMX *aox, |
| 26 |
uint64_t bmp, /* 真理値表 */ |
| 27 |
uint64_t dc); /* 1 のビットは D/C */ |
| 28 |
|
| 29 |
#endif /* SIMPLIFY_H__ */ |
| 30 |
|
| 31 |
/* |
| 32 |
* Local Variables: |
| 33 |
* tab-width: 4 |
| 34 |
* End: |
| 35 |
* |
| 36 |
* EOF */ |
|