/[gnugo]/gnugo/engine/cache.c
ViewVC logotype

Diff of /gnugo/engine/cache.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.36 by arend, Sat Jan 24 23:21:13 2004 UTC revision 1.37 by gf, Sat Jan 24 23:53:11 2004 UTC
# Line 919  reading_cache_init(int bytes) Line 919  reading_cache_init(int bytes)
919     * table.     * table.
920     */     */
921  #define NG_PERCENTAGE  95  #define NG_PERCENTAGE  95
922    tt_init(&ttable, bytes * NG_PERCENTAGE / 100);    tt_init(&ttable, bytes / 100 * NG_PERCENTAGE);
923    
924    /* Use the rest of the available memory for the old cache where    /* Use the rest of the available memory for the old cache where
925     * still owl, semeai and readconnect caching takes place.     * still owl, semeai and readconnect caching takes place.
926     */     */
927    bytes = bytes * (100 - NG_PERCENTAGE) / 100;    bytes = bytes / 100 * (100 - NG_PERCENTAGE);
928  #endif  #endif
929        
930            

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26