A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
simplify writing in model setup + may fix issue with unit-tests
[simgrid.git]
/
src
/
mc
/
mc_hash.cpp
diff --git
a/src/mc/mc_hash.cpp
b/src/mc/mc_hash.cpp
index 8c2313150958eba96d1079b0e4016ad9a0e5b8f1..af534aced66496f3860b9090316cb821d61f7398 100644
(file)
--- a/
src/mc/mc_hash.cpp
+++ b/
src/mc/mc_hash.cpp
@@
-1,10
+1,9
@@
-/* Copyright (c) 2014-20
19
. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2014-20
21
. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
#include <cinttypes>
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
#include <cinttypes>
-
#include <cstdint>
#include "xbt/log.h"
#include <cstdint>
#include "xbt/log.h"
@@
-12,7
+11,7
@@
#include "mc/datatypes.h"
#include "src/mc/mc_hash.hpp"
#include "src/mc/mc_private.hpp"
#include "mc/datatypes.h"
#include "src/mc/mc_hash.hpp"
#include "src/mc/mc_private.hpp"
-#include "src/mc/sosp/
mc_s
napshot.hpp"
+#include "src/mc/sosp/
S
napshot.hpp"
#include <mc/mc.h>
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_hash, mc, "Logging specific to mc_hash");
#include <mc/mc.h>
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_hash, mc, "Logging specific to mc_hash");
@@
-31,10
+30,7
@@
public:
{
state_ = (state_ << 5) + state_ + x;
}
{
state_ = (state_ << 5) + state_ + x;
}
- hash_type value()
- {
- return state_;
- }
+ hash_type value() const { return state_; }
};
}
};
}