偶尔更新一点点,elvis的Win32平台移植工作要做完了,大家就要可以享受到Win32平台上的掌心万年历了:)
今天我更新了今日插件(V1.1),增加了一个生日密码的插件
up/HC_birthSecret.rar
up/HC_TodayPluginV1.1.rar
今天我更新了今日插件(V1.1),增加了一个生日密码的插件
up/HC_birthSecret.rar
up/HC_TodayPluginV1.1.rar
P39 ex 2.10
void swap(int *a, int *b)
{
*a = *a ^ *b;
*b = *a ^ *b;
*a = *a ^ *b;
}
很巧妙的办法,利用XOR运算规律(交换率(x^y=y^x),结合率(y^x^x = y))
swap的证明很简单:
b:=a^b:=(a^b)^b=a^b^b=a
a:=a^b:=(a^b)^((a^b)^b)=a^b^a=b
void swap(int *a, int *b)
{
*a = *a ^ *b;
*b = *a ^ *b;
*a = *a ^ *b;
}
很巧妙的办法,利用XOR运算规律(交换率(x^y=y^x),结合率(y^x^x = y))
swap的证明很简单:
b:=a^b:=(a^b)^b=a^b^b=a
a:=a^b:=(a^b)^((a^b)^b)=a^b^a=b
[ 2005/08/22 20:43 | by turbozv ]
Finally, features as below:
1)Includes both XML and WBXML Parser. (DOM, not SAX)
2)Support DRM-rel, MMS-smil, Prov.
3)Tiny size(full feature version is less than 10kb, the smallest version of AVTXML is less than 6kb)
4)one time pass algorithm.
I hope everybody like it.
1)Includes both XML and WBXML Parser. (DOM, not SAX)
2)Support DRM-rel, MMS-smil, Prov.
3)Tiny size(full feature version is less than 10kb, the smallest version of AVTXML is less than 6kb)
4)one time pass algorithm.
I hope everybody like it.
[ 2005/08/10 23:13 | by turbozv ]