mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-14 21:36:13 +01:00
2ae1a46b4c
2005-05-05 Owen Taylor <otaylor@redhat.com> * gobject.[ch] gobject.symbols: Add g_object_add/remove_toggle_ref() functions to get notification when a reference count is the last remaining reference; this enables better memory management for language bindings. (http://mail.gnome.org/archives/gtk-devel-list/2005-April/msg00095.html) 2005-05-05 Owen Taylor <otaylor@redhat.com> * glib/gdataset.[ch] glib/gdatasetprivate.h: Add g_datalist_set/unset_flags(), g_datalist_get_flags() functions to squeeze some bits into a GDataSet... this is needed for efficient implementation of toggle references in GObject. * tests/gobject/references.c tests/gobject/Makefile.am: Add a test case for weak and toggle references. * glib/gfileutils.[ch]: Rename g_file_replace() back to g_file_set_contents(). * glib/glib.symbols: Update. 2005-05-05 Owen Taylor <otaylor@redhat.com> * glib/Makefile.am glib/glib-sections.txt gobject/gobject-sections.txt: Update * gobject/tmpl/objects.sgml: Document toggle-references.
123 lines
3.5 KiB
Plaintext
123 lines
3.5 KiB
Plaintext
<!-- ##### SECTION Title ##### -->
|
|
Numerical Definitions
|
|
|
|
<!-- ##### SECTION Short_Description ##### -->
|
|
mathematical constants, and floating point decomposition.
|
|
|
|
<!-- ##### SECTION Long_Description ##### -->
|
|
<para>
|
|
GLib offers mathematical constants such as #G_PI for the value of pi;
|
|
many platforms have these in the C library, but some don't, the GLib
|
|
versions always exist.
|
|
</para>
|
|
|
|
<para>
|
|
The #GFloatIEEE754 and #GDoubleIEEE754 unions are used to access the
|
|
sign, mantissa and exponent of IEEE floats and doubles. These
|
|
unions are defined as appropriate for a given platform.
|
|
IEEE floats and doubles are supported (used for
|
|
storage) by at least Intel, PPC and Sparc, for reference: <ulink url="http://cch.loria.fr/documentation/IEEE754/numerical_comp_guide/ncg_math.doc.html">http://cch.loria.fr/documentation/IEEE754/numerical_comp_guide/ncg_math.doc.html</ulink>
|
|
</para>
|
|
|
|
<!-- ##### SECTION See_Also ##### -->
|
|
<para>
|
|
<ulink url="http://cch.loria.fr/documentation/IEEE754/numerical_comp_guide/ncg_math.doc.html">http://cch.loria.fr/documentation/IEEE754/numerical_comp_guide/ncg_math.doc.html</ulink>
|
|
</para>
|
|
|
|
<!-- ##### SECTION Stability_Level ##### -->
|
|
|
|
|
|
<!-- ##### MACRO G_IEEE754_FLOAT_BIAS ##### -->
|
|
<para>
|
|
See <ulink url="http://cch.loria.fr/documentation/IEEE754/numerical_comp_guide/ncg_math.doc.html">http://cch.loria.fr/documentation/IEEE754/numerical_comp_guide/ncg_math.doc.html</ulink>
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### MACRO G_IEEE754_DOUBLE_BIAS ##### -->
|
|
<para>
|
|
See <ulink url="http://cch.loria.fr/documentation/IEEE754/numerical_comp_guide/ncg_math.doc.html">http://cch.loria.fr/documentation/IEEE754/numerical_comp_guide/ncg_math.doc.html</ulink>
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### UNION GFloatIEEE754 ##### -->
|
|
<para>
|
|
The #GFloatIEEE754 and #GDoubleIEEE754 unions are used to access the
|
|
sign, mantissa and exponent of IEEE floats and doubles. These
|
|
unions are defined as appropriate for a given platform.
|
|
IEEE floats and doubles are supported (used for
|
|
storage) by at least Intel, PPC and Sparc, for reference:
|
|
<ulink url="http://cch.loria.fr/documentation/IEEE754/numerical_comp_guide/ncg_math.doc.html">http://cch.loria.fr/documentation/IEEE754/numerical_comp_guide/ncg_math.doc.html</ulink>
|
|
</para>
|
|
|
|
|
|
<!-- ##### UNION GDoubleIEEE754 ##### -->
|
|
<para>
|
|
The #GFloatIEEE754 and #GDoubleIEEE754 unions are used to access the
|
|
sign, mantissa and exponent of IEEE floats and doubles. These
|
|
unions are defined as appropriate for a given platform.
|
|
IEEE floats and doubles are supported (used for
|
|
storage) by at least Intel, PPC and Sparc, for reference:
|
|
<ulink url="http://cch.loria.fr/documentation/IEEE754/numerical_comp_guide/ncg_math.doc.html">http://cch.loria.fr/documentation/IEEE754/numerical_comp_guide/ncg_math.doc.html</ulink>
|
|
</para>
|
|
|
|
|
|
<!-- ##### MACRO G_E ##### -->
|
|
<para>
|
|
The base of natural logarithms.
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### MACRO G_LN2 ##### -->
|
|
<para>
|
|
The natural logarithm of 2.
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### MACRO G_LN10 ##### -->
|
|
<para>
|
|
The natural logarithm of 10.
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### MACRO G_PI ##### -->
|
|
<para>
|
|
The value of pi (ratio of circle's circumference to its diameter).
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### MACRO G_PI_2 ##### -->
|
|
<para>
|
|
Pi divided by 2.
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### MACRO G_PI_4 ##### -->
|
|
<para>
|
|
Pi divided by 4.
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### MACRO G_SQRT2 ##### -->
|
|
<para>
|
|
The square root of two.
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### MACRO G_LOG_2_BASE_10 ##### -->
|
|
<para>
|
|
Used for fooling around with float formats, see
|
|
<ulink url="http://cch.loria.fr/documentation/IEEE754/numerical_comp_guide/ncg_math.doc.html">http://cch.loria.fr/documentation/IEEE754/numerical_comp_guide/ncg_math.doc.html</ulink>
|
|
</para>
|
|
|
|
|
|
|