|
|
DataMuseum.dkPresents historical artifacts from the history of: RC9000 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about RC9000 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: d
Length: 2379 (0x94b)
Names: »div.3«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦bbf173f5c⟧ »0004«
└─⟦this⟧ »./usr/man/cat3/div.3«
0x000…020 0a 0a 0a 5f 08 4f 5f 08 6e 5f 08 6c 5f 08 69 5f 08 6e 5f 08 65 20 5f 08 4d 5f 08 61 5f 08 6e 5f ┆ _ O_ n_ l_ i_ n_ e _ M_ a_ n_┆
0x020…040 08 75 5f 08 61 5f 08 6c 20 20 20 20 20 20 20 20 20 20 20 4c 69 62 72 61 72 79 20 46 75 6e 63 74 ┆ u_ a_ l Library Funct┆
0x040…060 69 6f 6e 73 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 64 69 76 28 33 29 0a 0a 0a 0a ┆ions div(3) ┆
0x060…080 4e 08 4e 08 4e 08 4e 41 08 41 08 41 08 41 4d 08 4d 08 4d 08 4d 45 08 45 08 45 08 45 0a 20 20 20 ┆N N N NA A A AM M M ME E E E ┆
0x080…0a0 20 20 64 69 76 2c 20 6c 64 69 76 20 2d 20 63 6f 6d 70 75 74 65 20 74 68 65 20 71 75 6f 74 69 65 ┆ div, ldiv - compute the quotie┆
0x0a0…0c0 6e 74 20 61 6e 64 20 72 65 6d 61 69 6e 64 65 72 0a 0a 53 08 53 08 53 08 53 59 08 59 08 59 08 59 ┆nt and remainder S S S SY Y Y Y┆
0x0c0…0e0 4e 08 4e 08 4e 08 4e 54 08 54 08 54 08 54 41 08 41 08 41 08 41 58 08 58 08 58 08 58 0a 20 20 20 ┆N N N NT T T TA A A AX X X X ┆
0x0e0…100 20 20 23 08 23 08 23 08 23 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 63 08 63 08 63 08 63 6c 08 ┆ # # # #i i i in n n nc c c cl ┆
0x100…120 6c 08 6c 08 6c 75 08 75 08 75 08 75 64 08 64 08 64 08 64 65 08 65 08 65 08 65 20 3c 08 3c 08 3c ┆l l lu u u ud d d de e e e < < <┆
0x120…140 08 3c 73 08 73 08 73 08 73 74 08 74 08 74 08 74 64 08 64 08 64 08 64 6c 08 6c 08 6c 08 6c 69 08 ┆ <s s s st t t td d d dl l l li ┆
0x140…160 69 08 69 08 69 62 08 62 08 62 08 62 2e 08 2e 08 2e 08 2e 68 08 68 08 68 08 68 3e 08 3e 08 3e 08 ┆i i ib b b b. . . .h h h h> > > ┆
0x160…180 3e 0a 0a 20 20 20 20 20 64 08 64 08 64 08 64 69 08 69 08 69 08 69 76 08 76 08 76 08 76 5f 08 5f ┆> d d d di i i iv v v v_ _┆
0x180…1a0 08 5f 08 5f 74 08 74 08 74 08 74 20 64 08 64 08 64 08 64 69 08 69 08 69 08 69 76 08 76 08 76 08 ┆ _ _t t t t d d d di i i iv v v ┆
0x1a0…1c0 76 28 08 28 08 28 08 28 6e 08 6e 08 6e 08 6e 75 08 75 08 75 08 75 6d 08 6d 08 6d 08 6d 65 08 65 ┆v( ( ( (n n n nu u u um m m me e┆
0x1c0…1e0 08 65 08 65 72 08 72 08 72 08 72 2c 08 2c 08 2c 08 2c 20 64 08 64 08 64 08 64 65 08 65 08 65 08 ┆ e er r r r, , , , d d d de e e ┆
0x1e0…200 65 6e 08 6e 08 6e 08 6e 6f 08 6f 08 6f 08 6f 6d 08 6d 08 6d 08 6d 29 08 29 08 29 08 29 0a 20 20 ┆en n n no o o om m m m) ) ) ) ┆
0x200…220 20 20 20 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 20 6e 08 6e 08 6e 08 6e ┆ i i i in n n nt t t t n n n n┆
0x220…240 75 08 75 08 75 08 75 6d 08 6d 08 6d 08 6d 65 08 65 08 65 08 65 72 08 72 08 72 08 72 2c 08 2c 08 ┆u u u um m m me e e er r r r, , ┆
0x240…260 2c 08 2c 20 64 08 64 08 64 08 64 65 08 65 08 65 08 65 6e 08 6e 08 6e 08 6e 6f 08 6f 08 6f 08 6f ┆, , d d d de e e en n n no o o o┆
0x260…280 6d 08 6d 08 6d 08 6d 3b 08 3b 08 3b 08 3b 0a 0a 20 20 20 20 20 6c 08 6c 08 6c 08 6c 64 08 64 08 ┆m m m m; ; ; ; l l l ld d ┆
0x280…2a0 64 08 64 69 08 69 08 69 08 69 76 08 76 08 76 08 76 5f 08 5f 08 5f 08 5f 74 08 74 08 74 08 74 20 ┆d di i i iv v v v_ _ _ _t t t t ┆
0x2a0…2c0 6c 08 6c 08 6c 08 6c 64 08 64 08 64 08 64 69 08 69 08 69 08 69 76 08 76 08 76 08 76 28 08 28 08 ┆l l l ld d d di i i iv v v v( ( ┆
0x2c0…2e0 28 08 28 6e 08 6e 08 6e 08 6e 75 08 75 08 75 08 75 6d 08 6d 08 6d 08 6d 65 08 65 08 65 08 65 72 ┆( (n n n nu u u um m m me e e er┆
0x2e0…300 08 72 08 72 08 72 2c 08 2c 08 2c 08 2c 20 64 08 64 08 64 08 64 65 08 65 08 65 08 65 6e 08 6e 08 ┆ r r r, , , , d d d de e e en n ┆
0x300…320 6e 08 6e 6f 08 6f 08 6f 08 6f 6d 08 6d 08 6d 08 6d 29 08 29 08 29 08 29 0a 20 20 20 20 20 6c 08 ┆n no o o om m m m) ) ) ) l ┆
0x320…340 6c 08 6c 08 6c 6f 08 6f 08 6f 08 6f 6e 08 6e 08 6e 08 6e 67 08 67 08 67 08 67 20 69 08 69 08 69 ┆l l lo o o on n n ng g g g i i i┆
0x340…360 08 69 6e 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 20 6e 08 6e 08 6e 08 6e 75 08 75 08 75 08 75 6d ┆ in n n nt t t t n n n nu u u um┆
0x360…380 08 6d 08 6d 08 6d 65 08 65 08 65 08 65 72 08 72 08 72 08 72 2c 08 2c 08 2c 08 2c 20 64 08 64 08 ┆ m m me e e er r r r, , , , d d ┆
0x380…3a0 64 08 64 65 08 65 08 65 08 65 6e 08 6e 08 6e 08 6e 6f 08 6f 08 6f 08 6f 6d 08 6d 08 6d 08 6d 3b ┆d de e e en n n no o o om m m m;┆
0x3a0…3c0 08 3b 08 3b 08 3b 0a 0a 44 08 44 08 44 08 44 45 08 45 08 45 08 45 53 08 53 08 53 08 53 43 08 43 ┆ ; ; ; D D D DE E E ES S S SC C┆
0x3c0…3e0 08 43 08 43 52 08 52 08 52 08 52 49 08 49 08 49 08 49 50 08 50 08 50 08 50 54 08 54 08 54 08 54 ┆ C CR R R RI I I IP P P PT T T T┆
0x3e0…400 49 08 49 08 49 08 49 4f 08 4f 08 4f 08 4f 4e 08 4e 08 4e 08 4e 0a 20 20 20 20 20 5f 08 64 5f 08 ┆I I I IO O O ON N N N _ d_ ┆
0x400…420 69 5f 08 76 20 63 6f 6d 70 75 74 65 73 20 74 68 65 20 71 75 6f 74 69 65 6e 74 20 61 6e 64 20 72 ┆i_ v computes the quotient and r┆
0x420…440 65 6d 61 69 6e 64 65 72 20 6f 66 20 74 68 65 20 64 69 76 69 73 69 6f 6e 20 6f 66 0a 20 20 20 20 ┆emainder of the division of ┆
0x440…460 20 74 68 65 20 6e 75 6d 65 72 61 74 6f 72 20 5f 08 6e 5f 08 75 5f 08 6d 5f 08 65 5f 08 72 20 62 ┆ the numerator _ n_ u_ m_ e_ r b┆
0x460…480 79 20 74 68 65 20 64 65 6e 6f 6d 69 6e 61 74 6f 72 20 5f 08 64 5f 08 65 5f 08 6e 5f 08 6f 5f 08 ┆y the denominator _ d_ e_ n_ o_ ┆
0x480…4a0 6d 2e 20 20 54 68 69 73 20 66 75 6e 63 74 69 6f 6e 0a 20 20 20 20 20 70 72 6f 76 69 64 65 73 20 ┆m. This function provides ┆
0x4a0…4c0 61 20 77 65 6c 6c 2d 64 65 66 69 6e 65 64 20 73 65 6d 61 6e 74 69 63 73 20 66 6f 72 20 74 68 65 ┆a well-defined semantics for the┆
0x4c0…4e0 20 73 69 67 6e 65 64 20 69 6e 74 65 67 72 61 6c 0a 20 20 20 20 20 64 69 76 69 73 69 6f 6e 20 61 ┆ signed integral division a┆
0x4e0…500 6e 64 20 72 65 6d 61 69 6e 64 65 72 20 6f 70 65 72 61 74 69 6f 6e 73 2c 20 75 6e 6c 69 6b 65 20 ┆nd remainder operations, unlike ┆
0x500…520 74 68 65 0a 20 20 20 20 20 69 6d 70 6c 65 6d 65 6e 74 61 74 69 6f 6e 2d 64 65 66 69 6e 65 64 20 ┆the implementation-defined ┆
0x520…540 73 65 6d 61 6e 74 69 63 73 20 6f 66 20 74 68 65 20 62 75 69 6c 74 2d 69 6e 20 6f 70 65 72 61 74 ┆semantics of the built-in operat┆
0x540…560 69 6f 6e 73 2e 0a 20 20 20 20 20 54 68 65 20 73 69 67 6e 20 6f 66 20 74 68 65 20 72 65 73 75 6c ┆ions. The sign of the resul┆
0x560…580 74 69 6e 67 20 71 75 6f 74 69 65 6e 74 20 69 73 20 74 68 61 74 20 6f 66 20 74 68 65 20 61 6c 67 ┆ting quotient is that of the alg┆
0x580…5a0 65 62 72 61 69 63 0a 20 20 20 20 20 71 75 6f 74 69 65 6e 74 2c 20 61 6e 64 2c 20 69 66 20 74 68 ┆ebraic quotient, and, if th┆
0x5a0…5c0 65 20 64 69 76 69 73 69 6f 6e 20 69 73 20 69 6e 65 78 61 63 74 2c 20 74 68 65 20 6d 61 67 6e 69 ┆e division is inexact, the magni┆
0x5c0…5e0 74 75 64 65 20 6f 66 0a 20 20 20 20 20 74 68 65 20 72 65 73 75 6c 74 69 6e 67 20 71 75 6f 74 69 ┆tude of the resulting quoti┆
0x5e0…600 65 6e 74 20 69 73 20 74 68 65 20 6c 61 72 67 65 73 74 20 69 6e 74 65 67 65 72 20 6c 65 73 73 20 ┆ent is the largest integer less ┆
0x600…620 74 68 61 6e 20 74 68 65 0a 20 20 20 20 20 6d 61 67 6e 69 74 75 64 65 20 6f 66 20 74 68 65 20 61 ┆than the magnitude of the a┆
0x620…640 6c 67 65 62 72 61 69 63 20 71 75 6f 74 69 65 6e 74 2e 20 20 49 66 20 74 68 65 20 72 65 73 75 6c ┆lgebraic quotient. If the resul┆
0x640…660 74 20 63 61 6e 6e 6f 74 0a 20 20 20 20 20 62 65 20 72 65 70 72 65 73 65 6e 74 65 64 2c 20 74 68 ┆t cannot be represented, th┆
0x660…680 65 20 62 65 68 61 76 69 6f 72 20 69 73 20 75 6e 64 65 66 69 6e 65 64 3b 20 6f 74 68 65 72 77 69 ┆e behavior is undefined; otherwi┆
0x680…6a0 73 65 2c 20 5f 08 71 5f 08 75 5f 08 6f 5f 08 2d 0a 20 20 20 20 20 5f 08 74 5f 08 69 5f 08 65 5f ┆se, _ q_ u_ o_ - _ t_ i_ e_┆
0x6a0…6c0 08 6e 5f 08 74 20 2a 20 5f 08 64 5f 08 65 5f 08 6e 5f 08 6f 5f 08 6d 20 2b 20 5f 08 72 5f 08 65 ┆ n_ t * _ d_ e_ n_ o_ m + _ r_ e┆
0x6c0…6e0 5f 08 6d 5f 08 61 5f 08 69 5f 08 6e 5f 08 64 5f 08 65 5f 08 72 20 77 69 6c 6c 20 65 71 75 61 6c ┆_ m_ a_ i_ n_ d_ e_ r will equal┆
0x6e0…700 20 5f 08 6e 5f 08 75 5f 08 6d 5f 08 65 5f 08 72 2e 0a 0a 20 20 20 20 20 5f 08 64 5f 08 69 5f 08 ┆ _ n_ u_ m_ e_ r. _ d_ i_ ┆
0x700…720 76 20 72 65 74 75 72 6e 73 20 61 20 73 74 72 75 63 74 75 72 65 20 6f 66 20 74 79 70 65 20 64 08 ┆v returns a structure of type d ┆
0x720…740 64 08 64 08 64 69 08 69 08 69 08 69 76 08 76 08 76 08 76 5f 08 5f 08 5f 08 5f 74 08 74 08 74 08 ┆d d di i i iv v v v_ _ _ _t t t ┆
0x740…760 74 2c 20 63 6f 6d 70 72 69 73 69 6e 67 20 62 6f 74 68 20 74 68 65 0a 20 20 20 20 20 71 75 6f 74 ┆t, comprising both the quot┆
0x760…780 69 65 6e 74 20 61 6e 64 20 72 65 6d 61 69 6e 64 65 72 3a 0a 0a 20 20 20 20 20 20 20 20 20 20 74 ┆ient and remainder: t┆
0x780…7a0 79 70 65 64 65 66 20 73 74 72 75 63 74 20 64 69 76 5f 74 20 7b 0a 20 20 20 20 20 20 20 20 20 20 ┆ypedef struct div_t { ┆
0x7a0…7c0 20 20 20 20 20 69 6e 74 20 20 71 75 6f 74 3b 20 20 20 20 20 2f 2a 71 75 6f 74 69 65 6e 74 2a 2f ┆ int quot; /*quotient*/┆
0x7c0…7e0 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 20 72 65 6d 3b 20 2f 2a 72 65 6d 61 ┆ int rem; /*rema┆
0x7e0…800 69 6e 64 65 72 2a 2f 0a 20 20 20 20 20 20 20 20 20 20 7d 20 64 69 76 5f 74 3b 0a 0a 20 20 20 20 ┆inder*/ } div_t; ┆
0x800…820 20 5f 08 6c 5f 08 64 5f 08 69 5f 08 76 20 69 73 20 73 69 6d 69 6c 61 72 20 74 6f 20 5f 08 64 5f ┆ _ l_ d_ i_ v is similar to _ d_┆
0x820…840 08 69 5f 08 76 2c 20 65 78 63 65 70 74 20 74 68 61 74 20 74 68 65 20 61 72 67 75 6d 65 6e 74 73 ┆ i_ v, except that the arguments┆
0x840…860 20 61 6e 64 20 74 68 65 0a 20 20 20 20 20 6d 65 6d 62 65 72 73 20 6f 66 20 74 68 65 20 72 65 74 ┆ and the members of the ret┆
0x860…880 75 72 6e 65 64 20 73 74 72 75 63 74 75 72 65 20 28 77 68 69 63 68 20 68 61 73 20 74 79 70 65 20 ┆urned structure (which has type ┆
0x880…8a0 6c 08 6c 08 6c 08 6c 64 08 64 08 64 08 64 69 08 69 08 69 08 69 76 08 76 08 76 08 76 5f 08 5f 08 ┆l l l ld d d di i i iv v v v_ _ ┆
0x8a0…8c0 5f 08 5f 74 08 74 08 74 08 74 29 0a 20 20 20 20 20 61 6c 6c 20 68 61 76 65 20 74 79 70 65 20 6c ┆_ _t t t t) all have type l┆
0x8c0…8e0 08 6c 08 6c 08 6c 6f 08 6f 08 6f 08 6f 6e 08 6e 08 6e 08 6e 67 08 67 08 67 08 67 20 69 08 69 08 ┆ l l lo o o on n n ng g g g i i ┆
0x8e0…900 69 08 69 6e 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 2e 0a 0a 44 65 63 65 6d 62 65 72 20 31 39 39 ┆i in n n nt t t t. December 199┆
0x900…920 30 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54 58 20 50 ┆0 TX P┆
0x920…940 72 6f 67 72 61 6d 6d 65 72 27 73 20 52 65 66 65 72 65 6e 63 65 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a ┆rogrammer's Reference ┆
0x940…94b 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a ┆ ┆