Skip to content

Commit

Permalink
更新文档
Browse files Browse the repository at this point in the history
  • Loading branch information
copi143 committed Sep 4, 2024
1 parent 3f28548 commit 31e989b
Show file tree
Hide file tree
Showing 23 changed files with 109 additions and 49 deletions.
7 changes: 7 additions & 0 deletions docs/.pages
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
nav:
- 主页: index.md
- 项目状态: projects.md
- 计划: todo.md
- 库: libraries
- Plant-OS: Plant-OS
- CoolPotOS: CoolPotOS
6 changes: 0 additions & 6 deletions docs/404.md

This file was deleted.

Binary file added docs/404/assets/114514.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 docs/404/assets/icon-1.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 docs/404/assets/icon-2.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 docs/404/assets/icon-3.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 docs/404/assets/icon-4.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 docs/404/assets/icon-5.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 docs/404/assets/icon-6.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 docs/404/assets/icon-7.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 docs/404/assets/icon-8.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 docs/404/assets/icon-9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions docs/404/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
search:
exclude: true
---

# 隐藏页面

## 114514

![114:51:40](assets/114514.png)

## 已过时的

### Plant-OS 吉祥物备选项

![icon 1](assets/icon-1.png)
![icon 2](assets/icon-2.png)
![icon 3](assets/icon-3.png)
![icon 4](assets/icon-4.png)
![icon 5](assets/icon-5.png)
![icon 6](assets/icon-6.png)
![icon 7](assets/icon-7.png)
![icon 8](assets/icon-8.png)
![icon 9](assets/icon-9.png)
2 changes: 1 addition & 1 deletion docs/CoolPotOS/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ meta:
content: 关于 CoolPotOS
---

# 关于 CoolPotOS
# 关于 CoolPotOS<span style="margin: 0 10px;"></span>[[github]](https://github.com/plos-clan/CoolPotOS)
2 changes: 1 addition & 1 deletion docs/Plant-OS/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ meta:
content: 关于 Plant-OS
---

# 关于 Plant-OS
# 关于 Plant-OS<span style="margin: 0 10px;"></span>[[github]](https://github.com/plos-clan/Plant-OS)

![Static Badge](https://img.shields.io/badge/License-MIT-blue)<span style="margin: 0 10px;"></span>
![Static Badge](https://img.shields.io/badge/Language-3-orange)<span style="margin: 0 10px;"></span>
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/libraries/libc-base/alloc.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ meta:

# 内存分配器

![](/assets/内存管理.svg)
![内存管理](assets/内存管理.svg)
File renamed without changes
File renamed without changes.
72 changes: 72 additions & 0 deletions docs/libraries/misc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
---
comments: true
meta:
- property: og:title
content: libmisc
title: misc
---

# plos misc

各种可能会使用到的函数

## crypto

用于加密、解密、编码与哈希的函数集

### 加密、解密

- `caesar`

### 编码

- `base64`
- `hex`

### 哈希

- `crc16`
- `crc32`
- `md2`
- `md5`
- `sha256`

| Benchmark | Time | CPU | Iterations |
|-----------|-------------|-------------|------------|
| HASH | 965213 ns | 965165 ns | 718 |
| CRC16 | 2159411 ns | 2159417 ns | 322 |
| CRC32 | 1919038 ns | 1918664 ns | 365 |
| MD2 | 80181603 ns | 80179200 ns | 9 |
| MD5 | 5365364 ns | 5365305 ns | 130 |
| SHA256 | 9748719 ns | 9748511 ns | 72 |

> 测试数据大小 1,000,000
## math

扩展的数学函数集

- `FFT`
- `MDCT`
- ...

| Benchmark | Time | CPU | Iterations |
|-----------|----------|----------|------------|
| PLOS_FFT | 24344 ns | 24343 ns | 28176 |
| FFTW | 4071 ns | 4071 ns | 171647 |

> 测试数据大小 2048
**测试平台**

```plan
CPU: AMD Ryzen 7 5800H with Radeon Graphics
Run on (16 X 4463 MHz CPU s)
CPU Caches:
L1 Data 32 KiB (x8)
L1 Instruction 32 KiB (x8)
L2 Unified 512 KiB (x8)
L3 Unified 16384 KiB (x1)
```

具体测试代码见 [Plant-OS](/Plant-OS/) 储存库
39 changes: 0 additions & 39 deletions docs/libraries/misc/index.md

This file was deleted.

3 changes: 2 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ extra:

plugins:
- search
- awesome-pages
- markdownextradata
- exclude:
glob:
- 404.md
- README.md

markdown_extensions:
- abbr
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ mkdocs-exclude
mkdocs-material
mkdocs-material-extensions
mkdocs-markdownextradata-plugin
mkdocs-awesome-pages-plugin
pymdown-extensions
mdx_truly_sane_lists

0 comments on commit 31e989b

Please sign in to comment.