TempleOSCD_150720.ISO
This commit is contained in:
1 parent
401601816c
commit
f8c05f98f4
554 files changed
+26046
-24853
No files matched your search
@@ -11,28 +11,28 @@ I64 Compare(F64 e1,F64 e2)
|
||||
|
||||
U0 F64FileSortTXT(U8 *in_name,U8 *out_name)
|
||||
{
|
||||
CLex *lx;
|
||||
CCmpCtrl *cc;
|
||||
I64 i,n;
|
||||
F64 *a;
|
||||
CDoc *doc;
|
||||
|
||||
//Pass1: Count the number of F64s.
|
||||
n=0;
|
||||
lx=LexNew(MStrPrint("#include \"%s\"",in_name));
|
||||
while (Lex(lx))
|
||||
if (lx->token==TK_F64)
|
||||
cc=CmpCtrlNew(MStrPrint("#include \"%s\"",in_name));
|
||||
while (Lex(cc))
|
||||
if (cc->token==TK_F64)
|
||||
n++;
|
||||
LexDel(lx);
|
||||
CmpCtrlDel(cc);
|
||||
|
||||
a=MAlloc(n*sizeof(F64));
|
||||
|
||||
//Pass2: Read F64s.
|
||||
i=0;
|
||||
lx=LexNew(MStrPrint("#include \"%s\"",in_name));
|
||||
while (Lex(lx))
|
||||
if (lx->token==TK_F64)
|
||||
a[i++]=lx->cur_f64;
|
||||
LexDel(lx);
|
||||
cc=CmpCtrlNew(MStrPrint("#include \"%s\"",in_name));
|
||||
while (Lex(cc))
|
||||
if (cc->token==TK_F64)
|
||||
a[i++]=cc->cur_f64;
|
||||
CmpCtrlDel(cc);
|
||||
|
||||
QSortI64(a,n,&Compare); //Sort 64-bit sized values
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
rºí²æQ¡?mÊw@ˤ?‘±*Œû!§?˜ÙÂþôÿÕ?(ýX w×?ç›¶‹U—â?å6L¼âå?Ää³QAæç?•³Pa0"è?;Y¨€é?
|
||||
ײ��t7p¾?ל•Xu}ֶ?0s)§Q_ָ?|�²´$ˆֻ?µiwiֻױ?2Hֻv״?l}צטװתא?BYְ#*ײי?¨adUּך?עGzgֽ ן?
|
||||
@@ -1,11 +1,11 @@
|
||||
//This is sorted.
|
||||
0.015695
|
||||
0.069258
|
||||
0.086463
|
||||
0.097748
|
||||
0.217038
|
||||
0.273096
|
||||
0.523637
|
||||
0.712252
|
||||
0.938419
|
||||
0.995018
|
||||
0.085632
|
||||
0.163161
|
||||
0.182332
|
||||
0.249695
|
||||
0.422056
|
||||
0.452876
|
||||
0.529350
|
||||
0.670680
|
||||
0.871274
|
||||
0.985883
|
||||
@@ -1 +1 @@
|
||||
Ää³QAæç?•³Pa0"è?;Y¨€é?ç›¶‹U—â?å6L¼âå?‘±*Œû!§?rºí²æQ¡?(ýX w×?mÊw@ˤ?˜ÙÂþôÿÕ?
|
||||
0s)§Q_ָ?ל•Xu}ֶ?µiwiֻױ?|�²´$ˆֻ?BYְ#*ײי?עGzgֽ ן?l}צטװתא?¨adUּך?ײ��t7p¾?2Hֻv״?
|
||||
@@ -1,11 +1,11 @@
|
||||
//This is unsorted.
|
||||
0.015695
|
||||
0.938419
|
||||
0.523637
|
||||
0.273096
|
||||
0.217038
|
||||
0.097748
|
||||
0.069258
|
||||
0.086463
|
||||
0.712252
|
||||
0.995018
|
||||
0.422056
|
||||
0.670680
|
||||
0.085632
|
||||
0.985883
|
||||
0.529350
|
||||
0.452876
|
||||
0.249695
|
||||
0.871274
|
||||
0.163161
|
||||
0.182332
|
||||
Reference in new issue
Block a user