Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
mie::local::PrimitiveFunction Struct Reference

#include <zm.h>

Static Public Member Functions

static int compare (const Unit *x, size_t xn, const Unit *y, size_t yn)
 

Static Public Attributes

static bool(* addN )(Unit *out, const Unit *x, const Unit *y, size_t n) = &in_addN
 
static bool(* add1 )(Unit *out, const Unit *x, size_t n, Unit y) = &in_add
 
static bool(* subN )(Unit *out, const Unit *x, const Unit *y, size_t n) = &in_subN
 
static bool(* sub1 )(Unit *out, const Unit *x, size_t n, Unit y) = &in_sub
 
static void(* mul1 )(Unit *out, const Unit *x, size_t n, Unit y) = &in_mul
 
static Unit(* div1 )(Unit *q, const Unit *x, size_t n, Unit y) = &in_div
 
static Unit(* mod1 )(const Unit *x, size_t n, Unit y) = &in_mod
 

Detailed Description

Definition at line 176 of file zm.h.

Member Function Documentation

◆ compare()

static int mie::local::PrimitiveFunction::compare ( const Unit * x,
size_t xn,
const Unit * y,
size_t yn )
inlinestatic

Definition at line 183 of file zm.h.

184 {
185 assert(xn > 0 && yn > 0);
186 if (xn != yn) return xn > yn ? 1 : -1;
187 for (int i = (int)xn - 1; i >= 0; i--) {
188 if (x[i] != y[i]) return x[i] > y[i] ? 1 : -1;
189 }
190 return 0;
191 }
uint64_t y
Definition sha3.cpp:34
Here is the caller graph for this function:

Member Data Documentation

◆ add1

bool(* mie::local::PrimitiveFunction::add1)(Unit *out, const Unit *x, size_t n, Unit y) = &in_add
static

Definition at line 200 of file zm.h.

◆ addN

bool(* mie::local::PrimitiveFunction::addN)(Unit *out, const Unit *x, const Unit *y, size_t n) = &in_addN
static

Definition at line 196 of file zm.h.

◆ div1

Unit(* mie::local::PrimitiveFunction::div1)(Unit *q, const Unit *x, size_t n, Unit y) = &in_div
static

Definition at line 218 of file zm.h.

◆ mod1

Unit(* mie::local::PrimitiveFunction::mod1)(const Unit *x, size_t n, Unit y) = &in_mod
static

Definition at line 223 of file zm.h.

◆ mul1

void(* mie::local::PrimitiveFunction::mul1)(Unit *out, const Unit *x, size_t n, Unit y) = &in_mul
static

Definition at line 211 of file zm.h.

◆ sub1

bool(* mie::local::PrimitiveFunction::sub1)(Unit *out, const Unit *x, size_t n, Unit y) = &in_sub
static

Definition at line 209 of file zm.h.

◆ subN

bool(* mie::local::PrimitiveFunction::subN)(Unit *out, const Unit *x, const Unit *y, size_t n) = &in_subN
static

Definition at line 205 of file zm.h.


The documentation for this struct was generated from the following files: