2 /* Originator: Tim McGrath <misty-@charter.net> */
3 /* Testcase contributed by Eric Botcazou <ebotcazou@libertysurf.fr> */
5 /* { dg-require-effective-target ilp32 } */
6 /* { dg-options "-mtune=k6 -O3 -ffast-math -funroll-loops" } */
8 extern void *memset (void *, int, __SIZE_TYPE__
);
9 extern void abort (void);
13 unsigned char colormod
;
19 entity_state_t
*entities
;
26 packet_entities_t entities
;
38 typedef struct client_s
40 sv_client_state_t state
;
42 client_frame_t frames
[64];
45 int CalcPing (client_t
*cl
)
49 register client_frame_t
*frame
;
51 if (cl
->state
== cs_server
)
55 for (frame
= cl
->frames
, i
= 0; i
< 64; i
++, frame
++) {
56 if (frame
->ping_time
> 0) {
57 ping
+= frame
->ping_time
;
72 memset(&cl
, 0, sizeof(cl
));
74 cl
.frames
[0].ping_time
= 1.0f
;
76 if (CalcPing(&cl
) != 1000)