From 91621d7b179ae7a8e30dd279d18ad4272bb011e3 Mon Sep 17 00:00:00 2001 From: jbrodman Date: Thu, 27 Feb 2014 02:38:57 -0800 Subject: [PATCH] Update docs to warn of the difference between sizeof(float) and sizeof(uniform float) --- docs/ispc.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/ispc.rst b/docs/ispc.rst index 2c41301c..8333fdf5 100644 --- a/docs/ispc.rst +++ b/docs/ispc.rst @@ -4038,7 +4038,9 @@ overlap. void memmove(void * varying dst, void * varying src, int32 count) 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 also behaves like the function of the same name in the C Standard Library.)