mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-07 00:03:10 +00:00
comment about 107
This commit is contained in:
parent
7d78916a6f
commit
ad067d1e52
@ -370,6 +370,9 @@ impl<'a> Interpreter<'a> {
|
|||||||
self.push(x.overflowing_sub(y).0);
|
self.push(x.overflowing_sub(y).0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: 107 is hardcoded as a dummy prime for testing
|
||||||
|
// should be changed to the proper implementation prime
|
||||||
|
|
||||||
fn run_addfp254(&mut self) {
|
fn run_addfp254(&mut self) {
|
||||||
let x = self.pop();
|
let x = self.pop();
|
||||||
let y = self.pop();
|
let y = self.pop();
|
||||||
|
|||||||
@ -5,6 +5,9 @@ use rand::{thread_rng, Rng};
|
|||||||
use crate::cpu::kernel::aggregator::combined_kernel;
|
use crate::cpu::kernel::aggregator::combined_kernel;
|
||||||
use crate::cpu::kernel::interpreter::run_with_kernel;
|
use crate::cpu::kernel::interpreter::run_with_kernel;
|
||||||
|
|
||||||
|
// TODO: 107 is hardcoded as a dummy prime for testing
|
||||||
|
// should be changed to the proper implementation prime
|
||||||
|
// once the run_{add, mul, sub}fp254 fns are implemented
|
||||||
const P254: u32 = 107;
|
const P254: u32 = 107;
|
||||||
|
|
||||||
fn add_fp(x: u32, y: u32) -> u32 {
|
fn add_fp(x: u32, y: u32) -> u32 {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user