1. 01 Oct, 2003 1 commit
    • Sven Neumann's avatar
      app/composite/gimp-composite-altivec.c app/composite/gimp-composite-mmx.c · 768b34b1
      Sven Neumann authored
      2003-10-01  Sven Neumann  <sven@gimp.org>
      
      	* app/composite/gimp-composite-altivec.c
      	* app/composite/gimp-composite-mmx.c
      	* app/composite/gimp-composite-sse.c
      	* app/composite/gimp-composite-sse2.c
      	* app/composite/gimp-composite-vis.c: moved includes out of the
      	#if __GNUC__ >= 3 to make the code compile on other compilers.
      
      	* app/composite/gimp-composite-3dnow.[ch]: added the same stubs here
      	for symmetry.
      768b34b1
  2. 27 Sep, 2003 1 commit
    • Helvetix Victorinox's avatar
      app/composite/gimp-composite-altivec-test.c · 545c1985
      Helvetix Victorinox authored
      * app/composite/gimp-composite-altivec-test.c
      * app/composite/gimp-composite-mmx-test.c
      * app/composite/gimp-composite-mmx-installer.c
      * app/composite/gimp-composite-sse-test.c
      * app/composite/gimp-composite-sse-installer.c
      * app/composite/gimp-composite-sse2-test.c
      * app/composite/gimp-composite-sse2-installer.c
      * app/composite/gimp-composite-vis-test.c
      * app/composite/gimp-composite-vis-installer.c:
        Regenerated.
      
      * app/composite/gimp-composite-altivec.[ch]
      * app/composite/gimp-composite-mmx.[ch]
      * app/composite/gimp-composite-sse.[ch]
      * app/composite/gimp-composite-sse2.[ch]
      * app/composite/gimp-composite-vis.[ch]
      * app/composite/make-installer.py:
        Make it such that when a test is run on the wrong kind of
        machine, don't fail without an explanation.
      545c1985
  3. 16 Sep, 2003 2 commits
    • Sven Neumann's avatar
      app/composite/gimp-composite-generic.c app/composite/gimp-composite-mmx.c · 555038de
      Sven Neumann authored
      2003-09-16  Sven Neumann  <sven@gimp.org>
      
      	* app/composite/gimp-composite-generic.c
      	* app/composite/gimp-composite-mmx.c
      	* app/composite/gimp-composite-sse.c
      	* app/composite/gimp-composite-sse2.c
      	* app/config/gimpconfig-deserialize.c
      	* app/config/gimpconfig-path.c
      	* app/config/gimpconfig-serialize.c
      	* app/core/cpercep.c
      	* app/core/gimpunit.c
      	* app/gui/palette-import-dialog.c
      	* app/gui/plug-in-menus.c
      	* app/paint-funcs/paint-funcs-generic.h
      	* app/paint-funcs/paint-funcs.c
      	* app/pdb/procedural_db.c
      	* app/text/gimptextlayout-render.c
      	* app/tools/gimpfuzzyselecttool.c
      	* app/widgets/gimpcursor.c: some trivial code cleanups: avoid
      	casts that discard const qualifiers and avoid useless comparisons
      	on unsigned variables. Also reordered qualifiers in function
      	declarations (static comes before const).
      555038de
    • Helvetix Victorinox's avatar
      gimp-composite-mmx-{test,installer}.c · 930d2615
      Helvetix Victorinox authored
      * gimp-composite-mmx-{test,installer}.c
      
      * gimp-composite-sse-{test,installer}.c
      
      * gimp-composite-sse2-{test,installer}.c
      
      * make-installer.py: sort test output by mode name
      
      * gimp-composite-sse2.[ch]: New compositing mode implementations
        darken
        difference
        grain_extract
        lighten
      
      * gimp-composite-x86.h: added
      
      * gimp-composite-{sse,mmx,sse2}.[ch]: Tightening declarations of clobbered registers.
      930d2615
  4. 14 Sep, 2003 1 commit
    • Helvetix Victorinox's avatar
      regenerated with new functions. · aa196f4e
      Helvetix Victorinox authored
      * gimp-composite-sse2-installer.c, gimp-composite-sse2-test.c:
        regenerated with new functions.
      
      * gimp-composite-sse.c, gimp-composite-sse2.c:
        Distinguish between 64bit and 128bit constants with a little
        faux hungarian notation.
      
      * gimp-composite-sse2.[ch]: Added implementations of
        addition_rgba8_rgba8_rgba8, subtract_rgba8_rgba8_rgba8, and
        swap_rgba8_rgba8_rgba8
      
      * gimp-composite-generic.c:
        Some formating beautification
      aa196f4e
  5. 06 Sep, 2003 1 commit
  6. 02 Sep, 2003 1 commit
  7. 01 Sep, 2003 1 commit
    • Helvetix Victorinox's avatar
      app/composite/gimp-composite-mmx.c Replaced all memory references in asm() · 7fdddadb
      Helvetix Victorinox authored
      * app/composite/gimp-composite-mmx.c
      * app/composite/gimp-composite-sse.c: Replaced all memory
        references in asm() constructs to references to "input" parameters
        to the asm().  This should take care of any name mangling issues
        (see bug #120893)
      
        Beautified more code to conform to the gimp style guidelines.
      
        No longer doing pointer math in assembly.  This should ease some
        of the issues of compiling on 64bit machines.
      
      * app/composite/gimp-composite-sse-installer.c
      * app/composite/gimp-composite-sse-test.c: Removed reference to
        gimp_composite_overlay_* because this code is suspect.
      7fdddadb
  8. 20 Aug, 2003 1 commit
    • Helvetix Victorinox's avatar
      Regenerated installers and testers. · 9d405b60
      Helvetix Victorinox authored
      * app/composite/: Regenerated installers and testers.
      
      * app/composite/make-install.py: increased tests of pixels to 1024*1024+1
      
      * app/composite/gimp-composite-mmx.c (gimp_composite_overlay_rgba8_rgba8_rgba_mmx):
        Backed out of the current build.  Although the unit tests all
        pass, the emperical evidence is that something is wrong with it.
      9d405b60
  9. 18 Aug, 2003 1 commit
  10. 17 Aug, 2003 1 commit
    • Helvetix Victorinox's avatar
      regnerated · c86d82f0
      Helvetix Victorinox authored
      * app/composite/gimp-composite-{mmx,sse,altivec,vis}-{installer,test}.c:
        regnerated
      
      * app/composite/gimp-composite-sse.c
        (gimp_composite_overlay_rgba8_rgba8_rgba8_sse): fixed (rewrote)
      
      * app/composite/make-installer.py:
        command line option --iterations to set the number of iterations for a test.
        command line option --n_ixels to set the number of pixels for a test.
      
      * app/composite/gimp-composite-mmx.c
        (gimp_composite_grain_merge_rgba8_rgba8_rgba8_mmx): fixed (rewrote)
        (gimp_composite_overlay_rgba8_rgba8_rgba8_mmx): fixed (rewrote)
        (gimp_composite_value_rgba8_rgba8_rgba8_mmx):
      	  new testing shows it to be broken (temporarily removed from use)
      c86d82f0
  11. 14 Aug, 2003 2 commits
    • Helvetix Victorinox's avatar
      app/composite/gimp-composite-mmx-installer.c · 3fa1239d
      Helvetix Victorinox authored
      * app/composite/gimp-composite-mmx-installer.c
      * app/composite/gimp-composite-sse-installer.c:
      * app/composite/gimp-composite-sse.c:
        Conditional compilation matching the conditional compilation in
        gimp-composite-{mmx,sse}.c
      3fa1239d
    • Helvetix Victorinox's avatar
      composite/ modularisation of the automatic compositing function "wiring" · 33e22c8f
      Helvetix Victorinox authored
      * composite/ modularisation of the automatic compositing function
        "wiring" to construct the table of compositing functions at
        run-time instead of compile time.
      
        The environment variable GIMP_COMPOSITE is a hexadecimal number
        representing a bit-field used to set/reset options in the
        gimp-composite code.
      
      * gimp-composite-altivec.[ch]: added
      * gimp-composite-altivec-installer.[ch]: added
      * gimp-composite-vis.[ch]: added
      * gimp-composite-vis-installer.[ch]: added
      * gimp-composite-mmx-installer.[ch]: added
      * gimp-composite-sse-installer.[ch]: added
      * gimp-composite-altivec-test.[ch]: added
      * gimp-composite-vis-test.[ch]: added
      * gimp-composite-mmx-test.[ch]: added
      * gimp-composite-sse-test.[ch]: added
      * make-installer.py: Added meta programme for generating code to
        1) construct a table of compositing functions indexed by
        operation, and the pixel formats of the sources and destination,
        and 2) generating code for regression testing of these compositing
        functions against the same functions in gimp-composite-generic.c
      
      * gimp-composite-mmx.c (xxxgimp_composite_overlay_rgba8_rgba8_rgba8_mmx):
        removing from the current set of optimisations because it appears
        to be broken.
      
      * Makefile.am: modified regression testing targets to now build
        gimp-composite-*-test where * is any of generic, mmx, sse,
        altivec, and vis.
      
      * gimp-composite.c: moved in initialisation code
        gimp_composite_init() from gimp-composite-dispatch.c
      
      * gimp-composite.c: removed gimp_composite_unsupported().
      
      * gimp-composite.c: use cpu_accel() to determine at run-time which
        set of optimisations are to be used.
      
      * gimp-composite.c: conditionally compile code for ARCH_X86.
      
      * make-gimp-composite-dispatch.c: retired.  See make-installer.py
      
      * gimp-composite-mmx.c (op_overlay): namespace cleanup, op_overlay()
        and all of the constant values are now static
      
      * gimp-composite-mmx.c, gimp-composite-sse.c: fixed bug with the
        alpha mask being the address of the alpha mask, not the mask
        itself.
      
      * app/paint-funcs/paint-funcs.c: Check gimp_composite_options.use
        to see if we should use the new code or the old code.
      33e22c8f
  12. 29 Jul, 2003 1 commit
    • Helvetix Victorinox's avatar
      Made the explicit target "regenerate" to regenerate the source files using · 0aad627d
      Helvetix Victorinox authored
      * app/composite/Makefile.am:
      Made the explicit target "regenerate" to regenerate the source
      files using the Python meta-generator.
      
      * app/composite/gimp-composite-mmx.c
      * app/composite/gimp-composite-mmx.h
      * app/composite/gimp-composite-sse.c
      * app/composite/gimp-composite-sse.h:
      Now bounded by the conditional "#if __GNUC__ >= 3".  This is a
      coarse fix to enable app/composite to build on a wider variety of
      platforms.  Ideally, this will be refined to encompass different
      versions of the compiler(s) supporting inline assembly code.
      0aad627d
  13. 24 Jul, 2003 1 commit
    • Helvetix Victorinox's avatar
      regenerated new code taking advantage of simplified function prototypes. · d3fc41f0
      Helvetix Victorinox authored
      * app/composite/gimp-composite-dispatch.[ch]: regenerated new code
      taking advantage of simplified function prototypes.
      
      * app/composite/gimp-composite-test.c: New regression testing
      driver.  This file is automatically generated, but it's included
      in the cvs tree for expediency.
      
      * app/composite/ns.py: hopeful checks for which OS is currently
      running as a hint to what nm(1) is available.
      
      * app/composite/gimp-composite-mmx.[ch]
      * app/composite/gimp-composite-sse.[ch]
      * app/composite/gimp-composite-generic.[ch]: function prototype
      cleanup.
      
      * app/composite/make-gimp-composite-dispatch.py: generates code to
      test compositing functions.
      
      * app/composite/gimp-composite-regression.[ch]: support for
      automatically testing compositing functions.
      d3fc41f0
  14. 18 Jul, 2003 1 commit
    • Helvetix Victorinox's avatar
      app/composite/gimp-composite.[ch], · 9e3bd947
      Helvetix Victorinox authored
      * app/composite/gimp-composite.[ch],
      * app/composite/make-gimp-composite-dispatch.py
      stubbed out the 32bit-per-channel pixel formats.
      
      * app/composite/gimp-composite-sse.[ch],
      * app/composite/Makefile.am
      Broke-out and added the SSE versions of the MMX code.
      
      * app/composite/gimp-composite.[ch],
      * app/paint-funcs/paint-funcs.c,
      * app/composite/make-gimp-composite-dispatch.py
      Use of the new gimp_composite code is now turned on via the
      environment variable GIMP_COMPOSITE with a non-zero value.  For
      example:
      % GIMP_COMPOSITE=1 gimp-1.3
      9e3bd947
  15. 15 Jul, 2003 1 commit
    • Helvetix Victorinox's avatar
      app/composite/gimp-composite-generic.h: Use · f5e839a3
      Helvetix Victorinox authored
      GimpCompositeFunction as the type for all compositing functions.
      
      app/composite/Makefile.am: gimp-composite.c is no longer
      dependant upon gimp-composite-dispatch.c
      
      app/composite/gimp-composite-dispatch.[ch]
      app/composite/make-gimp-composite-dispatch.py: Fixed type
      mismatches.
      
      app/composite/test-composite.c: Fixed bit-rot in not keeping up
      with the changes in the surrounding .h files.
      
      app/composite/gimp-composite-mmx.c: Incipient cleanup in marking
      some asm constructs as volatile.
      f5e839a3
  16. 09 Jul, 2003 2 commits
    • Sven Neumann's avatar
      only compile this code if USE_MMX is defined. · e3b560f0
      Sven Neumann authored
      2003-07-10  Sven Neumann  <sven@gimp.org>
      
      	* app/composite/gimp-composite-mmx.c: only compile this code if
      	USE_MMX is defined.
      e3b560f0
    • Sven Neumann's avatar
      removed ... ... and readded under a new name. · c366e257
      Sven Neumann authored
      2003-07-09  Sven Neumann  <sven@gimp.org>
      
      	* app/composite/tester.c: removed ...
      	* app/composite/test-composite.c: ... and readded under a new name.
      
      	* app/composite/Makefile.am: added a check target that builds and
      	runs the test program.
      
      	* app/composite/gimp-composite-generic.c
      	* app/composite/gimp-composite-mmx.c
      	* app/composite/gimp-composite-util.h
      	* app/composite/gimp-composite.[ch]
      	* app/composite/make-gimp-composite-dispatch.py: made it fit
      	better into the GIMP source tree:
      	- do not include any files from headers
      	- don't use types from <sys/types.h> but use what glib provides
      	- coding style ...
      c366e257
  17. 08 Jul, 2003 2 commits