bug-gmp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

popcount.asm dll export


From: Jan Nieuwenhuizen
Subject: popcount.asm dll export
Date: Tue, 03 May 2005 20:44:17 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

Compiling gmp-4.1.4 for Cygwin/mingw, I need the patch below for
__gmp_mpn_popcount to show up in the DLL.

The other .asm files need this too, so this is only an example that
works.  mpz_popcount is the only one that I need right now, and I'm
not sure what the nice way to do this is.

Jan.

--- orig/mpn/x86/pentium/popcount.asm   2002-04-23 00:09:00 +0200
+++ gmp-4.1.4/mpn/x86/pentium/popcount.asm      2005-05-03 20:19:09 +0200
@@ -122,4 +122,9 @@
 
        ret
 
+ifdef(`DLL_EXPORT',`
+       .section .drectve
+       .ascii " -export:__gmpn_popcount"
+')
+
 EPILOGUE()

-- 
Jan Nieuwenhuizen <address@hidden> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien       | http://www.lilypond.org




reply via email to

[Prev in Thread] Current Thread [Next in Thread]