Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
comparison vmalloc.c @ 118:e29bb31df078
changed log10 to log2
| author | Merten Sach <msach@mailbox.tu-berlin.de> |
|---|---|
| date | Tue, 30 Aug 2011 17:45:14 +0200 |
| parents | 07e679ee2095 |
| children | 9b2b9bc2c362 |
comparison
equal
deleted
inserted
replaced
| 17:411392858f3f | 18:4777e7b35a35 |
|---|---|
| 26 * This calculates the container which fits the given size. | 26 * This calculates the container which fits the given size. |
| 27 */ | 27 */ |
| 28 inline | 28 inline |
| 29 uint32 getContainer(size_t size) | 29 uint32 getContainer(size_t size) |
| 30 { | 30 { |
| 31 return (log10(size)-LOG128)/LOG54; | 31 return (log2(size)-LOG128)/LOG54; |
| 32 } | 32 } |
| 33 | 33 |
| 34 /* | 34 /* |
| 35 * Removes the first chunk of a freeList | 35 * Removes the first chunk of a freeList |
| 36 * The chunk is removed but not set as free. There is no check if | 36 * The chunk is removed but not set as free. There is no check if |
