1// +build !amd64 2 3// Copyright 2020 ConsenSys Software Inc. 4// 5// Licensed under the Apache License, Version 2.0 (the "License"); 6// you may not use this file except in compliance with the License. 7// You may obtain a copy of the License at 8// 9// http://www.apache.org/licenses/LICENSE-2.0 10// 11// Unless required by applicable law or agreed to in writing, software 12// distributed under the License is distributed on an "AS IS" BASIS, 13// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14// See the License for the specific language governing permissions and 15// limitations under the License. 16 17// Code generated by consensys/gnark-crypto DO NOT EDIT 18 19package fr 20 21// /!\ WARNING /!\ 22// this code has not been audited and is provided as-is. In particular, 23// there is no security guarantees such as constant time implementation 24// or side-channel attack resistance 25// /!\ WARNING /!\ 26 27// MulBy3 x *= 3 28func MulBy3(x *Element) { 29 mulByConstant(x, 3) 30} 31 32// MulBy5 x *= 5 33func MulBy5(x *Element) { 34 mulByConstant(x, 5) 35} 36 37// MulBy13 x *= 13 38func MulBy13(x *Element) { 39 mulByConstant(x, 13) 40} 41 42func mul(z, x, y *Element) { 43 _mulGeneric(z, x, y) 44} 45 46// FromMont converts z in place (i.e. mutates) from Montgomery to regular representation 47// sets and returns z = z * 1 48func fromMont(z *Element) { 49 _fromMontGeneric(z) 50} 51 52func add(z, x, y *Element) { 53 _addGeneric(z, x, y) 54} 55 56func double(z, x *Element) { 57 _doubleGeneric(z, x) 58} 59 60func sub(z, x, y *Element) { 61 _subGeneric(z, x, y) 62} 63 64func neg(z, x *Element) { 65 _negGeneric(z, x) 66} 67 68func reduce(z *Element) { 69 _reduceGeneric(z) 70} 71