bug: conversion of integers and other numbers not there.
#include <iostream>
#include <tr1/stdint.h>
using namespace std;
int main(void) {
unsigned short cyl=5000, head=5000, sector=5000;
uint64_t n=cyl * head * sector; //result should be
cout<<"result should be 125000000000:="<<n<<endl;
return 0;
}
/*
Wed 03/14/2012 16:10:39.73|C:\prj\test\mingw-w64\conversion|>c
result should be 125000000000:=445948416
Wed 03/14/2012 16:10:46.90|C:\prj\test\mingw-w64\conversion|>
*/
remember in engineering school they told us the compiler will convert all
shorts to ints, etc, yada yada?
well, this doesn't work in gcc.
I have tried this both with mingw, mingw-w64, and djgpp.
you can try this with 20111127 auto build if you like.
-------------
Jim Michaels
[email protected]
[email protected]
http://JimsComputerRepairandWebDesign.com
http://JesusnJim.com (my personal site, has software)
---
Computer memory measurements, SSD measurements, microsoft disk size
measurements (note: they will say GB or MB or KB or TB when it is not!):
[KiB] [MiB] [GiB] [TiB]
[2^10B=1,024B=1KiB]
[2^20B=1,048,576B=1MiB]
[2^30B=1,073,741,824B=1GiB]
[2^40B=1,099,511,627,776B=1TiB]
hard disk industry disk size measurements:
[KB] [MB] [GB] [TB]
[10^3B=1,000B=1KB]
[10^6B=1,000,000B=1MB]
[10^9B=1,000,000,000B=1GB]
[10^12B=1,000,000,000,000B=1TB]
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public