Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
changeset 118:e29bb31df078 malloc2
changed log10 to log2
| author | Merten Sach <msach@mailbox.tu-berlin.de> |
|---|---|
| date | Tue, 30 Aug 2011 17:45:14 +0200 |
| parents | 07e679ee2095 |
| children | 237f4991f4c0 9b2b9bc2c362 |
| files | vmalloc.c vmalloc.h |
| diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line diff
1.1 --- a/vmalloc.c Tue Aug 30 17:11:13 2011 +0200 1.2 +++ b/vmalloc.c Tue Aug 30 17:45:14 2011 +0200 1.3 @@ -28,7 +28,7 @@ 1.4 inline 1.5 uint32 getContainer(size_t size) 1.6 { 1.7 - return (log10(size)-LOG128)/LOG54; 1.8 + return (log2(size)-LOG128)/LOG54; 1.9 } 1.10 1.11 /*
2.1 --- a/vmalloc.h Tue Aug 30 17:11:13 2011 +0200 2.2 +++ b/vmalloc.h Tue Aug 30 17:45:14 2011 +0200 2.3 @@ -21,8 +21,8 @@ 2.4 #define MAX_SMALL_CHUNKS 20 2.5 #define SMALL_CHUNKS_ALLOCATION 5 2.6 2.7 -#define LOG54 0.0969100130080564 2.8 -#define LOG128 2.1072099696478684 2.9 +#define LOG54 0.3219280948873623 2.10 +#define LOG128 7 2.11 2.12 typedef struct _MallocProlog MallocProlog; 2.13
