Topic: std::ratio binary prefixes ?


Author: VinceRev <vince.rev@gmail.com>
Date: Sun, 31 Mar 2013 19:40:03 -0700 (PDT)
Raw View
------=_Part_638_7337143.1364784003532
Content-Type: text/plain; charset=ISO-8859-1

With the upcoming normalization of a filesystem library for C++14, I think
that it could be useful to have the standard binary prefixes defined by IEC
60027-2 A.2 and ISO/IEC 80000 as a part of std::ratio.
Currently we have all the decimal prefixes from yocto to yotta, and my
suggestion would be to add :

std::kibi = std::ratio<1024, 1>
std::mebi = std::ratio<1048576, 1>
std::gibi = std::ratio<1073741824, 1>
std::tebi = std::ratio<1099511627776, 1>
std::pebi = std::ratio<1125899906842624, 1>
std::exbi = std::ratio<1152921504606846976, 1>
std::zebi = std::ratio<1180591620717411303424, 1>, if std::intmax_t can
represent the numerator
std::yobi = std::ratio<1208925819614629174706176, 1>, if std::intmax_t can
represent the numerator

What is your opinion about this ?
Thanks.

--

---
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/?hl=en.



------=_Part_638_7337143.1364784003532
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

With the upcoming normalization of a filesystem library for C++14, I think =
that it could be useful to have the standard binary prefixes defined by IEC=
 60027-2 A.2 and ISO/IEC 80000 as a part of <span style=3D"font-family: cou=
rier new,monospace;">std::ratio</span>. <br>Currently we have all the decim=
al prefixes from yocto to yotta, and my suggestion would be to add :<br><sp=
an style=3D"font-family: courier new,monospace;"><br>std::kibi =3D std::rat=
io&lt;1024, 1&gt;<br>std::mebi =3D std::ratio&lt;1048576, 1&gt;<br>std::gib=
i =3D  std::ratio&lt;1073741824, 1&gt;<br>std::tebi =3D  std::ratio&lt;1099=
511627776, 1&gt;<br>std::pebi =3D  std::ratio&lt;1125899906842624, 1&gt;<br=
>std::exbi =3D  std::ratio&lt;1152921504606846976, 1&gt;<br>std::zebi =3D  =
std::ratio&lt;1180591620717411303424, 1&gt;, if std::intmax_t can represent=
 the numerator <br>std::yobi =3D  std::ratio&lt;1208925819614629174706176, =
1&gt;, if std::intmax_t can represent the numerator </span><br><br>What is =
your opinion about this ?<br>Thanks.<br>

<p></p>

-- <br />
&nbsp;<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to std-proposals+unsubscribe@isocpp.org.<br />
To post to this group, send email to std-proposals@isocpp.org.<br />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/?hl=3Den">http://groups.google.com/a/isocpp.org/group/std-pro=
posals/?hl=3Den</a>.<br />
&nbsp;<br />
&nbsp;<br />

------=_Part_638_7337143.1364784003532--

.


Author: Bb Hh <frankhb1989@gmail.com>
Date: Sun, 7 Apr 2013 02:53:59 +0800
Raw View
--089e01229c8a0300c204d9b5baaa
Content-Type: text/plain; charset=ISO-8859-1

Sounds reasonable.


2013/4/1 VinceRev <vince.rev@gmail.com>

> With the upcoming normalization of a filesystem library for C++14, I think
> that it could be useful to have the standard binary prefixes defined by IEC
> 60027-2 A.2 and ISO/IEC 80000 as a part of std::ratio.
> Currently we have all the decimal prefixes from yocto to yotta, and my
> suggestion would be to add :
>
> std::kibi = std::ratio<1024, 1>
> std::mebi = std::ratio<1048576, 1>
> std::gibi = std::ratio<1073741824, 1>
> std::tebi = std::ratio<1099511627776, 1>
> std::pebi = std::ratio<1125899906842624, 1>
> std::exbi = std::ratio<1152921504606846976, 1>
> std::zebi = std::ratio<1180591620717411303424, 1>, if std::intmax_t can
> represent the numerator
> std::yobi = std::ratio<1208925819614629174706176, 1>, if std::intmax_t can
> represent the numerator
>
> What is your opinion about this ?
> Thanks.
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "ISO C++ Standard - Future Proposals" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to std-proposals+unsubscribe@isocpp.org.
> To post to this group, send email to std-proposals@isocpp.org.
> Visit this group at
> http://groups.google.com/a/isocpp.org/group/std-proposals/?hl=en.
>
>
>

--

---
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/?hl=en.



--089e01229c8a0300c204d9b5baaa
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Sounds reasonable.<br></div><div class=3D"gmail_extra"><br=
><br><div class=3D"gmail_quote">2013/4/1 VinceRev <span dir=3D"ltr">&lt;<a =
href=3D"mailto:vince.rev@gmail.com" target=3D"_blank">vince.rev@gmail.com</=
a>&gt;</span><br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">With the upcoming normalization of a filesys=
tem library for C++14, I think that it could be useful to have the standard=
 binary prefixes defined by IEC 60027-2 A.2 and ISO/IEC 80000 as a part of =
<span style=3D"font-family:courier new,monospace">std::ratio</span>. <br>
Currently we have all the decimal prefixes from yocto to yotta, and my sugg=
estion would be to add :<br><span style=3D"font-family:courier new,monospac=
e"><br>std::kibi =3D std::ratio&lt;1024, 1&gt;<br>std::mebi =3D std::ratio&=
lt;1048576, 1&gt;<br>
std::gibi =3D  std::ratio&lt;1073741824, 1&gt;<br>std::tebi =3D  std::ratio=
&lt;1099511627776, 1&gt;<br>std::pebi =3D  std::ratio&lt;1125899906842624, =
1&gt;<br>std::exbi =3D  std::ratio&lt;1152921504606846976, 1&gt;<br>std::ze=
bi =3D  std::ratio&lt;1180591620717411303424, 1&gt;, if std::intmax_t can r=
epresent the numerator <br>
std::yobi =3D  std::ratio&lt;1208925819614629174706176, 1&gt;, if std::intm=
ax_t can represent the numerator </span><br><br>What is your opinion about =
this ?<br>Thanks.<span class=3D"HOEnZb"><font color=3D"#888888"><br>

<p></p>

-- <br>
=A0<br>
--- <br>
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br>
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals%2Bunsubscribe@isocpp.org" target=3D=
"_blank">std-proposals+unsubscribe@isocpp.org</a>.<br>
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org" target=3D"_blank">std-proposals@isocpp.org</a>.<br>
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/?hl=3Den" target=3D"_blank">http://groups.google.com/a/isocpp=
..org/group/std-proposals/?hl=3Den</a>.<br>
=A0<br>
=A0<br>
</font></span></blockquote></div><br></div>

<p></p>

-- <br />
&nbsp;<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to std-proposals+unsubscribe@isocpp.org.<br />
To post to this group, send email to std-proposals@isocpp.org.<br />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/?hl=3Den">http://groups.google.com/a/isocpp.org/group/std-pro=
posals/?hl=3Den</a>.<br />
&nbsp;<br />
&nbsp;<br />

--089e01229c8a0300c204d9b5baaa--

.


Author: 3dw4rd@verizon.net
Date: Mon, 8 Apr 2013 13:30:27 -0700 (PDT)
Raw View
------=_Part_4844_33108761.1365453027577
Content-Type: text/plain; charset=ISO-8859-1

We did this in libstdc++ under as std::tr2::ratio in <tr2/ratio>.
Obviously we like it ;-).

On Sunday, March 31, 2013 10:40:03 PM UTC-4, VinceRev wrote:
>
> With the upcoming normalization of a filesystem library for C++14, I think
> that it could be useful to have the standard binary prefixes defined by IEC
> 60027-2 A.2 and ISO/IEC 80000 as a part of std::ratio.
> Currently we have all the decimal prefixes from yocto to yotta, and my
> suggestion would be to add :
>
> std::kibi = std::ratio<1024, 1>
> std::mebi = std::ratio<1048576, 1>
> std::gibi = std::ratio<1073741824, 1>
> std::tebi = std::ratio<1099511627776, 1>
> std::pebi = std::ratio<1125899906842624, 1>
> std::exbi = std::ratio<1152921504606846976, 1>
> std::zebi = std::ratio<1180591620717411303424, 1>, if std::intmax_t can
> represent the numerator
> std::yobi = std::ratio<1208925819614629174706176, 1>, if std::intmax_t can
> represent the numerator
>
> What is your opinion about this ?
> Thanks.
>


--

---
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/?hl=en.



------=_Part_4844_33108761.1365453027577
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

We did this in libstdc++ under as std::tr2::ratio in &lt;tr2/ratio&gt;.&nbs=
p; Obviously we like it ;-).<br><br>On Sunday, March 31, 2013 10:40:03 PM U=
TC-4, VinceRev wrote:<blockquote class=3D"gmail_quote" style=3D"margin: 0;m=
argin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">With the =
upcoming normalization of a filesystem library for C++14, I think that it c=
ould be useful to have the standard binary prefixes defined by IEC 60027-2 =
A.2 and ISO/IEC 80000 as a part of <span style=3D"font-family:courier new,m=
onospace">std::ratio</span>. <br>Currently we have all the decimal prefixes=
 from yocto to yotta, and my suggestion would be to add :<br><span style=3D=
"font-family:courier new,monospace"><br>std::kibi =3D std::ratio&lt;1024, 1=
&gt;<br>std::mebi =3D std::ratio&lt;1048576, 1&gt;<br>std::gibi =3D  std::r=
atio&lt;1073741824, 1&gt;<br>std::tebi =3D  std::ratio&lt;1099511627776, 1&=
gt;<br>std::pebi =3D  std::ratio&lt;1125899906842624, 1&gt;<br>std::exbi =
=3D  std::ratio&lt;<wbr>1152921504606846976, 1&gt;<br>std::zebi =3D  std::r=
atio&lt;<wbr>1180591620717411303424, 1&gt;, if std::intmax_t can represent =
the numerator <br>std::yobi =3D  std::ratio&lt;<wbr>12089258196146291747061=
76, 1&gt;, if std::intmax_t can represent the numerator </span><br><br>What=
 is your opinion about this ?<br>Thanks.<br></blockquote><div>&nbsp;</div>

<p></p>

-- <br />
&nbsp;<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to std-proposals+unsubscribe@isocpp.org.<br />
To post to this group, send email to std-proposals@isocpp.org.<br />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/?hl=3Den">http://groups.google.com/a/isocpp.org/group/std-pro=
posals/?hl=3Den</a>.<br />
&nbsp;<br />
&nbsp;<br />

------=_Part_4844_33108761.1365453027577--

.