diff options
author | 2019-07-28 14:31:16 +1000 | |
---|---|---|
committer | 2019-07-28 14:31:16 +1000 | |
commit | ace8e401fcfa9c1ee40b0bece9f5bfb902f97736 (patch) | |
tree | c9ab7487049db6b5ee0c82480b10697c01f02a44 /src/devices/imagedev/floppy.cpp | |
parent | c8e1190ca1078be93224c6d167e9da957f9dfc66 (diff) |
srcclean (nw)
Diffstat (limited to 'src/devices/imagedev/floppy.cpp')
-rw-r--r-- | src/devices/imagedev/floppy.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/devices/imagedev/floppy.cpp b/src/devices/imagedev/floppy.cpp index 3eb0c279be3..60058681549 100644 --- a/src/devices/imagedev/floppy.cpp +++ b/src/devices/imagedev/floppy.cpp @@ -758,13 +758,13 @@ void floppy_image_device::seek_phase_w(int phases) // From http://burtleburtle.net/bob/hash/integer.html uint32_t floppy_image_device::hash32(uint32_t a) const { - a = (a+0x7ed55d16) + (a<<12); - a = (a^0xc761c23c) ^ (a>>19); - a = (a+0x165667b1) + (a<<5); - a = (a+0xd3a2646c) ^ (a<<9); - a = (a+0xfd7046c5) + (a<<3); - a = (a^0xb55a4f09) ^ (a>>16); - return a; + a = (a+0x7ed55d16) + (a<<12); + a = (a^0xc761c23c) ^ (a>>19); + a = (a+0x165667b1) + (a<<5); + a = (a+0xd3a2646c) ^ (a<<9); + a = (a+0xfd7046c5) + (a<<3); + a = (a^0xb55a4f09) ^ (a>>16); + return a; } int floppy_image_device::find_index(uint32_t position, const std::vector<uint32_t> &buf)const |