Skip to content

Vaisman/CompressedSharedPtr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CompressedSharedPtr

Compressed shared_ptr

handle is a 64-bit integer where:

  • Lower 42 bits represent the pointer bits.
  • Upper 22 bits represent the reference count.
//  +----------------------+----------------------+
//  |   22 bits refcount  |   42 bits pointer     |
//  +----------------------+----------------------+
//
//   bit layout example:
//   [ 63 ....................  42 | 41 ................................ 0 ]
//   [         refCount            |              rawPtr                   ]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors