Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 32-bit versus 64-bit boolean_function issue in crypto #7020

Closed
kcrisman opened this issue Sep 27, 2009 · 8 comments
Closed

Fix 32-bit versus 64-bit boolean_function issue in crypto #7020

kcrisman opened this issue Sep 27, 2009 · 8 comments

Comments

@kcrisman
Copy link
Member

See #6870 for some discussion. A random test behaves differently in 32/64 cases:

sage -t -long devel/sage/sage/crypto/boolean_function.pyx
**********************************************************************
File "/scratch/mvngu/release/sage-4.1.2.alpha2/devel/sage-main/sage/crypto/boolean_function.pyx", line 1013:
    sage: B.nonlinearity()
Expected:
    217
Got:
    222
**********************************************************************
1 items had failures:
   1 of   6 in __main__.example_36
***Test Failed*** 1 failures.
For whitespace errors, see the file /home/mvngu/.sage//tmp/.doctest_boolean_function.py
 [5.3 s]

Component: doctest coverage

Author: Minh Van Nguyen

Reviewer: Jaap Spies

Merged: Sage 4.1.2.rc0

Issue created by migration from https://trac.sagemath.org/ticket/7020

@kcrisman kcrisman added this to the sage-4.1.2 milestone Sep 27, 2009
@kcrisman
Copy link
Member Author

comment:1

Either this patch or an identical one but with the other # (217 or 222) in the - line should apply and fix this. Probably it should be renamed as well!

@sagetrac-mvngu
Copy link
Mannequin

sagetrac-mvngu mannequin commented Sep 28, 2009

based on Sage 4.1.2.alpha4

@sagetrac-mvngu
Copy link
Mannequin

sagetrac-mvngu mannequin commented Sep 28, 2009

Changed author from Minh van Nguyen to Minh Van Nguyen

@sagetrac-mvngu
Copy link
Mannequin

sagetrac-mvngu mannequin commented Sep 28, 2009

comment:3

Attachment: trac_7020-bitness-issue.patch.gz

@jaapspies
Copy link
Member

Reviewer: Jaap Spies

@jaapspies
Copy link
Member

comment:4

Works for me on Fedora 11, 32 bit:

[jaap@paix sage-4.1.2.alpha4]$ ./sage -t  "devel/sage/sage/crypto/boolean_function.pyx"
sage -t  "devel/sage/sage/crypto/boolean_function.pyx"      
	 [8.9 s]
 
----------------------------------------------------------------------
All tests passed!
Total time for all tests: 8.9 seconds

@sagetrac-mvngu
Copy link
Mannequin

sagetrac-mvngu mannequin commented Sep 29, 2009

Merged: Sage 4.1.2.rc0

@sagetrac-mvngu sagetrac-mvngu mannequin closed this as completed Sep 29, 2009
@fchapoton

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants