RubySlicc_Util.hh (10563:755b18321206) RubySlicc_Util.hh (10956:19515f842044)
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;

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

51
52inline int
53IDToInt(NodeID id)
54{
55 int nodenum = id;
56 return nodenum;
57}
58
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;

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

51
52inline int
53IDToInt(NodeID id)
54{
55 int nodenum = id;
56 return nodenum;
57}
58
59inline int
60addressToInt(Address addr)
61{
62 assert(!(addr.getAddress() & 0xffffffff00000000));
63
64 return (int)addr.getAddress();
65}
66
59// Appends an offset to an address
60inline Address
61setOffset(Address addr, int offset)
62{
63 Address result = addr;
64 result.setOffset(offset);
65 return result;
66}

--- 84 unchanged lines hidden ---
67// Appends an offset to an address
68inline Address
69setOffset(Address addr, int offset)
70{
71 Address result = addr;
72 result.setOffset(offset);
73 return result;
74}

--- 84 unchanged lines hidden ---