LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > rainbowsally
User Name
Password

Notices


Old

Hashing for ID generation (hash32_enum algorithm and ASM)

Posted 12-24-2012 at 10:45 AM by rainbowsally

You're not going to get fool-proof uniqueness from a 32 bit hash, but this one gets pretty close.

[cont'd from previous blog entry where the C/C++ version can be seen (and tested). http://www.linuxquestions.org/questi...-lists-35223/]

If you're curious about what the hash32_enum thing in the previous blog entry would look like in assembler, this is the output using the --save-temps gcc flag.

Code:
;
...
Member
Posted in Uncategorized
Views 800 Comments 0 rainbowsally is offline
Old

STL Template Experiment (Lists)

Posted 12-24-2012 at 10:24 AM by rainbowsally
Updated 08-06-2014 at 09:00 AM by rainbowsally (added link, grammar error, makefile line correction)

We've resurrected some dead code that was pretty ugly but the only worse MESS (officially sanctioned, no less) than STL that we've ever seen is the spaghetti in lex/flex output. -- The Computer Mad Science Dept.

So...

Now what?

Well...

...what would ANY good Computer Mad Scientist do in a situation like this?

Today's features are
  • Creating lists using the std::list STL template.
  • Identifying the critical 'operators'
...
Member
Posted in Uncategorized
Views 2313 Comments 1 rainbowsally is offline

  



All times are GMT -5. The time now is 03:18 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration