Changeset View
Changeset View
Standalone View
Standalone View
src/secp256k1/src/num.h
/********************************************************************** | /********************************************************************** | ||||
* Copyright (c) 2013, 2014 Pieter Wuille * | * Copyright (c) 2013, 2014 Pieter Wuille * | ||||
* Distributed under the MIT software license, see the accompanying * | * Distributed under the MIT software license, see the accompanying * | ||||
* file COPYING or http://www.opensource.org/licenses/mit-license.php.* | * file COPYING or http://www.opensource.org/licenses/mit-license.php.* | ||||
**********************************************************************/ | **********************************************************************/ | ||||
#ifndef _SECP256K1_NUM_ | #ifndef SECP256K1_NUM_H | ||||
#define _SECP256K1_NUM_ | #define SECP256K1_NUM_H | ||||
#ifndef USE_NUM_NONE | #ifndef USE_NUM_NONE | ||||
#if defined HAVE_CONFIG_H | #if defined HAVE_CONFIG_H | ||||
#include "libsecp256k1-config.h" | #include "libsecp256k1-config.h" | ||||
#endif | #endif | ||||
#if defined(USE_NUM_GMP) | #if defined(USE_NUM_GMP) | ||||
▲ Show 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | |||||
/** Check whether a number is strictly negative. */ | /** Check whether a number is strictly negative. */ | ||||
static int secp256k1_num_is_neg(const secp256k1_num *a); | static int secp256k1_num_is_neg(const secp256k1_num *a); | ||||
/** Change a number's sign. */ | /** Change a number's sign. */ | ||||
static void secp256k1_num_negate(secp256k1_num *r); | static void secp256k1_num_negate(secp256k1_num *r); | ||||
#endif | #endif | ||||
#endif | #endif /* SECP256K1_NUM_H */ |