[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gnugo-devel] caching speed optimization
From: |
Paul Pogonyshev |
Subject: |
Re: [gnugo-devel] caching speed optimization |
Date: |
Wed, 5 Feb 2003 20:48:09 +0200 |
User-agent: |
KMail/1.4.3 |
Dan wrote:
>
> This patch, paul_3_17.1 does not compile. We get errors:
>
> cache.c: In function `do_get_read_result':
> cache.c:710: parse error before `unsigned'
> cache.c:735: `data2' undeclared (first use in this function)
> cache.c:735: (Each undeclared identifier is reported only once
> cache.c:735: for each function it appears in.)
wow, this is not a problem of the patch :) (btw, it compiles without
warnings using gcc 3.2). just apply this tiny patch on top of 3_17.1:
--- cache.h.orig 2003-02-05 20:43:05.000000000 +0200
+++ cache.h 2003-02-05 20:43:35.000000000 +0200
@@ -95,7 +95,7 @@ typedef struct read_result_t {
/* Set corresponding parts. */
#define rr_input_data1(routine, komaster, kom_pos, str1, stackp) \
(((((((((komaster) << 10) | (kom_pos)) << 4) \
- | (routine)) << 10) | (str1)) << 5) | (stackp));
+ | (routine)) << 10) | (str1)) << 5) | (stackp))
#define rr_input_data2(str2) (str2) \
/* Get parts of a Read_result constituting the result of a search. */
Paul