Corrected package structure

This commit is contained in:
Yuriy Glukhov 2018-05-08 16:51:55 +03:00
parent 0ad3239907
commit ad09fe3a94
40 changed files with 18 additions and 19 deletions

View File

@ -1,4 +1,4 @@
import ../src/mpint, times
import ../stint/mpint, times
# Warmup on normal int

View File

@ -7,8 +7,8 @@
#
# at your option. This file may not be copied, modified, or distributed except according to those terms.
import ./uint_public, ./int_public, ./io
export uint_public, int_public, io
import stint/[uint_public, int_public, io]
export uint_public, int_public, io
type
Int128* = Stint[128]

View File

@ -3,8 +3,7 @@ version = "0.0.1"
author = "Status Research & Development GmbH"
description = "Efficient stack-based multiprecision int in Nim"
license = "Apache License 2.0 or MIT"
srcDir = "src"
skipDirs = @["tests", "benchmarks"]
### Dependencies
# TODO remove quicktest and ttmath test only requirements: https://github.com/nim-lang/nimble/issues/482

View File

@ -9,7 +9,7 @@
# Test implementation of internal proc:
include ../src/private/uint_div
include ../stint/private/uint_div
import unittest
suite "implementation of internal division procecures":

View File

@ -7,7 +7,7 @@
#
# at your option. This file may not be copied, modified, or distributed except according to those terms.
import ../src/stint, unittest, quicktest
import ../stint, unittest, quicktest
const itercount = 1000

View File

@ -10,7 +10,7 @@
# Requires "https://github.com/status-im/nim-ttmath#master"
# Note that currently importing both Stint and TTMath will crash the compiler for unknown reason
import ../src/stint, unittest, quicktest, ttmath_compat
import ../stint, unittest, quicktest, ttmath_compat
const itercount = 10_000

View File

@ -7,7 +7,7 @@
#
# at your option. This file may not be copied, modified, or distributed except according to those terms.
import ../src/stint, unittest
import ../stint, unittest
suite "Testing signed addition implementation":
test "In-place addition gives expected result":

View File

@ -7,7 +7,7 @@
#
# at your option. This file may not be copied, modified, or distributed except according to those terms.
import ../src/stint, unittest
import ../stint, unittest
suite "Signed int - Testing comparison operators":
let

View File

@ -7,7 +7,7 @@
#
# at your option. This file may not be copied, modified, or distributed except according to those terms.
import ../src/stint, unittest
import ../stint, unittest
suite "Testing signed int byte representation":
test "Byte representation conforms to the platform endianness":

View File

@ -7,7 +7,7 @@
#
# at your option. This file may not be copied, modified, or distributed except according to those terms.
import ../src/stint, unittest
import ../stint, unittest
suite "Testing signed int multiplication implementation":
test "Multiplication with result fitting in low half":

View File

@ -7,7 +7,7 @@
#
# at your option. This file may not be copied, modified, or distributed except according to those terms.
import ../src/stint, unittest, strutils
import ../stint, unittest, strutils
suite "Testing input and output procedures":
test "Creation from decimal strings":

View File

@ -7,7 +7,7 @@
#
# at your option. This file may not be copied, modified, or distributed except according to those terms.
import ../src/stint, unittest
import ../stint, unittest
suite "Testing unsigned int addition implementation":
test "In-place addition gives expected result":

View File

@ -7,7 +7,7 @@
#
# at your option. This file may not be copied, modified, or distributed except according to those terms.
import ../src/stint, unittest
import ../stint, unittest
suite "Testing unsigned int bitwise operations":
let a = 100'i16.stuint(16)

View File

@ -7,7 +7,7 @@
#
# at your option. This file may not be copied, modified, or distributed except according to those terms.
import ../src/stint, unittest
import ../stint, unittest
suite "Testing unsigned int comparison operators":
let

View File

@ -7,7 +7,7 @@
#
# at your option. This file may not be copied, modified, or distributed except according to those terms.
import ../src/stint, unittest
import ../stint, unittest
suite "Testing unsigned int byte representation":
test "Byte representation conforms to the platform endianness":

View File

@ -7,7 +7,7 @@
#
# at your option. This file may not be copied, modified, or distributed except according to those terms.
import ../src/stint, unittest
import ../stint, unittest
suite "Testing unsigned int multiplication implementation":
test "Multiplication with result fitting in low half":

View File

@ -1,4 +1,4 @@
import ../src/stint, ttmath
import ../stint, ttmath
export ttmath
template asSt*(val: UInt): auto =