diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2010-10-25 10:15:22 -0400 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2010-10-25 10:15:22 -0400 |
commit | 4716040703be1ee906439385d20475dcddad5ce3 (patch) | |
tree | 8efd3cf3007d8360e66f38e2d280127cbb70daa6 /test/dynalloc.cpp | |
parent | ca85a1f6c5fc33ac382aa2d7ba2da63d55d3223e (diff) |
bug #86 : use internal:: namespace instead of ei_ prefix
Diffstat (limited to 'test/dynalloc.cpp')
-rw-r--r-- | test/dynalloc.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/dynalloc.cpp b/test/dynalloc.cpp index 26813ba0b..cd0062aac 100644 --- a/test/dynalloc.cpp +++ b/test/dynalloc.cpp @@ -34,11 +34,11 @@ void check_handmade_aligned_malloc() { for(int i = 1; i < 1000; i++) { - char *p = (char*)ei_handmade_aligned_malloc(i); + char *p = (char*)internal::handmade_aligned_malloc(i); VERIFY(size_t(p)%ALIGNMENT==0); // if the buffer is wrongly allocated this will give a bad write --> check with valgrind for(int j = 0; j < i; j++) p[j]=0; - ei_handmade_aligned_free(p); + internal::handmade_aligned_free(p); } } @@ -46,11 +46,11 @@ void check_aligned_malloc() { for(int i = 1; i < 1000; i++) { - char *p = (char*)ei_aligned_malloc(i); + char *p = (char*)internal::aligned_malloc(i); VERIFY(size_t(p)%ALIGNMENT==0); // if the buffer is wrongly allocated this will give a bad write --> check with valgrind for(int j = 0; j < i; j++) p[j]=0; - ei_aligned_free(p); + internal::aligned_free(p); } } @@ -58,11 +58,11 @@ void check_aligned_new() { for(int i = 1; i < 1000; i++) { - float *p = ei_aligned_new<float>(i); + float *p = internal::aligned_new<float>(i); VERIFY(size_t(p)%ALIGNMENT==0); // if the buffer is wrongly allocated this will give a bad write --> check with valgrind for(int j = 0; j < i; j++) p[j]=0; - ei_aligned_delete(p,i); + internal::aligned_delete(p,i); } } |