limit *= 4;    printf("using limit = %d\n", limit);  for (i = 0; i < 32; i++) {  if (floatloop(&attr) == 0) { printf("%d ", i); fflush(stdout); }  ASSERT(floatloop(NULL) == 0);
for(limit = 2; limit < 100000; limit *=4) { CHECKr(pthread_create (&thread, NULL, log_loop, NULL)); CHECKr(pthread_join(thread, (void **) &result)); ASSERT(*result == 0);
main(){	pthread_attr_t attr;	int i;	/* Try with float point state not preserved */	CHECKr(pthread_attr_init(&attr));	CHECKr(pthread_attr_setfloatstate(&attr, PTHREAD_NOFLOAT));	for(limit = 2; limit < 100000; limit *=4)		if (floatloop(&attr) != 0)			break;	if (limit >= 100000) {		printf("results are INDETERMINATE\n");		SUCCEED; /* XXX */	}	limit *= 4;  /* just to make sure */	printf("using limit = %d\n", limit);	for (i = 0; i < 32; i++) {		/* Try the failure mode one more time. */		if (floatloop(&attr) == 0) {			printf("%d ", i);			fflush(stdout);		}		/* Now see if saving float state will get rid of failure. */		ASSERT(floatloop(NULL) == 0);	}	SUCCEED;}