RubySlicc_Util.hh (11208:fa3e56b6e0b6) RubySlicc_Util.hh (11209:d5a7a4da9f63)
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
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
68inline int
69mod(int val, int mod)
70{
71 return val % mod;
72}
73
74inline int max_tokens()
75{

--- 66 unchanged lines hidden ---
75inline int
76mod(int val, int mod)
77{
78 return val % mod;
79}
80
81inline int max_tokens()
82{

--- 66 unchanged lines hidden ---