Fix alt_bn128 declarations as expected by gen-headers and regenerate (#32367)
This commit is contained in:
parent
77d46329dd
commit
09debae6b2
|
@ -55,25 +55,10 @@ extern "C" {
|
||||||
*/
|
*/
|
||||||
/* DO NOT MODIFY THIS GENERATED FILE. INSTEAD CHANGE sdk/sbf/c/inc/sol/inc/alt_bn128.inc AND RUN `cargo run --bin gen-headers` */
|
/* DO NOT MODIFY THIS GENERATED FILE. INSTEAD CHANGE sdk/sbf/c/inc/sol/inc/alt_bn128.inc AND RUN `cargo run --bin gen-headers` */
|
||||||
#ifndef SOL_SBFV2
|
#ifndef SOL_SBFV2
|
||||||
uint64_t sol_alt_bn128_group_op(
|
uint64_t sol_alt_bn128_group_op(const uint64_t, const uint8_t *, const uint64_t, uint8_t *);
|
||||||
const uint64_t group_op,
|
|
||||||
const uint8_t *input,
|
|
||||||
const uint64_t input_size,
|
|
||||||
uint8_t *result
|
|
||||||
);
|
|
||||||
#else
|
#else
|
||||||
typedef uint64_t(*sol_alt_bn128_group_op_pointer_type)(
|
typedef uint64_t(*sol_alt_bn128_group_op_pointer_type)(const uint64_t, const uint8_t *, const uint64_t, uint8_t *);
|
||||||
const uint64_t group_op,
|
static uint64_t sol_alt_bn128_group_op(const uint64_t arg1, const uint8_t * arg2, const uint64_t arg3, uint8_t * arg4) {
|
||||||
const uint8_t *input,
|
|
||||||
const uint64_t input_size,
|
|
||||||
uint8_t *result
|
|
||||||
);
|
|
||||||
static uint64_t sol_alt_bn128_group_op(
|
|
||||||
const uint64_t group_op arg1,
|
|
||||||
const uint8_t *input arg2,
|
|
||||||
const uint64_t input_size arg3,
|
|
||||||
uint8_t *result
|
|
||||||
arg4) {
|
|
||||||
sol_alt_bn128_group_op_pointer_type sol_alt_bn128_group_op_pointer = (sol_alt_bn128_group_op_pointer_type) 2920034699;
|
sol_alt_bn128_group_op_pointer_type sol_alt_bn128_group_op_pointer = (sol_alt_bn128_group_op_pointer_type) 2920034699;
|
||||||
return sol_alt_bn128_group_op_pointer(arg1, arg2, arg3, arg4);
|
return sol_alt_bn128_group_op_pointer(arg1, arg2, arg3, arg4);
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,12 +53,7 @@ extern "C" {
|
||||||
* @param result 64 byte array to hold the result. ...
|
* @param result 64 byte array to hold the result. ...
|
||||||
* @return 0 if executed successfully
|
* @return 0 if executed successfully
|
||||||
*/
|
*/
|
||||||
@SYSCALL uint64_t sol_alt_bn128_group_op(
|
@SYSCALL uint64_t sol_alt_bn128_group_op(const uint64_t, const uint8_t *, const uint64_t, uint8_t *);
|
||||||
const uint64_t group_op,
|
|
||||||
const uint8_t *input,
|
|
||||||
const uint64_t input_size,
|
|
||||||
uint8_t *result
|
|
||||||
);
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue