Merge pull request #756 from jbrodman/memdocfix

Update docs to warn of the difference between sizeof(float) and sizeof(u...
This commit is contained in:
Dmitry Babokin
2014-02-28 08:42:33 +03:00

View File

@@ -4038,7 +4038,9 @@ overlap.
void memmove(void * varying dst, void * varying src, int32 count) void memmove(void * varying dst, void * varying src, int32 count)
Note that there are variants of these functions that take both ``uniform`` Note that there are variants of these functions that take both ``uniform``
and ``varying`` pointers. and ``varying`` pointers. Also note that ``sizeof(float)`` and
``sizeof(uniform float)`` return different values, so programmers should
take care when calculating ``count``.
To initialize values in memory, the ``memset`` routine can be used. (It To initialize values in memory, the ``memset`` routine can be used. (It
also behaves like the function of the same name in the C Standard Library.) also behaves like the function of the same name in the C Standard Library.)