View | Details | Raw Unified
Collapse All | Expand All

(-) flac-1.2.1-old/src/libFLAC/ia32/bitreader_asm.nasm (+27 lines)
 Lines 140-147   cident FLAC__bitreader_read_rice_signed_ Link Here 
%ifdef FLAC__PUBLIC_NEEDS_UNDERSCORE
%ifdef FLAC__PUBLIC_NEEDS_UNDERSCORE
	mov	edi, _FLAC__crc16_table
	mov	edi, _FLAC__crc16_table
%else
%else
%ifdef OBJ_FORMAT_elf
	mov	edi, [esp + 16]		;		saved ebx (GOT base)
	lea	edi, [edi + FLAC__crc16_table wrt ..gotoff]
%else
	mov	edi, FLAC__crc16_table
	mov	edi, FLAC__crc16_table
%endif
%endif
%endif
	;; eax (ax)	crc a.k.a. br->read_crc
	;; eax (ax)	crc a.k.a. br->read_crc
	;; ebx (bl)	intermediate result index into FLAC__crc16_table[]
	;; ebx (bl)	intermediate result index into FLAC__crc16_table[]
	;; ecx		br->crc16_align
	;; ecx		br->crc16_align
 Lines 216-223   cident FLAC__bitreader_read_rice_signed_ Link Here 
%ifdef FLAC__PUBLIC_NEEDS_UNDERSCORE
%ifdef FLAC__PUBLIC_NEEDS_UNDERSCORE
	mov	edi, _FLAC__crc16_table
	mov	edi, _FLAC__crc16_table
%else
%else
%ifdef OBJ_FORMAT_elf
	mov	edi, [esp + 16]		;		saved ebx (GOT base)
	lea	edi, [edi + FLAC__crc16_table wrt ..gotoff]
%else
	mov	edi, FLAC__crc16_table
	mov	edi, FLAC__crc16_table
%endif
%endif
%endif
	;; eax (ax)	crc a.k.a. br->read_crc
	;; eax (ax)	crc a.k.a. br->read_crc
	;; ebx (bl)	intermediate result index into FLAC__crc16_table[]
	;; ebx (bl)	intermediate result index into FLAC__crc16_table[]
	;; ecx		br->crc16_align
	;; ecx		br->crc16_align
 Lines 315-322   cident FLAC__bitreader_read_rice_signed_ Link Here 
%ifdef FLAC__PUBLIC_NEEDS_UNDERSCORE
%ifdef FLAC__PUBLIC_NEEDS_UNDERSCORE
	call	_bitreader_read_from_client_
	call	_bitreader_read_from_client_
%else
%else
%ifdef OBJ_FORMAT_elf
	mov	ebx, [esp + 20]		;		saved ebx (GOT base)
	call	bitreader_read_from_client_ wrt ..plt
%else
	call	bitreader_read_from_client_
	call	bitreader_read_from_client_
%endif
%endif
%endif
	pop	edx			;     /* discard, unused */
	pop	edx			;     /* discard, unused */
	pop	ecx			;     /* restore */
	pop	ecx			;     /* restore */
	mov	esi, [ebp + 16]		;     cwords = br->consumed_words;
	mov	esi, [ebp + 16]		;     cwords = br->consumed_words;
 Lines 362-374   cident FLAC__bitreader_read_rice_signed_ Link Here 
	mov	[ebp + 16], esi		;       br->consumed_words = cwords;
	mov	[ebp + 16], esi		;       br->consumed_words = cwords;
	mov	[ebp + 20], ecx		;       br->consumed_bits = cbits;
	mov	[ebp + 20], ecx		;       br->consumed_bits = cbits;
	push	ecx			;       /* save */
	push	ecx			;       /* save */
	push	ebx			;       /* save */
	push	ebp			;       /* push br argument */
	push	ebp			;       /* push br argument */
%ifdef FLAC__PUBLIC_NEEDS_UNDERSCORE
%ifdef FLAC__PUBLIC_NEEDS_UNDERSCORE
	call	_bitreader_read_from_client_
	call	_bitreader_read_from_client_
%else
%else
%ifdef OBJ_FORMAT_elf
	mov	ebx, [esp + 24]		;		saved ebx (GOT base)
	call	bitreader_read_from_client_ wrt ..plt
%else
	call	bitreader_read_from_client_
	call	bitreader_read_from_client_
%endif
%endif
%endif
	pop	edx			;       /* discard, unused */
	pop	edx			;       /* discard, unused */
	pop	ebx			;       /* restore */
	pop	ecx			;       /* restore */
	pop	ecx			;       /* restore */
	mov	esi, [ebp + 16]		;       cwords = br->consumed_words;
	mov	esi, [ebp + 16]		;       cwords = br->consumed_words;
					;       ucbits = (br->words-cwords)*FLAC__BITS_PER_WORD + br->bytes*8 - cbits;
					;       ucbits = (br->words-cwords)*FLAC__BITS_PER_WORD + br->bytes*8 - cbits;
 Lines 437-444   cident FLAC__bitreader_read_rice_signed_ Link Here 
%ifdef FLAC__PUBLIC_NEEDS_UNDERSCORE
%ifdef FLAC__PUBLIC_NEEDS_UNDERSCORE
	mov	edi, _FLAC__crc16_table
	mov	edi, _FLAC__crc16_table
%else
%else
%ifdef OBJ_FORMAT_elf
	mov	edi, [esp + 24]		;		saved ebx (GOT base)
	lea	edi, [edi + FLAC__crc16_table wrt ..gotoff]
%else
	mov	edi, FLAC__crc16_table
	mov	edi, FLAC__crc16_table
%endif
%endif
%endif
	;; eax (ax)	crc a.k.a. br->read_crc
	;; eax (ax)	crc a.k.a. br->read_crc
	;; ebx (bl)	intermediate result index into FLAC__crc16_table[]
	;; ebx (bl)	intermediate result index into FLAC__crc16_table[]
	;; ecx		br->crc16_align
	;; ecx		br->crc16_align