This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//! Autogenerated: './src/ExtractionOCaml/unsaturated_solinas' --lang Zig curve25519 64 '(auto)' 2^255-19 --internal-static --public-function-case camelCase --private-function-case camelCase --no-prefix-fiat | |
//! curve description: curve25519 | |
//! machine_wordsize = 64 (from "64") | |
//! requested operations: (all) | |
//! n = 5 (from "(auto)") | |
//! s-c = 2^255 - [(1, 19)] (from "2^255-19") | |
//! tight_bounds_multiplier = 1 (from "") | |
//! | |
//! Computed values: | |
//! carry_chain = [0, 1, 2, 3, 4, 0, 1] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"crypto/sha256" | |
"crypto/x509" | |
"fmt" | |
"io/ioutil" | |
) | |
func main() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This file was automatically generated by zig-witx - Do not edit manually. | |
pub const handle = i32; | |
pub const char = u8; | |
pub const untyped_ptr = usize; | |
pub const wasi_string_ptr = *u8; | |
// size | |
pub const size = u32; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This file was automatically generated by zig-witx - Do not edit manually. | |
pub const handle = i32; | |
pub const char = u8; | |
pub const untyped_ptr = usize; | |
pub const wasi_string_ptr = *u8; | |
// Error codes. | |
pub const crypto_errno = enum(u16) { | |
// Operation succeeded. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function wasm_call_ctors() { | |
export function add(a:int, b:int):int { | |
export function memset(a:int, b:int, c:int):int { | |
export function memset_1(a:int, b:int, c:int, d:int):int { | |
export function memcpy(a:int, b:int, c:int):int { | |
export function memmove(a:int, b:ubyte_ptr, c:int):int { | |
export function memcmp(a:ubyte_ptr, b:ubyte_ptr, c:int):int { | |
export function bcmp(a:ubyte_ptr, b:ubyte_ptr, c:int):int { | |
export function fmodf(a:float, b:float):float { | |
export function fmod(a:double, b:double):double { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit c74f64f05764f8bb25d85d8a88cc7c4647be60cc | |
Author: Frank Denis <github@pureftpd.org> | |
Date: Fri Oct 16 14:57:36 2020 +0200 | |
Backport libxml2 fix from master | |
diff --git a/llvm/cmake/modules/GetLibraryName.cmake b/llvm/cmake/modules/GetLibraryName.cmake | |
new file mode 100644 | |
index 00000000000..518fa4cf594 | |
--- /dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const std = @import("std"); | |
fn eq(comptime T: type, comptime len: usize, a: []const T, b: []const T) bool { | |
if (len != a.len or len != b.len) return false; | |
if (a.ptr == b.ptr) return true; | |
const x16code = comptime blk: { | |
var i: usize = 0; | |
var buf = [_]u8{0} ** 4096; | |
var code = std.io.fixedBufferStream(&buf); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
// Copyright (c) 2015-2020 Zig Contributors | |
// This file is part of [zig](https://ziglang.org/), which is MIT licensed. | |
// The MIT license requires this copyright notice to be included in all copies | |
// and substantial portions of the software. | |
const Builder = @import("std").build.Builder; | |
pub fn build(b: *Builder) void { | |
// Standard target options allows the person running `zig build` to choose | |
// what target to build for. Here we do not override the defaults, which |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type handle = i32; | |
type char = u8; | |
type ptr<T> = usize; // all pointers are usize'd | |
type mut_ptr<T> = usize; // all pointers are usize'd | |
type untyped_ptr = usize; // all pointers are usize'd | |
type union_member = usize; // all pointers are usize'd | |
type struct<T> = T; // structs are references already in AS) | |
type wasi_string = ptr<char>; | |
/** xqd_status */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function hashlocks(n: isize): void { | |
while (n >= 128) { | |
for (let i = 0; i < 80; ++i) { | |
for (let j = 0; j < 8; ++j) { | |
// empty loop, but the content is not important | |
} | |
} | |
n -= 128; | |
} | |
} |