Mercurial > projects > dstress
changeset 414:558f2ca8d898
type.max >> 1
tetsuya <tetsuya_member@pathlink.com>
2005-04-08
news:d36v0t$g3b$1@digitaldaemon.com
author | thomask |
---|---|
date | Sat, 09 Apr 2005 06:25:37 +0000 |
parents | ad4e3b6d6192 |
children | e9b425f5e887 |
files | run/opShrAssign_01.d run/opShrAssign_02.d run/opShr_01.d run/opShr_02.d run/opShr_03.d run/opShr_04.d run/opShr_05.d run/opShr_06.d |
diffstat | 8 files changed, 146 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/opShrAssign_01.d Sat Apr 09 06:25:37 2005 +0000 @@ -0,0 +1,19 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ tetsuya <tetsuya_member@pathlink.com> +// @date@ 2005-04-08 +// @uri@ news:d36v0t$g3b$1@digitaldaemon.com + +module dstress.run.opShrAssign_01; + +int main(){ + uint mask = uint.max; + mask >>= 1; + assert(mask == (uint.max >> 1)); + return 0; +} + + +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/opShrAssign_02.d Sat Apr 09 06:25:37 2005 +0000 @@ -0,0 +1,19 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ tetsuya <tetsuya_member@pathlink.com> +// @date@ 2005-04-08 +// @uri@ news:d36v0t$g3b$1@digitaldaemon.com + +module dstress.run.opShrAssign_02; + +int main(){ + int mask = int.max; + mask >>= 1; + assert(mask == (int.max >> 1)); + return 0; +} + + +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/opShr_01.d Sat Apr 09 06:25:37 2005 +0000 @@ -0,0 +1,18 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ tetsuya <tetsuya_member@pathlink.com> +// @date@ 2005-04-08 +// @uri@ news:d36v0t$g3b$1@digitaldaemon.com + +module dstress.run.opShr_01; + +int main(){ + uint mask = (uint.max >> 1); + assert(mask == (uint.max >> 1)); + return 0; +} + + +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/opShr_02.d Sat Apr 09 06:25:37 2005 +0000 @@ -0,0 +1,18 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ tetsuya <tetsuya_member@pathlink.com> +// @date@ 2005-04-08 +// @uri@ news:d36v0t$g3b$1@digitaldaemon.com + +module dstress.run.opShr_02; + +int main(){ + int mask = (int.max >> 1); + assert(mask == (int.max >> 1)); + return 0; +} + + +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/opShr_03.d Sat Apr 09 06:25:37 2005 +0000 @@ -0,0 +1,18 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ tetsuya <tetsuya_member@pathlink.com> +// @date@ 2005-04-08 +// @uri@ news:d36v0t$g3b$1@digitaldaemon.com + +module dstress.run.opShr_03; + +int main(){ + ubyte mask = (ubyte.max >> 1); + assert(mask == (ubyte.max >> 1)); + return 0; +} + + +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/opShr_04.d Sat Apr 09 06:25:37 2005 +0000 @@ -0,0 +1,18 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ tetsuya <tetsuya_member@pathlink.com> +// @date@ 2005-04-08 +// @uri@ news:d36v0t$g3b$1@digitaldaemon.com + +module dstress.run.opShr_04; + +int main(){ + ulong mask = (ulong.max >> 1); + assert(mask == (ulong.max >> 1)); + return 0; +} + + +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/opShr_05.d Sat Apr 09 06:25:37 2005 +0000 @@ -0,0 +1,18 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ tetsuya <tetsuya_member@pathlink.com> +// @date@ 2005-04-08 +// @uri@ news:d36v0t$g3b$1@digitaldaemon.com + +module dstress.run.opShr_05; + +int main(){ + long mask = (long.max >> 1); + assert(mask == (long.max >> 1)); + return 0; +} + + +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/opShr_06.d Sat Apr 09 06:25:37 2005 +0000 @@ -0,0 +1,18 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ tetsuya <tetsuya_member@pathlink.com> +// @date@ 2005-04-08 +// @uri@ news:d36v0t$g3b$1@digitaldaemon.com + +module dstress.run.opShr_06; + +int main(){ + ushort mask = (ushort.max >> 1); + assert(mask == (ushort.max >> 1)); + return 0; +} + + +