author | Jerome Forissier <jerome.forissier@linaro.org> | |
Mon, 6 Aug 2018 13:18:59 +0000 (15:18 +0200) | ||
committer | Jérôme Forissier <jerome.forissier@linaro.org> | |
Fri, 10 Aug 2018 09:20:08 +0000 (11:20 +0200) | ||
commit | 8742233f31d8acf17c252fbcb981d885144fe633 | |
tree | 94058a29e16d8c5e07274ca7de8f1fac89cde0e7 | tree | snapshot (tar.xz tar.gz zip) |
parent | bd0e7c883a3912ed6958928b86fb4283f2014ca0 | commit | diff |
benchmark: fix computation of page address
Subtracting the size *in bytes* from a (intptr_t *) is incorrect, since it
will subtract n * sizeof(intptr_t).
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Subtracting the size *in bytes* from a (intptr_t *) is incorrect, since it
will subtract n * sizeof(intptr_t).
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
libteec/src/teec_benchmark.c | diff | blob | history |