linux2023: tseng0201
contributed by < tseng0201 >
Mar 4, 2024contributed by < tseng0201 >
Mar 14, 2023contributed by < tseng0201 > 測驗一 考慮 next_pow2 可針對給定無號 64 位元數值 x,找出最接近且大於等於 2 的冪的值,例如: 以下是可能的實作方式: #include <stdint.h> static inline uint64_t pow2(uint8_t e) { return ((uint64_t)1) << e; }
Mar 6, 2023Prepare Prepare GNU Toolchain for RISC-V. See The xPack GNU RISC-V Embedded GCC $ cd /tmp $ wget https://github.com/xpack-dev-tools/riscv-none-elf-gcc-xpack/releases/download/v12.2.0-1/xpack-riscv-none-elf-gcc-12.2.0-1-linux-x64.tar.gz $ tar zxvf xpack-riscv-none-elf-gcc-12.2.0-1-linux-x64.tar.gz $ cp -af xpack-riscv-none-elf-gcc-12.2.0-1 $HOME/riscv-none-elf-gcc Configure $PATH
Jan 12, 2023or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up