projects
/
Mograsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Restructured the Preferences system
[Mograsim.git]
/
plugins
/
net.mograsim.logic.core
/
src
/
net
/
mograsim
/
logic
/
core
/
types
/
Bit.java
diff --git
a/plugins/net.mograsim.logic.core/src/net/mograsim/logic/core/types/Bit.java
b/plugins/net.mograsim.logic.core/src/net/mograsim/logic/core/types/Bit.java
index
752fbb8
..
51c0d39
100644
(file)
--- a/
plugins/net.mograsim.logic.core/src/net/mograsim/logic/core/types/Bit.java
+++ b/
plugins/net.mograsim.logic.core/src/net/mograsim/logic/core/types/Bit.java
@@
-34,36
+34,18
@@
public enum Bit implements StrictLogicType<Bit>
return fromTable(AND_TABLE, this, other);
}
return fromTable(AND_TABLE, this, other);
}
- public static void and(Bit[] dst, Bit[] src)
- {
- for (int i = 0; i < dst.length; i++)
- dst[i] = dst[i].and(src[i]);
- }
-
@Override
public Bit or(Bit other)
{
return fromTable(OR_TABLE, this, other);
}
@Override
public Bit or(Bit other)
{
return fromTable(OR_TABLE, this, other);
}
- public static void or(Bit[] dst, Bit[] src)
- {
- for (int i = 0; i < dst.length; i++)
- dst[i] = dst[i].or(src[i]);
- }
-
@Override
public Bit xor(Bit other)
{
return fromTable(XOR_TABLE, this, other);
}
@Override
public Bit xor(Bit other)
{
return fromTable(XOR_TABLE, this, other);
}
- public static void xor(Bit[] dst, Bit[] src)
- {
- for (int i = 0; i < dst.length; i++)
- dst[i] = dst[i].xor(src[i]);
- }
-
@Override
public Bit not()
{
@Override
public Bit not()
{