Docs: generic.math and layouts
parent
669bb0a77e
commit
3cd3ea35db
|
@ -2,6 +2,17 @@ USING: kernel generic help.markup help.syntax math classes
|
||||||
sequences quotations generic.math.private ;
|
sequences quotations generic.math.private ;
|
||||||
IN: generic.math
|
IN: generic.math
|
||||||
|
|
||||||
|
HELP: math-class-max
|
||||||
|
{ $values { "class1" class } { "class2" class } }
|
||||||
|
{ $description "Evaluates which math class is the largest." }
|
||||||
|
{ $examples
|
||||||
|
{ $example
|
||||||
|
"USING: generic.math math kernel prettyprint ;"
|
||||||
|
"integer float math-class-max ."
|
||||||
|
"float"
|
||||||
|
}
|
||||||
|
} ;
|
||||||
|
|
||||||
HELP: math-upgrade
|
HELP: math-upgrade
|
||||||
{ $values { "class1" class } { "class2" class } { "quot" { $quotation "( n n -- n n )" } } }
|
{ $values { "class1" class } { "class2" class } { "quot" { $quotation "( n n -- n n )" } } }
|
||||||
{ $description "Outputs a quotation for upgrading numberical types. It takes two numbers on the stack, an instance of " { $snippet "class1" } ", and an instance of " { $snippet "class2" } ", and converts the one with the lower priority to the higher priority type." }
|
{ $description "Outputs a quotation for upgrading numberical types. It takes two numbers on the stack, an instance of " { $snippet "class1" } ", and an instance of " { $snippet "class2" } ", and converts the one with the lower priority to the higher priority type." }
|
||||||
|
@ -39,5 +50,3 @@ $nl
|
||||||
|
|
||||||
HELP: math-generic
|
HELP: math-generic
|
||||||
{ $class-description "The class of generic words using " { $link math-combination } "." } ;
|
{ $class-description "The class of generic words using " { $link math-combination } "." } ;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -70,6 +70,9 @@ HELP: bootstrap-cell-bits
|
||||||
{ $values { "n" integer } }
|
{ $values { "n" integer } }
|
||||||
{ $description "Outputs the number of bits in one cell in the target image (if bootstrapping) or the current CPU architecture (otherwise)." } ;
|
{ $description "Outputs the number of bits in one cell in the target image (if bootstrapping) or the current CPU architecture (otherwise)." } ;
|
||||||
|
|
||||||
|
HELP: immediate
|
||||||
|
{ $class-description "Union class of all values that the Factor VM can store immediately, all others are stored as references (pointer) to them." } ;
|
||||||
|
|
||||||
ARTICLE: "layouts-types" "Type numbers"
|
ARTICLE: "layouts-types" "Type numbers"
|
||||||
"Corresponding to every built-in class is a built-in type number. An object can be asked for its built-in type number:"
|
"Corresponding to every built-in class is a built-in type number. An object can be asked for its built-in type number:"
|
||||||
{ $subsections tag }
|
{ $subsections tag }
|
||||||
|
|
Loading…
Reference in New Issue