RubySlicc_Util.hh (10086:bd1089db3a88) RubySlicc_Util.hh (10302:0e9e99e6369a)
1/*
2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 33 unchanged lines hidden (view full) ---

42
43inline int
44random(int n)
45{
46 return random() % n;
47}
48
49inline Cycles zero_time() { return Cycles(0); }
1/*
2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 33 unchanged lines hidden (view full) ---

42
43inline int
44random(int n)
45{
46 return random() % n;
47}
48
49inline Cycles zero_time() { return Cycles(0); }
50inline Cycles TimeToCycles(Time t) { return Cycles(t); }
51
52inline NodeID
53intToID(int nodenum)
54{
55 NodeID id = nodenum;
56 return id;
57}
58

--- 99 unchanged lines hidden ---
50
51inline NodeID
52intToID(int nodenum)
53{
54 NodeID id = nodenum;
55 return id;
56}
57

--- 99 unchanged lines hidden ---