longer subject to the terms of the wxWindows Library License (libturbojpeg
still is-- see README-turbo.txt.)
+[11] libjpeg-turbo can now be built with YASM.
+
1.1.1
=====
# Check that NASM exists and determine flags
AC_DEFUN([AC_PROG_NASM],[
-AC_CHECK_PROGS(NASM, [nasm nasmw])
+AC_CHECK_PROGS(NASM, [nasm nasmw yasm])
test -z "$NASM" && AC_MSG_ERROR([no nasm (Netwide Assembler) found])
AC_MSG_CHECKING([for object file format of host system])
%include "jcolsamp.inc"
; --------------------------------------------------------------------------
- SECTION SEG_TEXT
- BITS 32
;
; Convert some rows of samples to the output colorspace.
;
%include "jcolsamp.inc"
; --------------------------------------------------------------------------
- SECTION SEG_TEXT
- BITS 64
;
; Convert some rows of samples to the output colorspace.
;
%include "jcolsamp.inc"
; --------------------------------------------------------------------------
- SECTION SEG_TEXT
- BITS 32
;
; Convert some rows of samples to the output colorspace.
;
alignz 16
; --------------------------------------------------------------------------
+ SECTION SEG_TEXT
+ BITS 32
+
%include "jcclrmmx.asm"
%undef RGB_RED
alignz 16
; --------------------------------------------------------------------------
+ SECTION SEG_TEXT
+ BITS 64
+
%include "jcclrss2-64.asm"
%undef RGB_RED
alignz 16
; --------------------------------------------------------------------------
+ SECTION SEG_TEXT
+ BITS 32
+
%include "jcclrss2.asm"
%undef RGB_RED
alignz 16
; --------------------------------------------------------------------------
+ SECTION SEG_TEXT
+ BITS 32
+
%include "jcgrymmx.asm"
%undef RGB_RED
alignz 16
; --------------------------------------------------------------------------
+ SECTION SEG_TEXT
+ BITS 64
+
%include "jcgryss2-64.asm"
%undef RGB_RED
alignz 16
; --------------------------------------------------------------------------
+ SECTION SEG_TEXT
+ BITS 32
+
%include "jcgryss2.asm"
%undef RGB_RED
%include "jcolsamp.inc"
; --------------------------------------------------------------------------
- SECTION SEG_TEXT
- BITS 32
;
; Convert some rows of samples to the output colorspace.
;
%include "jcolsamp.inc"
; --------------------------------------------------------------------------
- SECTION SEG_TEXT
- BITS 64
;
; Convert some rows of samples to the output colorspace.
;
%include "jcolsamp.inc"
; --------------------------------------------------------------------------
- SECTION SEG_TEXT
- BITS 32
;
; Convert some rows of samples to the output colorspace.
;
%include "jcolsamp.inc"
; --------------------------------------------------------------------------
- SECTION SEG_TEXT
- BITS 32
;
; Convert some rows of samples to the output colorspace.
;
%include "jcolsamp.inc"
; --------------------------------------------------------------------------
- SECTION SEG_TEXT
- BITS 64
;
; Convert some rows of samples to the output colorspace.
;
%include "jcolsamp.inc"
; --------------------------------------------------------------------------
- SECTION SEG_TEXT
- BITS 32
;
; Convert some rows of samples to the output colorspace.
;
alignz 16
; --------------------------------------------------------------------------
+ SECTION SEG_TEXT
+ BITS 32
+
%include "jdclrmmx.asm"
%undef RGB_RED
alignz 16
; --------------------------------------------------------------------------
+ SECTION SEG_TEXT
+ BITS 64
+
%include "jdclrss2-64.asm"
%undef RGB_RED
alignz 16
; --------------------------------------------------------------------------
+ SECTION SEG_TEXT
+ BITS 32
+
%include "jdclrss2.asm"
%undef RGB_RED
alignz 16
; --------------------------------------------------------------------------
+ SECTION SEG_TEXT
+ BITS 32
+
%include "jdmrgmmx.asm"
%undef RGB_RED
alignz 16
; --------------------------------------------------------------------------
+ SECTION SEG_TEXT
+ BITS 64
+
%include "jdmrgss2-64.asm"
%undef RGB_RED
alignz 16
; --------------------------------------------------------------------------
+ SECTION SEG_TEXT
+ BITS 32
+
%include "jdmrgss2.asm"
%undef RGB_RED
%include "jcolsamp.inc"
; --------------------------------------------------------------------------
- SECTION SEG_TEXT
- BITS 32
;
; Upsample and color convert for the case of 2:1 horizontal and 1:1 vertical.
;
%include "jcolsamp.inc"
; --------------------------------------------------------------------------
- SECTION SEG_TEXT
- BITS 64
;
; Upsample and color convert for the case of 2:1 horizontal and 1:1 vertical.
;
%include "jcolsamp.inc"
; --------------------------------------------------------------------------
- SECTION SEG_TEXT
- BITS 32
;
; Upsample and color convert for the case of 2:1 horizontal and 1:1 vertical.
;
; -- segment definition --
;
+%ifdef __YASM_VER__
+%define SEG_TEXT .text align=16
+%define SEG_CONST .rdata align=16
+%else
%define SEG_TEXT .text align=16 public use32 class=CODE
%define SEG_CONST .rdata align=16 public use32 class=CONST
+%endif
%elifdef WIN64 ; ----(nasm -fwin64 -DWIN64 ...)--------
; * Microsoft Visual C++
; -- segment definition --
;
+%ifdef __YASM_VER__
+%define SEG_TEXT .text align=16
+%define SEG_CONST .rdata align=16
+%else
%define SEG_TEXT .text align=16 public use64 class=CODE
%define SEG_CONST .rdata align=16 public use64 class=CONST
+%endif
%define EXTN(name) name ; foo() -> foo
%elifdef OBJ32 ; ----(nasm -fobj -DOBJ32 ...)----------