+2022-11-29 Pádraig Brady <P@draigBrady.com>
+
+ add new ronna and quetta SI prefixes
+ As voted for in Nov 2022 by the BIPM:
+ https://www.bipm.org/en/cgpm-2022/resolution-3
+
+ * lib/human.c: Add Ronna (10^27), and Quetta (10^30) to the prefix list.
+ * lib/xstrtol.c (__xstrtol): Likewise.
+
2022-11-29 Bruno Haible <bruno@clisp.org>
Update users.txt.
'P', /* peta or pebi */
'E', /* exa or exbi */
'Z', /* zetta or 2**70 */
- 'Y' /* yotta or 2**80 */
+ 'Y', /* yotta or 2**80 */
+ 'R', /* ronna or 2**90 */
+ 'Q' /* quetta or 2**100 */
};
switch (**p)
{
case 'E': case 'G': case 'g': case 'k': case 'K': case 'M': case 'm':
- case 'P': case 'T': case 't': case 'Y': case 'Z':
+ case 'P': case 'Q': case 'R': case 'T': case 't': case 'Y': case 'Z':
/* The "valid suffix" '0' is a special flag meaning that
an optional second suffix is allowed, which can change
overflow = bkm_scale_by_power (&tmp, base, 5);
break;
+ case 'Q': /* quetta or 2**100 */
+ overflow = bkm_scale_by_power (&tmp, base, 10);
+ break;
+
+ case 'R': /* ronna or 2**90 */
+ overflow = bkm_scale_by_power (&tmp, base, 9);
+ break;
+
case 'T': /* tera or tebi */
case 't': /* 't' is undocumented; for compatibility only */
overflow = bkm_scale_by_power (&tmp, base, 4);