x264 0.118 DOS port (Announce)
> I think that if I use SSE optimalization for GCC it would take care about
> it but the root of evil is in assebler files that are out of gcc control.
> If I disable HAVE_MMX in config but leave sse opts in makefile it works. It
> probably only not use assembler routines but still may use sse for other
> C-code. I didn't checked listing but binary is different size when use sse
> and when use mmx.
I was referring to the "untouched" assembler files, DJGPP's COFF sections are aligned to 16 bytes by default, so if you have the SSE data at the beginning of a section, it should work (for me it worked). IIRC HAVE_MMX failed because of the memalign problem I describe below. Personally I used #define memalign(a,b) memalign(b,a), and it finally worked.
> If I would want to use SSE in my code and need to have aligned memory I
> think it could be possible to use valloc() that should allocate
> page-aligned blocks of memory...
You can also use DJGPP's memalign, but it takes reversed parameters comparing to the one from Linux.
---
Glory to God for all things
Complete thread:
- Lame 3.99 DOS port - RayeR, 17.10.2011, 03:06
![Open in board view [Board]](img/board_d.gif)
![Open in mix view [Mix]](img/mix_d.gif)
- x264 0.118 DOS port - RayeR, 17.10.2011, 19:43
- x264 0.118 DOS port - Rugxulo, 17.10.2011, 23:41
- x264 0.118 DOS port - RayeR, 18.10.2011, 15:09
- x264 0.118 DOS port - RayeR, 18.10.2011, 15:38
- x264 0.118 DOS port - Zyzzle, 19.10.2011, 02:02
- x264 0.118 DOS port - RayeR, 21.10.2011, 03:53
- x264 0.118 DOS port - Khusraw, 21.10.2011, 13:53
- x264 0.118 DOS port - RayeR, 25.10.2011, 09:54
- x264 0.118 DOS port - Khusraw, 25.10.2011, 13:04
- x264 0.118 DOS port - RayeR, 25.10.2011, 14:22
- x264 0.118 DOS port - Khusraw, 25.10.2011, 15:42
- x264 0.118 DOS port - RayeR, 25.10.2011, 14:22
- x264 0.118 DOS port - Khusraw, 25.10.2011, 13:04
- x264 0.118 DOS port - RayeR, 25.10.2011, 09:54
- x264 0.118 DOS port - Khusraw, 21.10.2011, 13:53
- x264 0.118 DOS port - RayeR, 21.10.2011, 03:53
- x264 0.118 DOS port - Zyzzle, 19.10.2011, 02:02
- x264 0.118 DOS port - Rugxulo, 18.10.2011, 19:25
- x264 0.118 DOS port - Khusraw, 21.10.2011, 14:56
- x264 0.118 DOS port - RayeR, 25.10.2011, 09:58
- x264 0.118 DOS port - Khusraw, 25.10.2011, 13:11
- x264 0.118 DOS port - RayeR, 25.10.2011, 14:33
- x264 0.118 DOS port - Khusraw, 25.10.2011, 15:22
- x264 0.118 DOS port - RayeR, 25.10.2011, 16:31
- x264 0.118 DOS port - Khusraw, 25.10.2011, 15:22
- x264 0.118 DOS port - RayeR, 25.10.2011, 14:33
- x264 0.118 DOS port - Khusraw, 25.10.2011, 13:11
- x264 0.118 DOS port - RayeR, 25.10.2011, 09:58
- x264 0.118 DOS port - RayeR, 18.10.2011, 15:38
- x264 0.118 DOS port - RayeR, 18.10.2011, 15:09
- x264 0.118 DOS port - Rugxulo, 17.10.2011, 23:41
- Lame 3.99 DOS port - rr, 17.10.2011, 22:38
- Lame 3.99 DOS port - RayeR, 18.10.2011, 02:36
- New version of DJDEV 2.04 - RayeR, 26.10.2011, 14:44
- x264 0.118 DOS port - RayeR, 17.10.2011, 19:43
Mix view