mirror of
https://github.com/logos-storage/nim-goldilocks-hash.git
synced 2026-02-15 02:53:11 +00:00
move the c files under the package subdirectory, so nimble copies them when installing the package...
This commit is contained in:
parent
606562832f
commit
f72a0d47d9
@ -1,11 +1,11 @@
|
||||
{. compile: "../cbits/goldilocks.c" .}
|
||||
{. compile: "../goldilocks_hash/cbits/goldilocks.c" .}
|
||||
|
||||
import ./types
|
||||
|
||||
func neg* (x: F ): F {. header: "../cbits/goldilocks.h", importc: "goldilocks_neg", cdecl .}
|
||||
func `+`* (x, y: F): F {. header: "../cbits/goldilocks.h", importc: "goldilocks_add", cdecl .}
|
||||
func `-`* (x, y: F): F {. header: "../cbits/goldilocks.h", importc: "goldilocks_sub", cdecl .}
|
||||
func `*`* (x, y: F): F {. header: "../cbits/goldilocks.h", importc: "goldilocks_mul", cdecl .}
|
||||
func neg* (x: F ): F {. header: "../goldilocks_hash/cbits/goldilocks.h", importc: "goldilocks_neg", cdecl .}
|
||||
func `+`* (x, y: F): F {. header: "../goldilocks_hash/cbits/goldilocks.h", importc: "goldilocks_add", cdecl .}
|
||||
func `-`* (x, y: F): F {. header: "../goldilocks_hash/cbits/goldilocks.h", importc: "goldilocks_sub", cdecl .}
|
||||
func `*`* (x, y: F): F {. header: "../goldilocks_hash/cbits/goldilocks.h", importc: "goldilocks_mul", cdecl .}
|
||||
|
||||
proc `+=`* (x: var F, y: F) = x = x + y
|
||||
proc `-=`* (x: var F, y: F) = x = x - y
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user