Ticket #1 (closed enhancement: fixed)
[needs review] Core 2 to intel assembly format
| Reported by: | wbhart | Owned by: | somebody |
|---|---|---|---|
| Priority: | blocker | Milestone: | mpir-0.8 |
| Component: | component1 | Version: | |
| Keywords: | Cc: |
Description
The code in /mpn/x86_64/core2 is currently in gas format. This is basically Jason Martin's core2 patches from http://www.math.jmu.edu/~martin/ plus three files: lshift.asm, rshift.asm and mode1o.asm from the standard GMP 4.2.1 release.
The ticket is to convert Jason's patches to intel assembly format, in particular to assemble using yasm. This will happen automatically if they are given the extension .as instead of .asm. The example that can be followed is the code in the mpn/x86_64/amd64 directory. The only problem currently is that no macros are used for the global symbol prefix (a leading underscore or not, corresponding to the way functions get named at the binary level by the C compiler on the system). This is particularly important on Core 2, as on Darwin there is a global symbol prefix (leading underscore).

