move the c files under the package subdirectory, so nimble copies them when installing the package...

This commit is contained in:
Balazs Komuves 2024-10-18 15:20:58 +02:00
parent 606562832f
commit f72a0d47d9
No known key found for this signature in database
GPG Key ID: F63B7AEF18435562
6 changed files with 5 additions and 5 deletions

View File

@ -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