Perfil de Arek.姚远雄起的佛FotosBlogListasMás Herramientas Ayuda

Blog


21/04/2007

处刑人 The Boondock Saints

处刑人,又是一部经典片子

IMDB编号:0144117
评分:
类型:犯罪 / 动作 / 剧情
发行年代:1999
导演:Troy Duffy
编剧:Troy Duffy
其他影片别名:Mission des dieux (Canada: French title)
演员表: 
罗恩·杰里米 .... Vincenzo Lipazzi (as Ron Jeremy Hyatt)
Jeanna Fine .... Dancer
威廉·达福 .... Paul Smecker
比利·康诺利 .... Il Duce
Richard Fitzpatrick .... The Chief
经典台词:
我们不要你们一贫如洗
或是饥寒交迫
也不需要你们筋疲力竭
或是百病缠身
我们要消灭的是你们内心的腐化和邪念
我们将用尽每一口气把它们消灭殆尽
每一天我们都会斩杀邪恶之徒
直到他们的鲜血从天而降
不杀戮!不强奸!不偷盗
这是每个人类,每个信仰都能遵守的法则
这些不是善意的提醒这些是行为的准绳
那些明知故犯的人将为此付出最昂贵的代价
世上有种种罪恶
我们只要求你们不犯下无可饶恕的恶行
别成为十恶不赦之徒
进入我们的领地
一旦你犯了我们的规条…
总有一天你将回头看见我们三人在你身后
那一天就是你的末日!
到时你要见哪个神灵我们都会让你如愿

We do not ask for your poor, or your hungry.
We do not want your tired and sick.
It is your corrupt we claim.
It is your evil that will be sought by us.
With every breath, we shall hunt them down.
Each day we will spill their blood,
'til it rains down from the skies.
Do not kill.
Do not rape.
Do not steal.
These are principles which every man of every faith can embrace.
These are not polite suggestions;
these are codes of behavior, and those of you that ignore them will pay the dearest cost.
There are varying degrees of evil.
We urge you lesser forms of filth not to push the bounds and cross over into true corruption, into
our domain.
For if you do, one day you will look behind you and you will see we three,
and on that day you will reap it.
And we will send you to whatever god you wish

处刑前:
我等将成为牧羊人
为了你
我的主
为了你
从你手中继承权
我等将脚踏实地执行您的旨意
用他们的灵魂
充盈这条流向你的河水生生不息
以圣父,圣子和圣灵之名
 
And shepherds we shall be
For Thee, my Lord, for Thee
Power hath descended forth from Thy hand
That our feet may swiftly carry out Thy command
So we shall flow a river forth to Thee
And teeming with souls shall it ever be
In nomine Patri, et Filii, et Spiritus Sancti (In the name of the Father, the Son, and the Holy Spirit)
16/04/2007

有"人"味的金像奖

Yesterday,the 26th Hong Kong Films Awards Presentation Ceremony was held.
One of the most impressive things is full of feelings.
 
Prove:
Evidence 1:
 
In the 25th Awards,Andy Lau and DuDu gave the Sammi and Uncle Ji the Best Actress as a result of their presence.
Sammi's sickness and Kai Chi Liu's lost<his son responsed for Buddha's call>
 
Evidence 2:
The Best Actor went to Sean Andy.Nominated so many times,only less than Jackie Chen<another pity guy>,at last Sean Andy got that award,both his wife and he were moved and crying.
 
Evidence 3:
AnitaYuen's speech about Andy Liu involved YangLiJuan Accident that resulted in his first
absence in these years."i play so many roles before.1990,I was HK Lady.In 1992,1993,I was
the Best Actress because of New Endless Love and He is a woman,she is a man.And the most successful role i played is Mother.<applauds>However,the role i never played is a fan."And
she said she's a fan of Andy Lau,and will support him forever!!!<more applauds>
 
However,the victim is Aaron Kwok.Maybe he is another Sean Andy.so pity.

 
09/04/2007

我不是牛顿,我是帕斯卡!

一群伟大的科学家死后在天堂里玩藏猫猫,
轮到爱因斯坦抓人,他数到100睁开眼睛,
看到所有人都藏起来了,只有牛顿还站在那里。  
 
爱因斯坦走过去说:“牛顿,我抓住你了。”   
牛顿:“不,你没有抓到牛顿。”   
爱因斯坦:“你不是牛顿你是谁?”   
牛顿:“你看我脚下是什么?”   
 
爱因斯坦低头看到牛顿站在一块长宽都是一米的正方形的地板砖上,不解。  
 
牛顿:“我脚下这是一平方米的方块,我站在上面就是牛顿/平方米,所以你抓住的不是牛顿,你抓住的是帕斯卡。” 
07/04/2007

Optimizing on BlackFin 代码优化之BlackFin

 
1 Function Arguments Transferring
three arguments or less:
        Use R2:0 to transfer. R0 as return value
 more than three arguments.
        first three:    R2:0
        fourth:       [FP+20]          note: a,0x14 = 20; b, LINK/UNLINK
        return value:  R0
Function Prototype:
int test(int a, int b, int c)
Parameters Passed as: 
a in R0,
b in R1,
c in R2 
Return Location in R0
int test(char a, char b, char c, char d, char e) 
a in R0,
b in R1,
c in R2,
d in [FP+20],
e in [FP+24] 
Return Location in R0
Details:  plz go to the Visual DSP’s Help=>function arguments, transferring
2 Optimizing Step by Step
Step 1: Design the Structure of your Function
a. the algorithm of your function
            eg: de-quant of mpeg
         data[i] = (coeff[i] * default_intra_matrix[i] * quant2) >> 4;
 dequant_mpeg_intra_c(int16_t * data,
 const int16_t * coeff,
 const uint32_t quant,
 const uint32_t dcscalar,
 const uint16_t * mpeg_quant_matrices)
b. the use of Vector Operations:   Two calculations per instruction
 Two (int16_t * int16_t) 
=> R7.L = R7.L * R6.L,R7.H = R7.H * R6.H(IS);
c. the use of other effective Operations like pixel instructions etc.
  Step 2:   Implement the function
      <ps: at this stage, u may disregard the use of the Parallel Instructions.             However, you should consider the Parallel Instructions as much as     possible>
  Step 3:   Use the Parallel Instructions.
         An multi-issue instruction is 64 bits in length
   <that’s why use .ALIGN 8 in code segment>
  An 64 bits multi-issue instruction  = 
                             32 bits ALU/MAC instruction + 2 * 16 bits instructions
                16 bits instructions includes
  a. Ireg’s add, modify, sub
  b. Load
                                c.  Store
       details: ADSP-BF53x BF56x Blackfin Processor Programming Reference.pdf
       提高Blackfin系列DSP中代码的并行性.kdh

Step 4:   Adjust the sequence of instructions for pipeline.
 How to see whether the pipeline has a conflict:
  a. pipeline viewer
  b. build message.
     eg:  xx   requires one extra cycle.
 LSETUP(DEQNT_INTRA_START, DEQNT_INTRA_END) LC0 = P0;
DEQNT_INTRA_START:
 R7.L = R7.L * R2.H,R7.H = R7.H * R2.H(IS) || [I0++] = R4 || R5 = [I1++];
----------------------------------------------------------------------------------
 R7.L = R7.L * R6.L,R7.H = R7.H * R6.H(IS);
 R6 = R7 >>>4(V) || R4 = [I2++] || NOP;
 R5.L = R5.L * R2.H,R5.H = R5.H * R2.H(IS) || [I0++] = R6 || R7 = [I1++];
----------------------------------------------------------------------------------
 R5.L = R5.L * R4.L,R5.H = R5.H * R4.H(IS) || R6 = [I2++] || NOP;
DEQNT_INTRA_END:R4 = R5 >>>4(V);        
===================================>>>>>>>>>>>>>
 LSETUP(DEQNT_INTRA_START, DEQNT_INTRA_END) LC0 = P0;
DEQNT_INTRA_START:
 R4 = R5 >>>4(V);
 R7.L = R7.L * R6.L,R7.H = R7.H * R6.H(IS) || [I0++] = R4 || R5 = [I1++];
----------------------------------------------------------------------------------
 R6 = R7 >>>4(V)|| R4 = [I2++] || NOP;
 R5.L = R5.L * R2.H,R5.H = R5.H * R2.H(IS) || [I0++] = R6 || R7 = [I1++];
 R7.L = R7.L * R2.H,R7.H = R7.H * R2.H(IS) || R6 = [I2++]; 
 R5.L = R5.L * R4.L,R5.H = R5.H * R4.H(IS) || NOP;
DEQNT_INTRA_END:R4 = R5 >>>4(V);
3 Effective Optimizing Tricks
  Trick 1: Make use of  LINK and UNLINK in Pairs.
      Transferring less than three arguments <including three> can disregard link and unlink.
  Trick 2: Don’t Let your store/load/modify IReg instruction feel lonely.
      If it exists, that ’s because you do not use parallel instructions as much as possible.
eg:
[I0] = R6;
R0 =  0;  
=>
R0 =R0 -|- R0 || [I0] = R6;
  Trick 3: Pay Great attention to your instructions in loops.
  Solve LOOP:
     plan 1:    expand it if the loop count is not very large.
     plan 2:    use the hardware loop.  <how? To see the 4.0 PROGRAM SEQUENCER>
  Decrease your instructions in loops AS MUCH AS POSSIBLE.

  Trick 4: Combine your “if then else” as much as possible
      eg:    if (coeff[i] < 0)
               { int32_t level = -coeff[i]; 
         level = (( 2 * level + 1 ) * inter_matrix[i] * quant) >> 4;
         data[i] = (level <= 2048 ? -level : -2048);
              } else {
                 uint32_t level = coeff[i];   
                 level = (( 2 * level + 1 ) * inter_matrix[i] * quant) >> 4;
                 data[i] = (level <= 2047 ? level : 2047);
              }
   if  negative    =>   -1
   if  positive     =>   +1
   ==========?
   // R5 = level     two levels
    R5 = R5 << 2 (V,S);
   // if negative 1111 1111 1111 1111
   // if positive  0000 0000 0000 0000
    R1 = R5 >>>15(V,S)
    BITSET(R1,0);
  Trick 5:  How to saturate a integer which is not 16 bits or 32 bits
       plan A :    first shift left, then saturate ,at last shift right back.
            eg:     saturate to <-2048,2047>  2047 = 0b1111 1000 0000 0000
 so first shift left 4 bits, then saturate, at last shift right 4bits back .
     
       plan B:     use MAX( ),MIN( ),MAX( )(V),MIN( )(V).
            eg:      saturate to <-2048,2047>
                          MIN(2047,XX);  MAX(-2048,XX);
        plan C:    use subs and adds
            eg:      saturate to <-2048,2047>  
           32767_minus_2047 = 32767 – 2047;
                          XX = XX + 32767_minus_2047 (S);
           XX = XX - 32767_minus_2047 (S);
           32767_minus_2048 = 32767 – 2048;
           XX = XX - 32767_minus_2048 (S);
                          XX = XX + 32767_minus_2048 (S);                        
       Which Plan do We choose???   That depends.
  Trick 6:  The More parallel ,vector, pixel instructions, The Better.
  Trick 7:   About Align.
     Word Align:  4 bytes 32 bits
      Half Word Align: 2 bytes,16 bits
      Byte Align: 1 byte ,8 bits.
    
     [I/Preg++] = Rx;
     W[I/Preg++] = Rx.L;
     B[Preg++] =Rx  
 
02/04/2007

The Administration of ZhenGuan

 
The first period of florescence in the reign (627-649) of Emperor Taizong,Shimin Li, which was called the Prosperity of Zhenguan, an era of peace and prosperity.
Recently i saw a drama called Zhenguan Changge,which depicts and images the Glorious Time of Peace and Prosperity of Tang Dynasty in the charge of Shimin Li.
In my youth,the first sitcom about Shimin Li is "love Beauty more than Power." at that time,it's hard to understand what sitcom wanna tell.Just the theme song is in my memory.
What impresses me a lot is the attitude toward the OLD MEN who has contribution to country and himself.i will not definitely kill u unless u betray me.From the detail of the 24 of NingYanGe,mentioned in my previous blog,we can prove that.it's unarguable.
Li's famous quote:
1.the waters can both float and capsize a vessel;
2.Mirror theory:
人以铜为镜,可以正衣冠,以古为镜,可以见兴替,以人为镜,可以知得失;
it's hard for me to translate it to my chiglish.so better in chinese.-_-!
Of course,drama is drama.it's not history.this sitcom broadcasted by CCTV changed some stories to be suitable and convenient to tell history and depict characters.ZhangSun Wuji's justice,Fang Xuanli's Plan,Du Ruhui's decision<房谋杜断>,Cheng Wenben's literary,Wei Zhen's advice,Li Jing's generalship.<ps:他就是托塔李天王!wow!>
by the way,I have to admire the director's ability of choosing the players,pretty close to the real character.
reference:
http/en.wikipedia.org/wiki/Emperor_Taizong_of_Tang
www.chinahistoryforum.com/index.php?showtopic=15609