mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > YAFU

Reply
 
Thread Tools
Old 2013-02-16, 18:27   #1
LangerJan
 
LangerJan's Avatar
 
Feb 2013

3·5 Posts
Default Using YAFU as a C-library

Hi everyone!

I'm looking for a general-purpose factorization library for integers of any size (i > 2^64, but may be -much- bigger). I tried msieve, but it fails from time to time and most disturbingly, it calls exit(-1) in some cases.

Is it possible to use yafu as a C library (or parts of it)? Is somebody using yafu that way? I tried reading my way through the code, but it looks quite difficult.

Kind regards
LangerJan is offline   Reply With Quote
Old 2013-02-16, 20:02   #2
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

3×29×83 Posts
Default

Well... for anything less than 100 digits, it might be possible to compile it as a library -- but for implementing NFS, it delegates to Msieve -- and we've run into the same issue of some unfortunate exit()s.
Dubslow is offline   Reply With Quote
Old 2013-02-17, 06:18   #3
LangerJan
 
LangerJan's Avatar
 
Feb 2013

3×5 Posts
Default

Very well, I will fiddle with the msieve code then :) Thanks!
LangerJan is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Running YAFU via Aliqueit doesn't find yafu.ini EdH YAFU 8 2018-03-14 17:22
factoring with MIRACL library prss Factoring 22 2011-06-15 20:25
Quickest fft library nuggetprime Software 3 2011-01-09 01:24
GWNUM library and llr leizhoucn Programming 2 2007-11-05 09:34
GWNUM library bearnol Software 6 2006-02-24 11:19

All times are UTC. The time now is 20:23.


Mon Oct 25 20:23:09 UTC 2021 up 94 days, 14:52, 0 users, load averages: 1.82, 2.12, 2.19

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.