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; --- 51 unchanged lines hidden (view full) --- 60 61inline int 62addressToInt(Addr addr) 63{ 64 assert(!(addr & 0xffffffff00000000)); 65 return addr; 66} 67 |
68inline Addr 69intToAddress(int addr) 70{ 71 assert(!(addr & 0xffffffff00000000)); 72 return addr; 73} 74 |
75inline int 76mod(int val, int mod) 77{ 78 return val % mod; 79} 80 81inline int max_tokens() 82{ --- 66 unchanged lines hidden --- |