Skip to content

Commit

Permalink
fix integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
chaosma committed Sep 25, 2024
1 parent ccc8c91 commit b00a6c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ jobs:
RAYON_NUM_THREADS: 2
with:
command: run
args: --package ceno_zkvm --example riscv_opcodes --target ${{ matrix.target }} -- --start 9 --end 10
args: --package ceno_zkvm --example riscv_opcodes --target ${{ matrix.target }} -- --start 10 --end 11

10 changes: 2 additions & 8 deletions ceno_zkvm/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use ff::Field;
use ff_ext::ExtensionField;
use goldilocks::SmallField;
use itertools::Itertools;
use std::mem;
use transcript::Transcript;

/// convert ext field element to u64, assume it is inside the range
Expand Down Expand Up @@ -34,13 +33,8 @@ pub fn limb_u8_to_u16(input: &[u8]) -> Vec<u16> {
.collect()
}

pub fn split_to_u8<T: Into<u64>>(value: T) -> Vec<u8> {
let value: u64 = value.into(); // Convert to u64 for generality
let limbs: usize = {
let u8_bytes = (u16::BITS / 8) as usize;
mem::size_of::<T>() / u8_bytes
};
(0..limbs)
pub fn split_to_u8(value: u32) -> Vec<u8> {
(0..4)
.scan(value, |acc, _| {
let limb = (*acc & 0xFF) as u8;
*acc >>= 8;
Expand Down

0 comments on commit b00a6c7

Please sign in to comment.