Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Intel Community
- Software Products
- Software Archive
- using native 64-bit integer arithmetic from C#

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

Highlighted
##

fritzfranz

Beginner

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

03-14-2010
04:01 PM

22 Views

using native 64-bit integer arithmetic from C#

I have written a bunch of mathematical software in C#, mainly to do some experiments in Number theory (e.g. arbitrary precision integer arithmetic).

I would like to make optimal use of my Intel I7 64-bit machine and be able to compute things like

(a * b) % c (a, b, c being 64-bit integers) using native machine instructions without having to split the numbers into multiple pieces.

Questions:

- what is the best way to extend C# with assembler code for very high performance?

- what dies the MKL provide in this respect

2 Replies

Highlighted
##

I was doing a similar project and had the same problems. I can't remember what we ended up doing but I believe we split the numbers into mulitples.

-----------------------------------------------------------------------------------------------------------------------

AT45DB642D-CNU

AT45DB321D-SU

TMS320F28335PGFA

AT45DB161D-SU

AT45DB041D-SU

AT45DB642D-TU

steph143

Beginner

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

09-08-2010
07:47 AM

22 Views

-----------------------------------------------------------------------------------------------------------------------

AT45DB642D-CNU

AT45DB321D-SU

TMS320F28335PGFA

AT45DB161D-SU

AT45DB041D-SU

AT45DB642D-TU

Highlighted
##

neni

New Contributor II

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

09-08-2010
12:54 PM

22 Views

For more complete information about compiler optimizations, see our Optimization Notice.