FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Search found 4 matches
Forum Index
Author Message
  Topic: Assertion failure in bigint
tunah

Replies: 3
Views: 12520

PostForum: Deimos   Posted: Sun Jun 27, 2004 4:25 am   Subject: Assertion failure in bigint
Another bug, in etc.prime
uint getPrimeLessEqual(uint n)
{
if (n < 2) assert(false);
for (n=(n|1)-2; n!=1; n-=2)
{
if (isPrime(n ...
  Topic: Assertion failure in bigint
tunah

Replies: 3
Views: 12520

PostForum: Deimos   Posted: Sun Jun 27, 2004 2:48 am   Subject: Assertion failure in bigint
There's also a problem with the ge2 function which causes the fast gcd() to sometimes fail.
// get the number of trailing zero bits in this (ge2 means Greatest Power of 2)
uint ge2(Int x ...
  Topic: Assertion failure in bigint
tunah

Replies: 3
Views: 12520

PostForum: Deimos   Posted: Sat Jun 26, 2004 11:19 pm   Subject: Assertion failure in bigint
While I'm here, I'm wondering if you might reconsider the lack of destructive operations? While they wouldn't be very useful to me in this case AFAICS (exponentiating numbers of the form a+b sqrt(p)), ...
  Topic: Assertion failure in bigint
tunah

Replies: 3
Views: 12520

PostForum: Deimos   Posted: Sat Jun 26, 2004 11:08 pm   Subject: Assertion failure in bigint
Thanks a lot for bigint, it's excellent! (A lot more fun than in java, someone needs to tell them that OO can stand for operator overloading Wink)
I hit a problem though:
import etc.bigint.bigint;
...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group