aboutsummaryrefslogtreecommitdiff
path: root/src/pnf.h
diff options
context:
space:
mode:
authorLibravatar Comrade Martin Miroslavovich Michalec <martin@michalec.dev>2023-11-25 18:59:53 +0000
committerLibravatar Martin Michalec <martin@michalec.dev>2026-11-07 02:12:54 +0000
commit055f35e74601bea2223a1555c15b029ee90a9117 (patch)
treec2bc92f254ad85b9fc545ab30a700757d72902fc /src/pnf.h
downloadlab-02-master.tar.gz
publishHEADmaster
Diffstat (limited to 'src/pnf.h')
-rw-r--r--src/pnf.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/pnf.h b/src/pnf.h
new file mode 100644
index 0000000..ccac3f4
--- /dev/null
+++ b/src/pnf.h
@@ -0,0 +1,22 @@
1#ifndef PNF_H
2#define PNF_H
3
4#include <stdbool.h>
5#include "utils.h"
6
7u64
8pdnf_compute (u16 f);
9
10void
11pdnf_print (u64 pdnf, u8 numones);
12
13u64
14pcnf_compute (u16 f);
15
16void
17pcnf_print (u64 pcnf, u8 numzeros);
18
19bool
20pdnf_eval (u64 pdnf, u8 numones, u8 xyzw);
21
22#endif