Skip to content

Optimized sha256 hash#41

Merged
XuJiandong merged 13 commits into
mainfrom
sha256
Jan 12, 2026
Merged

Optimized sha256 hash#41
XuJiandong merged 13 commits into
mainfrom
sha256

Conversation

@mohanson

@mohanson mohanson commented Jan 9, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings January 9, 2026 07:19
@mohanson mohanson requested a review from XuJiandong January 9, 2026 07:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces an optimized SHA-256 hash implementation for RISC-V architecture with various performance optimizations including 64-bit operations, loop unrolling, and Link Time Optimization (LTO).

Key changes:

  • New SHA-256 implementation with RISC-V-specific optimizations
  • Comprehensive test suite with multiple test cases
  • Build system configuration for RISC-V target with LTO enabled

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
opt-lib/sha256/sha256.h Header file defining SHA-256 API with types and function declarations
opt-lib/sha256/sha256.c Core SHA-256 implementation with optimizations for RISC-V including 64-bit operations and pragma-based loop unrolling
opt-lib/sha256/main.c Test suite with 7 test cases covering various input sizes and edge cases
opt-lib/sha256/Makefile Build configuration for RISC-V target with clang-19 and LTO flags
opt-lib/sha256/README.md Setup instructions for building dependencies
opt-lib/sha256/.gitignore Git ignore rules for build artifacts

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread opt-lib/sha256/sha256.c
Comment thread opt-lib/sha256/sha256.h
Comment thread opt-lib/sha256/sha256.h
Comment thread opt-lib/sha256/sha256.c
Comment thread opt-lib/sha256/sha256.c
Comment thread opt-lib/sha256/sha256.c
Comment thread opt-lib/sha256/sha256.c
Comment thread opt-lib/sha256/sha256.c
@XuJiandong XuJiandong merged commit d8c3e28 into main Jan 12, 2026
6 checks passed
@quake quake deleted the sha256 branch April 7, 2026 03:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants