~ubuntu-branches/ubuntu/gutsy/gimp/gutsy

« back to all changes in this revision

Viewing changes to app/composite/gimp-composite-3dnow-test.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2007-06-22 17:33:56 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20070622173356-ncevaebpjiwyxkif
Tags: 2.3.18-1ubuntu1
* Resynchronized with Debian, remaining Ubuntu changes:
  - debian/control: Maintainer change.
  - debian/patches/02_help-message.patch,
    debian/patches/03_gimp.desktop.in.in.patch,
    debian/patches/10_dont_show_wizard.patch: Distro patches.
  - debian/rules:
    - use dh_iconcache,
    - i18n magic.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#include "config.h"
2
2
 
3
 
#include <stdio.h>
4
3
#include <stdlib.h>
5
4
#include <string.h>
6
5
 
7
 
#include <sys/time.h>
8
 
 
9
6
#include <glib-object.h>
10
7
 
11
8
#include "base/base-types.h"
36
33
  gimp_va8_t *va8D2;
37
34
  int i;
38
35
 
39
 
  printf("\nRunning gimp_composite_3dnow tests...\n");
40
36
  if (gimp_composite_3dnow_init () == 0)
41
37
    {
42
 
      printf("gimp_composite_3dnow: Instruction set is not available.\n");
43
 
      return (0);
 
38
      g_print ("\ngimp_composite_3dnow: Instruction set is not available.\n");
 
39
      return EXIT_SUCCESS;
44
40
    }
45
41
 
 
42
  g_print ("\nRunning gimp_composite_3dnow tests...\n");
 
43
 
46
44
  rgba8A =  gimp_composite_regression_random_rgba8(n_pixels+1);
47
45
  rgba8B =  gimp_composite_regression_random_rgba8(n_pixels+1);
48
46
  rgba8M =  gimp_composite_regression_random_rgba8(n_pixels+1);
65
63
    }
66
64
 
67
65
#endif
68
 
  return (0);
 
66
  return EXIT_SUCCESS;
69
67
}
70
68
 
71
69
int
96
94
        }
97
95
      else
98
96
        {
99
 
          printf("Usage: gimp-composites-*-test [-i|--iterations n] [-n|--n-pixels n]");
100
 
          exit(1);
 
97
          g_print ("Usage: gimp-composites-*-test [-i|--iterations n] [-n|--n-pixels n]");
 
98
          return EXIT_FAILURE;
101
99
        }
102
100
    }
103
101