Skip to content

Commit

Permalink
exclusive or
Browse files Browse the repository at this point in the history
  • Loading branch information
Peeeeanut committed Sep 16, 2024
1 parent c997aec commit a8e769c
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 2 deletions.
33 changes: 33 additions & 0 deletions 24-Q3/ExclusiveOr.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Exclusive OR and OR

## 真值表

| Input A | Input B | Output(A OR B) |
| :-----: | :-----: | :------------: |
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | **1** |

| Input A | Input B | Output(A XOR B) |
| :-----: | :-----: | :-------------: |
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | **0** |

区别仅在于1or1=1 1xor1=0

## 英语含义

![1726472839718](image/ExclusiveOr/1726472839718.png)![1726472844473](image/ExclusiveOr/1726472844473.png)

## 个人理解

OR:要么A要么B,两者之间没关系,只要有一个成立,则A OR B成立

XOR:要么A要么B,但是两者之间互斥,即要么A成立要么B成立,但是A和B不能同时成立,否则A XOR B不成立

---

**one or the other but not both**
4 changes: 2 additions & 2 deletions 24-Q3/bazel/6.5.0/bazel650.patch
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ diff -urN a/distdir_deps.bzl b/distdir_deps.bzl
+ "sha256": "6935a1e5af55363e37c5dc5a61bc220f347bbb36839e0e9f96dc1b75d079773c",
+ "strip_prefix": "java-11-openjdk",
+ "urls": [
+ "https://github.com/6eanut/bazel/releases/download/jdk/remotejdk11_linux_riscv64.tar.gz",
+ "https://github.com/6eanut/temp/releases/download/remotejdk11_linux_riscv64.tar.gz/remotejdk11_linux_riscv64.tar.gz",
+ ],
+ "used_in": [],
+ },
Expand Down Expand Up @@ -198,7 +198,7 @@ diff -urN a/src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WOR
-
+ name = "remotejdk11_linux_riscv64",
+ strip_prefix = "java-11-openjdk",
+ urls = ["https://github.com/6eanut/bazel/releases/download/jdk/remotejdk11_linux_riscv64.tar.gz"],
+ urls = ["https://github.com/6eanut/temp/releases/download/remotejdk11_linux_riscv64.tar.gz/remotejdk11_linux_riscv64.tar.gz"],
+
+ target_compatible_with = [
+ "@platforms//os:linux",
Expand Down
Binary file added 24-Q3/image/ExclusiveOr/1726472839718.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 24-Q3/image/ExclusiveOr/1726472844473.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# 24-Q3

[06 Exclusive OR](24-Q3/ExclusiveOr.md)

[05 Install the rpm package to the user path](24-Q3/rpm-user.md)

[04 Build Bazel on RISC-V](24-Q3/build-bazel-riscv.md)
Expand Down

0 comments on commit a8e769c

Please sign in to comment.