aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/strap/FFIELDC.lsp
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2010-05-05 01:23:36 +0000
committerdos-reis <gdr@axiomatics.org>2010-05-05 01:23:36 +0000
commit5768bef1b2b7cd3fd38733a26a33ec2f0d8e6c01 (patch)
treebbe038276bb180f6d391dee2ca22388cd1aba2d2 /src/algebra/strap/FFIELDC.lsp
parent9d2955097e1bd70c06df5c5a55da67fb151466c2 (diff)
downloadopen-axiom-5768bef1b2b7cd3fd38733a26a33ec2f0d8e6c01.tar.gz
* interp/c-util.boot (backendCompileSPADSLAM): Generate more
readable Lisp code.
Diffstat (limited to 'src/algebra/strap/FFIELDC.lsp')
-rw-r--r--src/algebra/strap/FFIELDC.lsp90
1 files changed, 42 insertions, 48 deletions
diff --git a/src/algebra/strap/FFIELDC.lsp b/src/algebra/strap/FFIELDC.lsp
index 3a31837f..91dc1f86 100644
--- a/src/algebra/strap/FFIELDC.lsp
+++ b/src/algebra/strap/FFIELDC.lsp
@@ -4,57 +4,51 @@
(DEFPARAMETER |FiniteFieldCategory;AL| 'NIL)
(DEFUN |FiniteFieldCategory;| ()
- (PROG (#0=#:G1404)
- (RETURN
- (PROG1 (LETT #0#
- (|Join| (|FieldOfPrimeCharacteristic|) (|Finite|)
- (|StepThrough|) (|DifferentialRing|)
- (|mkCategory| '|domain|
- '(((|charthRoot| ($ $)) T)
- ((|conditionP|
- ((|Union| (|Vector| $) "failed")
- (|Matrix| $)))
- T)
- ((|factorsOfCyclicGroupSize|
- ((|List|
- (|Record|
+ (LET ((#0=#:G1404
+ (|Join| (|FieldOfPrimeCharacteristic|) (|Finite|)
+ (|StepThrough|) (|DifferentialRing|)
+ (|mkCategory| '|domain|
+ '(((|charthRoot| ($ $)) T)
+ ((|conditionP|
+ ((|Union| (|Vector| $) "failed")
+ (|Matrix| $)))
+ T)
+ ((|factorsOfCyclicGroupSize|
+ ((|List| (|Record|
(|:| |factor| (|Integer|))
(|:| |exponent| (|Integer|))))))
- T)
- ((|tableForDiscreteLogarithm|
- ((|Table| (|PositiveInteger|)
- (|NonNegativeInteger|))
- (|Integer|)))
- T)
- ((|createPrimitiveElement| ($)) T)
- ((|primitiveElement| ($)) T)
- ((|primitive?| ((|Boolean|) $)) T)
- ((|discreteLog|
- ((|NonNegativeInteger|) $))
- T)
- ((|order| ((|PositiveInteger|) $)) T)
- ((|representationType|
- ((|Union| "prime" "polynomial"
- "normal" "cyclic")))
- T))
- NIL
- '((|PositiveInteger|)
- (|NonNegativeInteger|) (|Boolean|)
- (|Table| (|PositiveInteger|)
- (|NonNegativeInteger|))
- (|Integer|)
- (|List| (|Record|
- (|:| |factor| (|Integer|))
- (|:| |exponent| (|Integer|))))
- (|Matrix| $))
- NIL))
- |FiniteFieldCategory|)
- (|setShellEntry| #0# 0 '(|FiniteFieldCategory|))))))
+ T)
+ ((|tableForDiscreteLogarithm|
+ ((|Table| (|PositiveInteger|)
+ (|NonNegativeInteger|))
+ (|Integer|)))
+ T)
+ ((|createPrimitiveElement| ($)) T)
+ ((|primitiveElement| ($)) T)
+ ((|primitive?| ((|Boolean|) $)) T)
+ ((|discreteLog| ((|NonNegativeInteger|) $))
+ T)
+ ((|order| ((|PositiveInteger|) $)) T)
+ ((|representationType|
+ ((|Union| "prime" "polynomial" "normal"
+ "cyclic")))
+ T))
+ NIL
+ '((|PositiveInteger|) (|NonNegativeInteger|)
+ (|Boolean|)
+ (|Table| (|PositiveInteger|)
+ (|NonNegativeInteger|))
+ (|Integer|)
+ (|List| (|Record| (|:| |factor| (|Integer|))
+ (|:| |exponent| (|Integer|))))
+ (|Matrix| $))
+ NIL))))
+ (|setShellEntry| #0# 0 '(|FiniteFieldCategory|))
+ #0#))
(DEFUN |FiniteFieldCategory| ()
- (LET ()
- (COND
- (|FiniteFieldCategory;AL|)
- (T (SETQ |FiniteFieldCategory;AL| (|FiniteFieldCategory;|))))))
+ (COND
+ (|FiniteFieldCategory;AL|)
+ (T (SETQ |FiniteFieldCategory;AL| (|FiniteFieldCategory;|)))))
(MAKEPROP '|FiniteFieldCategory| 'NILADIC T)